Start learning 50% faster. Sign in now
Explanation: The correct query uses SQL’s GROUP BY to aggregate data by department , calculates the sum of salary for each department using SUM(salary) , and orders the results in descending order with ORDER BY . Finally, the LIMIT 3 clause retrieves only the top three departments. This approach is efficient and aligns with database query standards, ensuring the highest salaries are calculated accurately and in rank order. Option B: MAX(salary) cannot be used without a GROUP BY clause for the entire table, and the syntax is incorrect. Option C: COUNT(salary) measures frequency, not total salary. Option D: DISTINCT eliminates duplicates but does not aggregate data for rankings. Option E: MAX(salary) sorts by individual highest salaries, not aggregated totals, leading to incorrect results.
According to the Consumer Protection Rules, 2021, which of the following options correctly describes the revised pecuniary jurisdiction for filing a con...
According to Sales of Goods Act, 1930 which of the following accurately describes the legal effect of a person, who has sold goods but continues to pos...
Under Section 34 of the Arbitration and Conciliation Act, 1996, a challenge to an arbitral award must be made within_____________
Section 7 of the Court Fees Act, 1870 deals with________.
What does "tort" mean?
As per the Companies Act, 2013 when is a company prohibited from directly or indirectly purchasing its own shares or other specified securities?
Right to lodge caveat has been provided in which Section of the Code of Civil Procedure, 1908.
The Power of Revision under Section 115 of Code of Civil Procedure lies with:
There should not be a gap of more than __________ in between two sittings of house/s of State Legislature?
Which of the following pairs are correctly matched?