With SQL, how can you return the number of records in the "Persons" table? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

With SQL, how can you return the number of records in the "Persons" table?

SELECT COUNT() FROM Persons is true?

25th Mar 2017, 8:17 AM
Hassan Papi
Hassan Papi - avatar
2 Answers
+ 3
Select count(*) from Persons
25th Mar 2017, 10:23 AM
Василий Пупкин
Василий Пупкин - avatar
+ 1
Yes using COUNT().
25th Mar 2017, 8:35 AM
Bhabesh Gogoi
Bhabesh Gogoi - avatar