Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions answers/exercise1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM Enrolments LEFT JOIN Students ON Enrolments.id = Students.id;
1 change: 1 addition & 0 deletions answers/exercise2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM Enrolments INNER JOIN Students ON Enrolments.StudentID = Students.StudentID;
1 change: 1 addition & 0 deletions answers/exercise3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT * FROM Enrolments RIGHT JOIN Students ON Enrolments.StudentID = Students.StudentID;
1 change: 1 addition & 0 deletions answers/exercise4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT COUNT(StudentID) FROM Students GROUP BY Country;
1 change: 1 addition & 0 deletions answers/exercise5.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT COUNT(StudentID) FROM Students GROUP BY Country ORDER BY COUNT(StudentID) ASC;
1 change: 1 addition & 0 deletions answers/exercise6.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT COUNT(StudentID) FROM Students GROUP BY Country ORDER BY COUNT(StudentID) >10 ASC;