Complete the code to select all columns from the table named 'employees'.
SELECT [1] FROM employees;The asterisk (*) is used in SQL to select all columns from a table.
Complete the code to limit the number of rows returned to 5 in a MySQL query.
SELECT * FROM products [1] 5;
In MySQL, the LIMIT keyword is used to restrict the number of rows returned.
Fix the error in the SQL Server query to select the top 3 rows from the 'orders' table.
SELECT [1] 3 * FROM orders;
SQL Server uses TOP before the number to limit rows, unlike LIMIT in MySQL.
Fill both blanks to write a PostgreSQL query that fetches 10 rows starting from the 5th row.
SELECT * FROM sales [1] 10 [2] 5;
PostgreSQL uses LIMIT to specify how many rows to return and OFFSET to skip rows.
Fill all three blanks to write an Oracle SQL query that fetches 5 rows after skipping the first 10 rows.
SELECT * FROM employees [2] 10 ROWS [1] [3] 5 ROWS ONLY;
Oracle uses OFFSET to skip rows and FETCH NEXT n ROWS to limit rows returned.