Single Choice Easy

QWhich MySQL function is used to calculate the total number of rows in a table?

ID: #15421 Introduction to MySQL Databases 125 views
Question Info
#15421Q ID
EasyDifficulty
Introduction to MySQL DatabasesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A COUNT()
  • B SUM()
  • C AVG()
  • D MAX()
Correct Answer

Explanation

The COUNT() function in MySQL is used to calculate the total number of rows in a table. It can be used with or without specifying a column, and it returns the count of non-null values.

Share This Question

Challenge a friend or share with your study group.