Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 4 : COUNT(*) / COUNT(*)
Advertisement
Detailed Solution
सही उत्तर COUNT(*) / COUNT(*) है।
Key Points
Helpful?
Question:
Which of the following counts every row of a table, including rows where the column value is NULL? / निम्नलिखित में से कौन तालिका की प्रत्येक पंक्ति गिनता है, जिन पंक्तियों में कॉलम मान NULL है वे भी?
1.
COUNT(salary) / COUNT(salary)
2.
COUNT(DISTINCT salary) / COUNT(DISTINCT salary)
3.
SUM(salary) / SUM(salary)
4.
COUNT(*) / COUNT(*)
Correct Answer: COUNT(*) / COUNT(*)
COUNT(*) counts rows regardless of NULLs, while COUNT(column) and the other aggregates skip NULL values. / COUNT(*) NULL की परवाह किए बिना पंक्तियाँ गिनता है, जबकि COUNT(column) और अन्य एग्रीगेट NULL मान छोड़ देते हैं।
Downloaded from PrepSnap (prepsnap.in)