Project

General

Profile

REDMINE study » History » Version 2

Marc Dexet, 16/01/2018 09:36

1 1 Marc Dexet
h1. REDMINE study
2 1 Marc Dexet
3 1 Marc Dexet
Ensemble de requêtes SQL
4 1 Marc Dexet
5 1 Marc Dexet
h2. Compréhension de l'usage de REDMINE
6 1 Marc Dexet
7 1 Marc Dexet
8 1 Marc Dexet
h3. Cas NewDev
9 1 Marc Dexet
10 1 Marc Dexet
<pre><code class="sql">
11 2 Marc Dexet
select COUNT(*) as total, t.name, u.login 
12 2 Marc Dexet
FROM issues i, trackers t, users u 
13 2 Marc Dexet
WHERE i.author_id = u.id AND t.id = i.tracker_id AND t.id = 4 
14 2 Marc Dexet
GROUP BY t.name, login  
15 2 Marc Dexet
ORDER BY total DESC, login;
16 1 Marc Dexet
</code></pre>
17 1 Marc Dexet
18 1 Marc Dexet
<pre>
19 1 Marc Dexet
 total |  name  |  login
20 1 Marc Dexet
-------+--------+----------
21 1 Marc Dexet
    74 | NewDev | kdassas
22 1 Marc Dexet
    60 | NewDev | scaminad
23 1 Marc Dexet
    53 | NewDev | palinger
24 1 Marc Dexet
    30 | NewDev | ccossou
25 1 Marc Dexet
    24 | NewDev | gwang
26 1 Marc Dexet
    20 | NewDev | hballans
27 1 Marc Dexet
    14 | NewDev |
28 1 Marc Dexet
     7 | NewDev | cpidanci
29 1 Marc Dexet
     6 | NewDev | svingata
30 1 Marc Dexet
     5 | NewDev | ebuchlin
31 1 Marc Dexet
     5 | NewDev | esoubrie
32 1 Marc Dexet
     5 | NewDev | mmebsout
33 1 Marc Dexet
     3 | NewDev | bhasnoun
34 1 Marc Dexet
     3 | NewDev | mdexet
35 1 Marc Dexet
     2 | NewDev | ilajili
36 1 Marc Dexet
     1 | NewDev | aarondel
37 1 Marc Dexet
     1 | NewDev | abeelen
38 1 Marc Dexet
     1 | NewDev | cruizdeg
39 1 Marc Dexet
     1 | NewDev | naghanim
40 1 Marc Dexet
41 1 Marc Dexet
</pre>