Professional Documents
Culture Documents
Sample Qns
Sample Qns
Display all the details of those employees whose dept_id is D12 and
whose salary is more than 5000.
4.Write a query to display details of all employees who have been given
a salary (i.e., salary is not null) and works in the department D1.
1. Select * from employee where dept_id = “D12” and Salary > 5000;
4. Select * from employee where salary is not null and dept_id = “D1”;