File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
sql/reports/statistics/design Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11SELECT
22 m." userId" AS member_id,
33 m .handle AS handle,
4- COUNT (DISTINCT s." challengeId" )::int AS wins_count
4+ COUNT (DISTINCT s." challengeId" )::int AS wins_count,
5+ COUNT (DISTINCT s." challengeId" )::int AS count
56FROM reviews .submission s
67JOIN challenges." Challenge" c
78 ON c .id = s." challengeId"
@@ -16,4 +17,3 @@ WHERE s.placement = 1
1617 AND ct .abbreviation = ' F2F'
1718GROUP BY m." userId" , m .handle
1819ORDER BY wins_count DESC , handle ASC ;
19-
Original file line number Diff line number Diff line change 11SELECT
22 m." userId" AS member_id,
33 m .handle AS handle,
4- COUNT (DISTINCT s." challengeId" )::int AS wins_count
4+ COUNT (DISTINCT s." challengeId" )::int AS wins_count,
5+ COUNT (DISTINCT s." challengeId" )::int AS count
56FROM reviews .submission s
67JOIN challenges." Challenge" c
78 ON c .id = s." challengeId"
@@ -16,4 +17,3 @@ WHERE s.placement = 1
1617 AND ct .abbreviation = ' CH'
1718GROUP BY m." userId" , m .handle
1819ORDER BY wins_count DESC , handle ASC ;
19-
You can’t perform that action at this time.
0 commit comments