Complete the code to select only the 'name' column from the 'employees' table.
SELECT [1] FROM employees;The SELECT statement specifies which columns to retrieve. Here, we want only the 'name' column.
Complete the code to select the 'id' and 'email' columns from the 'users' table.
SELECT id, [1] FROM users;To select multiple columns, list them separated by commas. Here, 'email' is the second column to select.
Fix the error in the query that should select only the 'price' column from the 'products' table.
[1] FROM products;To select a single column, write SELECT column_name directly. No comma, asterisk, or extra keyword is needed before the column name.
Fill both blanks to select 'first_name' and 'last_name' columns from the 'customers' table.
SELECT [1], [2] FROM customers;
To select multiple columns, list them separated by commas. Here, 'first_name' and 'last_name' are the correct columns.
Fill all three blanks to select 'title', 'author', and 'year' columns from the 'books' table.
SELECT [1], [2], [3] FROM books;
List the columns you want separated by commas: 'title', 'author', and 'year'.