Saved Bookmarks
| 1. |
Give the following relationsEMPL ( FirstName, LastName, Workdept, Empno, Educlevel, Jobcode, Salary, Bonus, hiredate)Dept (Deptno, Deptname, Mgrno, Adurdept)Statement for creating above table :1. List employee numbers and name in manufacturing system for job code 54. 2. Same request as above with educational level below 15.3. List those employees’ last name and monthly salary plus bonus, whose job code is at least three tmes their educational level and whose annual basic salary plus bonus exceed 100000. |
|
Answer» 1. SELECT Empno, FirstName from EMPL WHERE Workdept = ‘Menufacture’ AND Jobcode = 54; 2. SELECT Empno, FirstName from EMPL WHERE Workdept = ‘Menufacture’ AND Jobcode =< 15; 3. SELECT LastName, Salary+Bonus from EMPL WHERE Jobcode = (Educlevel * 3) AND ((Salary * 12) + Bonus) > 100000; |
|