Description:
This query throws a syntax error. One line is in the wrong place. Which one, and where should it go?
SELECT name, salary
FROM employees
ORDER BY salary DESC
WHERE department = 'IT';
The database says: near "WHERE": syntax error.
Write the fixed query in the comments. Don't just name the line, write it.
Save this for your next SQL interview.
Or just ask in plain English. AI2sql writes the SQL for PostgreSQL, MySQL and SQL Server.
#shorts #sql #sqlinterview #dataanalyst #learnsql
Share this link via
Or copy link
























