| SQL Count |
|
The SQL Count is a handy function allowing you to quickly total count number of records in a table. To use the SQL Count function you can use the following syntax: SELECT COUNT("column_name") FROM "table_name" Table: Student
RESULT:
Total Number of Student 4 You can also use the DISTINCT keyword in conjunction with the count function get the return distinct result. For example if we to find total number of unique course the student has enrolled in we would issue the following SQL statement: RESULT: Total Course
|