List out all employees with band as D1 and earning a salary less than 30000.
SELECT * FROM employee WHERE Salary>=30000;
List out all employees who are not in band D2.
SELECT * FROM employee WHERE BAND!=D2;
List how many employees are there in band D2.
SELECT * FROM employee WHERE BAND =D2;
List out the min, max and average salary of each band.
1. select depid, max(salary) as MaxSalary, min(Salary) as MinSalary from table1
group by DepId