Q. What will the following query return?

Code:
SELECT COUNT(*) FROM users;
  • (A) Sum of all column values
  • (B) Number of users
  • (C) Maximum ID
  • (D) Names of users
πŸ’¬ Discuss
βœ… Correct Answer: (B) Number of users
Explanation: `COUNT(*)` counts the total number of rows in the `users` table.
Explanation by: Mr. Dubey
`COUNT(*)` counts the total number of rows in the `users` table.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate