Complete the SQL query to select all columns from the table named 'employees'.
SELECT [1] FROM employees;The asterisk (*) symbol in SQL means to select all columns from the specified table.
Complete the SQL query to select only the 'name' column from the 'employees' table.
SELECT [1] FROM employees;To select a specific column, write its exact name after SELECT.
Fix the error in the SQL query to select employees with salary greater than 50000.
SELECT * FROM employees WHERE salary [1] 50000;
The operator '>' means greater than, which matches the requirement.
Fill both blanks to select employees whose age is between 25 and 40.
SELECT * FROM employees WHERE age [1] 25 AND age [2] 40;
To select ages between 25 and 40 inclusive, use >= 25 and <= 40.
Fill all three blanks to select employee names and salaries where salary is above 60000 and department is 'Sales'.
SELECT [1], [2] FROM employees WHERE salary [3] 60000 AND department = 'Sales';
Select the columns 'name' and 'salary', and use '>' to filter salaries above 60000.