Javatpoint Logo
Javatpoint Logo

SQL Server COUNT() Function

The SQL Server COUNT() function is used to return the count of an expression.

Syntax:

Example:

Output:

SQL server count function 1

Let's take another table named "Employee2".

Example:

Output:

SQL server count function 2

This query is used when you have multiple employees of same name.






Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA