Skip to content

Commit dbc7bd0

Browse files
committedDec 3, 2022
Update see-quel script
1 parent 5873f60 commit dbc7bd0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎0x0D-SQL_introduction/14-average.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- This script computes the score average of all records in the table
22
-- ``second_table`` of the database ``hbtn_0c_0`` in your MySQL server
3-
SELECT AVG(score)
3+
SELECT AVG(score) AS average
44
FROM second_table;

‎0x0D-SQL_introduction/15-groups.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
-- ``second_table`` of the database ``hbtn_0c_0`` in your MySQL server
33
SELECT score, COUNT(*) AS number
44
FROM second_table
5-
GROUP BY score;
5+
GROUP BY score
6+
ORDER BY score DESC;

0 commit comments

Comments
 (0)