SQL COUNT() Function

Submitted by admin on

COUNT is a simple aggregate function provided by SQL. As it is clear from its name that it simply counts the number of records in the table and returns the total count.

There are three (3) different usage for the Count function.

  • SQL COUNT(column_name)
  • COUNT(*)
  • COUNT(DISTINCT column_name)

Consider the following table for this exercise

Employess

SQL Data Types

Submitted by admin on

The data type determines the kind of values that users can store in the field. Like every programming languages, the SQL also has specific data type to store data. Following are some data type and there descriptions in which SQL allows us to store data.

Microsoft Access Data Types

Source: Microsoft Access Help