SQL WHERE and ORDER BY Workbook: The AND/OR Mistake (SQL Lesson 3)
On Sale
$2.00
$2.00
Start the SQL series here. WHERE decides which rows you get, and ORDER BY decides the order they appear in. The last problem is the mistake I mark wrong most often on this topic: mixing AND and OR without parentheses.
The 3 problems
- Easy: every Computer Science major's ID and name, sorted by name.
- Medium: every course, highest credits first, with ties broken by title.
- Hard: a query that should return Dr. Kim's and Dr. Ortiz's Fall 2026 sections returns 5 rows instead. Find the bug.
Details: 17 pages and 6 tested queries.