Table: staff_list
col_name | col_type ----------+---------- id | integer name | text address | text zip code | text phone | text city | text country | text sid | smallint
Question 16
Table: staff_list
col_name | col_type ----------+---------- id | integer name | text address | text zip code | text phone | text city | text country | text sid | smallint
Sample results
name -------------- Jon Stephens
Solution
postgresSELECT name
FROM staff_list
WHERE city = 'Woodridge';
Explanation
This query is asking the database to retrieve the names of all employees who live in the city of Woodridge. The database is looking in a table called "staff_list" which should contain a list of all employees and their corresponding information such as name, address, and city. The "WHERE" clause is filtering the results to only include employees who live in Woodridge. The output of this query will be a list of employee names who live in Woodridge.
Last Submission
postgresNo submission yet for this engine. Run and submit your query to save it here.
Submit a query to compare against expected output.
Interview timer
Recommended interview pacing
Easy: 5 min for direct warm-up style questions.
Medium: 10 min for multi-step interview queries.
Hard: 15 min for layered questions with tighter time pressure.
A common bar is solving about 2 medium-or-harder questions in a 30 minute interview.
5:00
Run your query to preview results here.