Pendrokar commited on
Commit
91f3cbf
1 Parent(s): a08d45d

`ORDER BY (COUNT(DISTINCT chosen) * times) DESC`

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -37,7 +37,6 @@ LIMIT 0, 49999;
37
  ```sql
38
  SELECT
39
  spokentext,
40
- lang,
41
  (COUNT(DISTINCT chosen) || ' ' || GROUP_CONCAT(DISTINCT chosen)) AS chosen,
42
  rejected,
43
  count(spokentext) AS times,
@@ -46,7 +45,7 @@ FROM "main"."spokentext"
46
  INNER JOIN votelog vl ON votelog_id = vl.id
47
  GROUP BY spokentext, rejected
48
  ORDER BY
49
- times DESC,
50
  COUNT(DISTINCT chosen) DESC,
51
  spokentext ASC
52
  LIMIT 0, 49999;
 
37
  ```sql
38
  SELECT
39
  spokentext,
 
40
  (COUNT(DISTINCT chosen) || ' ' || GROUP_CONCAT(DISTINCT chosen)) AS chosen,
41
  rejected,
42
  count(spokentext) AS times,
 
45
  INNER JOIN votelog vl ON votelog_id = vl.id
46
  GROUP BY spokentext, rejected
47
  ORDER BY
48
+ (COUNT(DISTINCT chosen) * times) DESC,
49
  COUNT(DISTINCT chosen) DESC,
50
  spokentext ASC
51
  LIMIT 0, 49999;