Popular Posts

June 14, 2024

SQL Server Find the highest salaries for each department

 

Please find below SQL server Query to find the highest salaries for each department

SELECT Deptno, max(Sal) as 'Max Salary' from Emp Group by Deptno

Results:


SQL Server Find the highest salaries for each department







No comments:
Write comments