Computer AwarenessHardIBPS SO IT · IBPS PO Mains
In SQL, which clause filters the groups produced by GROUP BY, for example to keep only branches whose total deposits exceed ₹1 crore?
- A. WHERE
- B. ORDER BY
- C. HAVING
- D. DISTINCT
Correct answer: C. HAVING
WHERE filters individual rows BEFORE grouping and cannot use aggregates such as SUM(); HAVING filters the groups AFTER aggregation.
हिंदी में
SQL में कौन-सा क्लॉज़ GROUP BY से बने समूहों को फ़िल्टर करता है, जैसे केवल उन शाखाओं को रखने के लिए जिनकी कुल जमा राशि ₹1 करोड़ से अधिक है?
- A. WHERE
- B. ORDER BY
- C. HAVING
- D. DISTINCT
उत्तर: C. WHERE समूह बनाने से पहले अलग-अलग पंक्तियों को फ़िल्टर करता है और SUM() जैसे समुच्चय फ़ंक्शन का प्रयोग नहीं कर सकता; HAVING समुच्चयन के बाद समूहों को फ़िल्टर करता है।
More Computer Awareness questions
- A table CUSTOMER has 6 rows; the Phone column is NULL in 2 of them. What do COUNT() and COUNT(Phone) return?
- A bank allows joint accounts: one customer may hold several accounts, and one account may belong to several customers. What is the…
- In an ER model, the entity DEPENDENT (an employee's family member) cannot be uniquely identified without the EMPLOYEE it belongs to. What…
- A database administrator moves a table to a faster disk and adds a new index. Neither the logical schema nor any application program has…
- Assertion (A): Creating an index on a column makes searches on that column faster. Reason (R): Every INSERT or UPDATE on the table must…
- How many of these statements are correct? I. A table can have only one primary key. II. A primary key column can never hold NULL. III. A…