Select All Employees
Write a query to select all columns from the employees table. Return columns: id, first_name, last_name, email, department_id, salary, hire_date, manager_id.
Practice choosing columns, filtering rows, sorting results, and building reliable SQL foundations. These 2 interactive challenges use real schemas and instant query validation.
Write a query to select all columns from the employees table. Return columns: id, first_name, last_name, email, department_id, salary, hire_date, manager_id.
Write a query to retrieve only the first_name and last_name of all employees. Return columns: first_name, last_name.
Concept guide
SELECT chooses the columns and expressions returned by a query. Start by identifying the source table and the requested output, then check column names, aliases and row ordering.
No. Use an explicit ORDER BY when the task requires rows in a particular order.
No. Selecting named columns makes the output explicit. Return every column only when the task asks for it.