Learn with Abdou

Chapter 2 · Concept 6 of 6 · Practice

Define what first and top mean

ORDER BY, DESC, ties, LIMIT and OFFSET · level 3 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

Define what first and top mean · ORDER BY, DESC, ties, LIMIT and OFFSET · level 3 of 6

Two legal queries

Level 3: Predict the result · Exercise 1 of 2

A report needs the five lines of exactly five words with the smallest ids. Query A: SELECT id, characterName, wordCount FROM scripts WHERE wordCount = 5 ORDER BY wordCount LIMIT 5. Query B: the same, but ORDER BY id. On this snapshot both return ids 2, 15, 18, 28 and 116. Which one meets the report's contract?

Choose one answer

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.