Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 1 : 4 and 2 / 4 और 2
Advertisement
Detailed Solution
सही उत्तर 4 and 2 / 4 और 2 है।
Key Points
Helpful?
Question:
Table emp has 4 rows; column comm contains 500, NULL, 300, NULL. What does SELECT COUNT(*), COUNT(comm) FROM emp; return? / टेबल emp में 4 पंक्तियाँ हैं; कॉलम comm में 500, NULL, 300, NULL हैं। SELECT COUNT(*), COUNT(comm) FROM emp; क्या लौटाता है?
1.
4 and 2 / 4 और 2
2.
2 and 4 / 2 और 4
3.
4 and 4 / 4 और 4
4.
2 and 2 / 2 और 2
Correct Answer: 4 and 2 / 4 और 2
COUNT(*) counts rows regardless of NULLs (4); COUNT(comm) counts only non-NULL values in the column (500 and 300, i.e. 2). / COUNT(*) NULLs की परवाह किए बिना पंक्तियाँ गिनता है (4); COUNT(comm) कॉलम के केवल गैर-NULL मान गिनता है (500 और 300, अर्थात् 2)।
Downloaded from PrepSnap (prepsnap.in)