πŸ“Š MySQL
Q. What does the following SQL do?
Code:
SELECT * FROM customers LIMIT 5;
  • (A) Fetches all records
  • (B) Fetches last 5 records
  • (C) Fetches first 5 records
  • (D) Fetches records from 5th row
πŸ’¬ Discuss
βœ… Correct Answer: (C) Fetches first 5 records

Explanation: The `LIMIT 5` clause restricts the output to the first 5 rows.

Explanation by: Mr. Dubey
The `LIMIT 5` clause restricts the output to the first 5 rows.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate