SELECT first_name, last_name FROM employees;This retrieves only the first_name and last_name columns.
SELECT * FROM employees;This returns every column in the employees table.
SELECT DISTINCT department FROM employees;Returns only unique department names.
SELECT first_name AS name FROM employees;Renames the first_name column in the output to name.
SELECT * FROM employees WHERE salary > 50000;
SELECT * FROM products WHERE name LIKE 'A%';Only returns rows that match the condition.
SELECT * FROM employees ORDER BY salary DESC;Sorts employees from highest to lowest salary.
SELECT * FROM employees LIMIT 5;Returns only the first 5 rows.
*Ask the AI if you need help understanding or want to dive deeper in any topic