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.
When more persons than one are being tried jointly for the same offence, and a confession made by one of such persons affecting himself and some other o...
How can a contract of continuing guarantee be revoked by the surety?
According to the Occupational Safety, Health and Working Conditions Code, 2020 the _______________ be responsible for making financial and other provis...
The famous case of Lalman Shukla vs. Gauri Datt is related to:
In which of the ways can a contract be discharged?
As per IPC what is the punishment for concealing with intent to facilitate design to wage war?
When a court is satisfied that the omission to include a new plaintiff or defendant in a suit was due to a mistake made in good faith it may direct th...
The famous law and morality debate is also called:
Who is responsible for sending a notice when an accident occurs in an establishment that causes death or significant injury as per the Occupational Safe...
What is the duration for which the Reporting Entity shall maintain record of documents evidencing identity of its clients and beneficial owners as well ...