Views
Views
Views
1. Create a view as from EMPLOYEE table having the following attributes :
Ename, bdate, address.
2. Create a view from EMPLOYEE table having following attributes:
ename, esrno, salary, mgrsrno, dno. Employee Names should be in sorted order.
3. Create a view from EMPLOYEE table having following attributes:
Ename as Name, bdate as DOB, esrno, salary, mgrsrno, dno Only Department # 1 & 3
employees should appear in the view.
4. Create a view from EMPLOYEE table having following attributes:
esrno as eid, dno, salary as sal, comm The commission should be 45% of salary.
5. Create a view from EMPLOYEE table having following attributes:
ename (initial capital letter), yob (year of bdate), address as addr.
6. Create a view from DEPT_LOCATION table having following attributes:
Dnumber as dnum, dlocation as dloc ( all capital letter).
7. Create a view from EMPLOYEE & DEPARTMENT table having following attributes:
ename, esrno, mgrsrno, salary, dnumber, dname.
8. Create a view from EMPLOYEE & DEPT_LOCATION having following attributes:
ename, esrno, bdate, dno, dlocation.
9. Create a view from WORKS_ON table having following attributes:
esrno, time (sum of hours of an employee).
10. Create a view from EMPLOYEE, DEPARTMENT, PROJECT, DEPT_LOCATION table having
following attributes: esrno, ename, dno, dname , dlocation, pnumber, pname, plocation.
11. Create a view from EMPLOYEE table having following attributes:
ename, esrno, salary as empsal, mgrsrno, mgrname (manager’s name), mgrsal (manager’s
salry).
12. Insert a record into the view created in Q6 having the following data: dnumber = 5, dlocation
= ”Mancheswar”.
13. Update in the view created in Q6 all dnumber = 5 to dnumber = 10