1.

With SQL, how can you return the number of not null records in the “Persons” table?(a) SELECT COUNT() FROM Persons(b) SELECT COLUMNS() FROM Persons(c) SELECT COLUMNS(*) FROM Persons(d) SELECT COUNT(*) FROM PersonsI have been asked this question in class test.I want to ask this question from Basic SQL in division Laying the Foundation of SQL Server

Answer»

The CORRECT choice is (a) SELECT COUNT() FROM Persons

For explanation: COUNT(column_name) is used to count the NUMBER of rows of a table where column name is a column that does not allow NULL values.



Discussion

No Comment Found

Related InterviewSolutions