← Back to SELECT Basics
Question 28
Students Who Live in Toronto
Students Who Live in Toronto
List thefirst_nameandlast_nameof every student whose homecityis Toronto. Eight students should come back.
Expected result:
+------------+-----------+ | first_name | last_name | +------------+-----------+ | Ava | Patel | | Noah | Kim | | Lucas | Fernandes | | Mason | Nguyen | | Elijah | Costa | | Emily | Zhang | | Scarlett | Johnson | | Leo | Martin | +------------+-----------+ 8 rows
Hints2 available
Sign in to use hintsTopics:
SELECT Basics
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (sel, ins, desc)
Results
Run your SQL to see every statement's output here, then how it compares with the expected answer.
Not sure what is in a table? SHOW TABLES lists them and DESCRIBE students shows the columns — or open the database browser on the left.