Learn with Abdou

Chapter 2 · Concept 6 of 6 · Practice

Define what first and top mean

ORDER BY, DESC, ties, LIMIT and OFFSET · level 6 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 6 of 6

West of Chicago

Level 6: Transfer it · Exercise 2 of 9

Same idea as Define what first and top mean, new data.

Chicago sits at longitude -87.629798. Return city and longitude for every city west of it, from the farthest west eastward, ties broken by city name. Finish line: two columns, Chicago itself not in the list.

Finish line: 6 rows · columns city, longitude · in the order the question gives

Data: North American Cities.

Opening the database…
Table & column names only · ↑ ↓ choose · Tab insert · Esc dismiss

CURRENT DATABASE

Quick schema · North American Cities

Press Esc or click outside to return to your query. PK = primary key · FK = declared foreign key.

This database has no tables yet. Create a table, then reopen the schema to see its columns.

Control Space also opens names. Enter adds a new line. Control or Command Enter runs your query.
Open in the playground

Query results

Run your query to see the result here.

Run your query to see the result here.

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