Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 4 : 3 / 3
Advertisement
Detailed Solution
सही उत्तर 3 / 3 है।
Key Points
Helpful?
Question:
customers(city) has rows 'Delhi', 'Mumbai', 'Delhi'; suppliers(city) has rows 'Mumbai', 'Chennai'. How many rows does SELECT city FROM customers UNION SELECT city FROM suppliers; return? / customers(city) में पंक्तियाँ 'Delhi', 'Mumbai', 'Delhi' हैं; suppliers(city) में पंक्तियाँ 'Mumbai', 'Chennai' हैं। SELECT city FROM customers UNION SELECT city FROM suppliers; कितनी पंक्तियाँ लौटाता है?
1.
5 / 5
2.
4 / 4
3.
2 / 2
4.
3 / 3
Correct Answer: 3 / 3
UNION (unlike UNION ALL) removes duplicate rows across both result sets: the distinct cities are Delhi, Mumbai and Chennai — 3 rows. / UNION (UNION ALL के विपरीत) दोनों परिणाम-समुच्चयों में डुप्लिकेट पंक्तियाँ हटा देता है: भिन्न शहर Delhi, Mumbai और Chennai हैं — 3 पंक्तियाँ।
Downloaded from PrepSnap (prepsnap.in)