Professional Documents
Culture Documents
Page 1 of 3
This study source was downloaded by 100000847731645 from CourseHero.com on 06-01-2022 22:38:50 GMT -05:00
https://www.coursehero.com/file/78754146/DBMS-LAB-FINAL-PAPERdocx/
1-Example of ERD:
Page 2 of 3
This study source was downloaded by 100000847731645 from CourseHero.com on 06-01-2022 22:38:50 GMT -05:00
https://www.coursehero.com/file/78754146/DBMS-LAB-FINAL-PAPERdocx/
Perform the following queries for above table:
1. Write a query to display maximum, minimum, sum and average of salaries.
2. List all records with EName, Salary, Commission and Total Salary after commission.
3. Delete the third row from the table Epm.
4. Show all records in descending order with respect to Ename.
5. How many records do we have?
6. Add Column Bonus Salary in Emp Table.
7. Write a query to find Ename whose Ename Start with ‘A’ and 'S'.
8. Update the EName (Emp table) as Charlie where EmpNo is 1004.
9. Write a query to find all Ename with ManagerNo as “505” and 512“.
10. Write a query to find all Ename where Job is salesman.
11. List all ‘Salesman’ and add 500 to their salaries, also change the column heading to
Salary With Bonus.
12. Write a query to find unique jobs from the Emp table.
13. List all employees who are either manager or salesman.
14. Show all records whose salary is more than 2000 and less than 6000.
15. write a query to find How many jobs do we have?
Page 3 of 3
This study source was downloaded by 100000847731645 from CourseHero.com on 06-01-2022 22:38:50 GMT -05:00
https://www.coursehero.com/file/78754146/DBMS-LAB-FINAL-PAPERdocx/
Powered by TCPDF (www.tcpdf.org)