The document outlines SQL operations for managing an EMPLOYEE table, including schema creation, data manipulation, and queries for inserting, updating, displaying, and deleting records. It specifies tasks such as adding columns, changing data types, and filtering records based on various criteria. Additionally, it includes requirements for listing employees based on job titles, salary comparisons, and specific joining dates.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views
DBMS
The document outlines SQL operations for managing an EMPLOYEE table, including schema creation, data manipulation, and queries for inserting, updating, displaying, and deleting records. It specifies tasks such as adding columns, changing data types, and filtering records based on various criteria. Additionally, it includes requirements for listing employees based on job titles, salary comparisons, and specific joining dates.
1. Add a new column; HIREDATE to the existing relation. 2. Change the datatype of JOB_ID from char to varchar2. 3. Change the name of column/field Emp_no to E_no. 4. Modify the column width of the job field of emp table.
2) Create a table EMPLOYEE with following schema:
(Emp_no, E_name, E_address, E_ph_no, Dept_no, Dept_name,Job_id , Salary) Write SQL queries for following question: 1. Insert aleast 5 rows in the table. 2. Display all the information of EMP table. 3. Display the record of each employee who works in department D10. 4. Update the city of Emp_no-12 with current city as Nagpur. 5. Display the details of Employee who works in department MECH. 6. Delete the email_id of employee James. 7. Display the complete record of employees working in SALES Department.
3)Create a table EMPLOYEE with following schema:
(Emp_no, E_name, E_address, E_ph_no, Dept_no, Dept_name,Job_id, Designation , Salary) Write SQL statements for the following query. 1. List the E_no, E_name, Salary of all employees working for MANAGER. 2. Display all the details of the employee whose salary is more than the Sal of any IT PROFF.. 3. List the employees in the ascending order of Designations of those joined after 1981. 4. List the employees along with their Experience and Daily Salary. 5. List the employees who are either ‘CLERK’ or ‘ANALYST’ . 6. List the employees who joined on 1-MAY-81, 3-DEC-81, 17-DEC-81,19-JAN-80 . 7. List the employees who are working for the Deptno 10 or20. 8. List the Enames those are starting with ‘S’ . 9. Dislay the name as well as the first five characters of name(s) starting with ‘H’ 10. List all the emps except ‘PRESIDENT’ & ‘MGR” in asc order of Salaries.