01
Write a query to get employees from Delhi with salary above 50000, highest first.
Show answer
SELECT emp_id, name, salary
FROM employees
WHERE city = 'Delhi'
AND salary > 50000
ORDER BY salary DESC;
WHERE filters rows, and ORDER BY DESC sorts from highest to lowest. Add LIMIT 10 in MySQL or PostgreSQL, or TOP 10 in SQL Server, to return only the first ten.