STRUCTURED QUERY LANGUAGE (SQL)
I.
1. From the Table1. Employee, provide and write the corresponding SQL statements asked in the
following.
a. Salary = 20000
SELECT Employee_Name, DEPT FROM Employee WHERE SALARY = 20000;
b. Employee under Sales department
SELECT Employee_Name FROM Employee WHERE DEPT = ‘Sales’;
c. Employee ID > 1003 or Employee ID < 1002
SELECT Employee_ID, Employee_Name, Salary FROM Employee WHERE Employee_ID >
1003 OR Employee_ID < 1002;
d. Employees with a salary 20000, 15000, 25000 use the IN operator
SELECT Employee_ID, Employee_Name, Salary FROM Employee WHERE IN (20000, 15000,
25000);