Skip to content

Commit

Permalink
Update lab11.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris6Weigand authored Nov 15, 2024
1 parent 6476f5d commit 37e3fe1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions lab11.sql
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';

0 comments on commit 37e3fe1

Please sign in to comment.