Question
Option 3 : 2 / 2
Detailed Solution
सही उत्तर 2 / 2 है।
Question:
Consider the table Sales with the rows shown below:
Region : Quarter : Amount East : Q1 : 400 East : Q2 : 600 West : Q1 : 500 West : Q2 : 700 How many rows will the query SELECT Region FROM Sales GROUP BY Region HAVING SUM(Amount) >= 1000; return? / ऊपर दी गई Sales तालिका पर विचार करें। क्वेरी SELECT Region FROM Sales GROUP BY Region HAVING SUM(Amount) >= 1000; कितनी पंक्तियाँ लौटाएगी?
Correct Answer: 2 / 2
GROUP BY Region forms two groups: East with total 400 + 600 = 1000 and West with total 500 + 700 = 1200. The HAVING clause keeps groups whose sum is at least 1000, so both groups qualify and the query returns 2 rows. / GROUP BY Region से दो समूह बनते हैं: East का योग 400 + 600 = 1000 और West का योग 500 + 700 = 1200। HAVING क्लॉज़ उन्हीं समूहों को रखता है जिनका योग कम से कम 1000 हो, अतः दोनों समूह अर्ह हैं और क्वेरी 2 पंक्तियाँ लौटाती है।