Your Cart
Loading

SQL WHERE and ORDER BY Workbook: The AND/OR Mistake (SQL Lesson 3)

On Sale
$2.00
$2.00
Added to cart

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

  1. Easy: every Computer Science major's ID and name, sorted by name.
  2. Medium: every course, highest credits first, with ties broken by title.
  3. 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.

You will get a PDF (74KB) file