Javatpoint Logo
Javatpoint Logo

SQLite COUNT Function

SQLite COUNT Function is used to fetch the total count of an expression.

Syntax:

Syntax when you use MAX function with GROUP BY clause:

Example1:

We have a table named "STUDENT", having the following data:

Sqlite Count function 1

Count all the number of students in the "STUDENT" table where AGE is greater than 22.

Output:

Sqlite Count function 2

Example2:

Using GROUP BY clause with COUNT function:

Count the number of students with a specific name where the age is greater than 22 and group by the students by name.

Output:

Sqlite Count function 3
Next TopicSQLite Sum




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA