ExamVeda
Login
Home
This question belongs to Database Introduction To SQL
Introduction to SQL
?

The SQL statement: SELECT Name, COUNT(*) FROM NAME_TABLE; counts the number of name rows and displays this total in a table with a single row and a single column.

Answer & Solution
Correct Answer: Option A
The SQL statement SELECT Name, COUNT(*) FROM NAME_TABLE; counts the number of rows in the NAME_TABLE and displays this total alongside each unique Name in separate rows. The COUNT(*) function counts all rows returned by the query.

Conclusion:
The statement "The SQL statement: SELECT Name, COUNT(*) FROM NAME_TABLE; counts the number of name rows and displays this total in a table with a single row and a single column" is Option A: True. Hence, the correct answer is True.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Bayan Izz
Bayan Izz 5 years ago
What type of join is needed when you wish to include rows that do not have matching values?