-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6476f5d
commit 37e3fe1
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
--Practice | ||
|
||
SELECT * FROM courses; | ||
|
||
SELECT * FROM assignments | ||
LIMIT 10; | ||
|
||
SELECT count(*) FROM courses; | ||
|
||
SELECT min(due_date) FROM assignments; | ||
|
||
SELECT * | ||
FROM courses | ||
WHERE course_name LIKE 'Intro%'; | ||
|
||
SELECT * | ||
FROM assignments | ||
WHERE status != 'Completed' | ||
ORDER BY due_date; | ||
|
||
-- Exercise Questions | ||
|
||
SELECT * FROM assignments | ||
WHERE course_id LIKE 'COMP1234' | ||
ORDER BY due_date; | ||
|
||
SELECT min(due_date) FROM assignments | ||
|
||
SELECT max(due_date) FROM assignments | ||
|
||
SELECT course_id, title | ||
FROM assignments | ||
WHERE due_date = '2024-10-08'; | ||
|
||
SELECT course_id, due_date | ||
FROM assignments | ||
WHERE due_date LIKE '2024-10%'; | ||
|
||
SELECT min(due_date) | ||
FROM assignments | ||
WHERE status='Completed'; |