We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5873f60 commit dbc7bd0Copy full SHA for dbc7bd0
0x0D-SQL_introduction/14-average.sql
@@ -1,4 +1,4 @@
1
-- This script computes the score average of all records in the table
2
-- ``second_table`` of the database ``hbtn_0c_0`` in your MySQL server
3
-SELECT AVG(score)
+SELECT AVG(score) AS average
4
FROM second_table;
0x0D-SQL_introduction/15-groups.sql
@@ -2,4 +2,5 @@
SELECT score, COUNT(*) AS number
FROM second_table
5
-GROUP BY score;
+GROUP BY score
6
+ORDER BY score DESC;
0 commit comments