Question: Write a SQL query to find the top N records from a table.Answer: SELECT * FROM table ORDER BY column DESC LIMIT N; |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is SQL?
- What is a foreign key?
- Write a SQL query to update multiple rows in a table.
- What is the purpose of the SQL DISTINCT keyword?
- Write a SQL query to find the top N records from a table.