The document provides instructions to create and modify employee and department tables in a database, including adding columns, inserting values, modifying data, creating foreign keys, and performing queries.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
22 views2 pages
Week 4
The document provides instructions to create and modify employee and department tables in a database, including adding columns, inserting values, modifying data, creating foreign keys, and performing queries.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
1.
Create a employee table(as shown above) and add a
column with name deptno. And Insert values into the table in above format. 2.Modify one name in any row ‘e_name ‘in the table. Add a column ‘city’ with default value=Hyderabad. 3. create a dept table.create foreign key. 4.Find the details of the female employees. Find the details of the employee whose salary is lowest. 5.Find the details of the employees who works in operation department. Find the name of the employee whose salary is highest. 6. .Find the details of the employees who works in Analytics department. Find the details of the employee whose age is highest . 7.Find the average salary of the employees in the organisation. 8.find the total amount of salaries(employees) . 9.Delete the employee details who works in support department. 10. Update the name matt to joy.