What does `COUNT(*)` count in SQL?

Advanced SQL Developer Easy

Advanced SQL Developer — Easy

What does `COUNT(*)` count in SQL?

Key points

  • `COUNT(*)` includes all rows, regardless of NULL values.
  • It does not consider the values within the columns.
  • This function is useful for getting the total number of rows in a result set.

Ready to go further?

Related questions