Question:

What will be the result of the following SQL query?

SELECT COUNT(*) FROM Employees;

Show Hint

COUNT(*) tallies every row, NULLs included.
Updated On: Jul 2, 2026
  • Returns the total number of rows in the Employees table
  • Returns the total number of unique values in the Employees table
  • Returns the total number of columns in the Employees table
  • Returns the number of NULL values in the Employees table
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: COUNT(*) counts every row in the table, including rows that contain NULL values.

Step 2: The asterisk means all rows, so the result is simply the row count of the Employees table.

Step 3: DISTINCT would count unique values, and NULL handling differs only when you count a specific column, but COUNT(*) always returns the total number of rows.
Was this answer helpful?
0
0