Table: actor
col_name | col_type -------------+-------------------------- actor_id | integer first_name | text last_name | text
Question 17
actor_id. Table: actor
col_name | col_type -------------+-------------------------- actor_id | integer first_name | text last_name | text
Sample results
actor_id
----------
1
Solution
postgresSELECT actor_id
FROM actor
WHERE first_name = 'GROUCHO'
AND last_name = 'WILLIAMS';
Explanation
This query is selecting the actor_id from the actor table where the first name is 'GROUCHO' and the last name is 'WILLIAMS'. It is likely trying to find a specific actor with those exact names.
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.