Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 4 : 5
Advertisement
Detailed Solution
सही उत्तर 5 है।
Key Points
Helpful?
Question:
Table T has a column bonus with 10 rows: 3 rows hold 1000, 2 rows hold NULL, and 5 rows hold other values. What does SELECT COUNT(*) FROM T WHERE bonus <> 1000 return? / तालिका T के bonus स्तंभ में 10 पंक्तियाँ हैं: 3 में 1000, 2 में NULL और 5 में अन्य मान हैं। SELECT COUNT(*) FROM T WHERE bonus <> 1000 क्या लौटाएगा?
1.
8
2.
7
3.
2
4.
5
Correct Answer: 5
Comparisons with NULL yield UNKNOWN, so the 2 NULL rows are excluded; only the 5 rows with other values qualify. / NULL से तुलना UNKNOWN देती है, अतः 2 NULL पंक्तियाँ बाहर; केवल 5 पंक्तियाँ योग्य।
Downloaded from PrepSnap (prepsnap.in)