-- 1. Query to find the names of employees in department No. 10
SELECT employee_name FROM employee WHERE dept = 10; -- 2. Query to find the names of all employees in department No. 10 with a salary greater than 2000 SELECT employee_name FROM employee WHERE dept = 10 AND salary > 2000;
-- 3. Query to find the names of employees in department No. 10 or
department No. 20 SELECT employee_name FROM employee WHERE dept IN (10, 20);
-- 4. Query to find the names of employees who work in department
No. 10, 20, or 30 SELECT employee_name FROM employee WHERE dept IN (10, 20, 30); -- 5. Query to find the names of all employees whose salary is between 1000 and 3000 SELECT employee_name FROM employee WHERE salary BETWEEN 1000 AND 3000;
-- 6. Query to find the names of employees whose names lie between
'a' and 'd' SELECT employee_name FROM employee WHERE employee_name BETWEEN ‘A’ AND ‘D’;
-- 7. Rename the table
ALTER TABLE employee RENAME TO new_table_employee; -- 8. Description of the table DESCRIBE new_table_employee;