Complete the code to select the first 5 rows using LIMIT syntax.
SELECT * FROM employees [1] 5;
The LIMIT keyword is used in SQL dialects like MySQL and PostgreSQL to restrict the number of rows returned.
Complete the code to select the top 3 rows using TOP syntax.
SELECT [1] 3 * FROM sales;
The TOP keyword is used in SQL Server to get the first N rows.
Fix the error in the FETCH FIRST syntax to select 10 rows.
SELECT * FROM orders [1] 10 ROWS ONLY;
The correct syntax to limit rows in standard SQL is FETCH FIRST N ROWS ONLY.
Fill both blanks to select 7 rows using FETCH FIRST syntax.
SELECT * FROM products ORDER BY price [1] 7 [2] ONLY;
The standard syntax is FETCH FIRST N ROWS ONLY to limit rows.
Fill all three blanks to select top 4 rows using TOP syntax with alias.
SELECT [1] 4 [2] FROM sales_data AS top_sales [3];
Use TOP after SELECT, then columns (like *), and optionally a WHERE clause for filtering.
