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.
Who bears the burden of proof in a legal proceeding?
Under the Payment of wages Act. 1936 payment of wages of establishments employing not more than 1000 employees shall be paid within of the wage month
In a prosecution for offenses under various sections of the Bharatiya Nyaya Sanhita, 2023, when the question of consent is at issue, which of the follo...
Which of the following is/are not included in the definition of ‘Employee’ as given in Section 2(i) of the Minimum Wages Act, 1948
Which of the following is not included in the definition of Wages under the Minimum Wages Act 1948?
...
Which one of the following Acts requires employers in industrial establishments formally to define conditions of employment under them mdash;
Under the Arbitration & Conciliation Act, when does the mandate of an arbitrator terminate, and who replaces the arbitrator?
When shall an employer be liable to pay compensation to an employee as per the Employee’s Compensation Act?