The COUNT() Function
Swipe to show menu
COUNT() is a function that allows you to count rows in a table or count how many rows match certain criteria.
Let's see an example:
12SELECT COUNT(name) FROM country;
To count the total number of rows in the table, we can use the following syntax:
12SELECT COUNT(*) FROM country;
Everything was clear?
Thanks for your feedback!
SectionΒ 5. ChapterΒ 3
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
SectionΒ 5. ChapterΒ 3