8 - Filtering Max or Minimum Salary from each Department(Group By)

 

ORIGINAL LIST




Filter the Maximum Salary and Its details from Each Department


select *from employees where salary in(select max(salary) from employees group by department);


Filter the Minimum Salary and Its details from Each Department


select *from employees where salary in(select min(salary) from employees group by department);

Comments

Popular posts from this blog

5 - DML commands used in MySQL WorkBench

INDEX OF Zeek MySQL

4 - DDL commands used in MySQL Workbench