A

Admin • 828.70K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin
`COUNT(*)` counts the total number of rows in the `users` table.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.