1.

Which SQL function is used to count the number of rows in a SQL query?(a) COUNT()(b) NUMBER()(c) SUM()(d) COUNT(*)This question was posed to me during an interview.My question comes from Basic SQL in division Laying the Foundation of SQL Server

Answer» RIGHT CHOICE is (d) COUNT(*)

For explanation: COUNT(*) takes NULL value row in to CONSIDERATION.


Discussion

No Comment Found

Related InterviewSolutions