Beruflich Dokumente
Kultur Dokumente
Table 1 : DEPT
DEPTNO (NOT NULL ,AUTO NUMBER), DNAME (VARCHAR),
LOC (VARCHAR)
Table 2 : EMP
EMPNO (NOT NULL , AUTO NUMBER), ENAME (VARCHAR),
JOB (VARCHAR), HIREDATE (DATE),
SAL (NUMBER), COMM (NUMBER), DEPTNO (NUMBER)
DEPTNO in Table 1 is primary key and foreign key in table 2, where as in table 2
EMPNO is primary key.
After Executing the above table some modifications were needed in table 2 compare
both tables and write down the modifications in queries
Table 2 : EMP
EMPNO (NOT NULL , AUTO NUMBER), ENAME (VARCHAR),
JOB (CHAR), HIREDATE (DATE), POSITION(CHAR)
SALARY (NUMBER),DEPTNO (NUMBER)
QUESTION 2: Write down the QUERIES for the following given situations.
d. Create view Fan_View so that author whose name start with S and see only the detail of
songs.
f. Create view Name_View to get statistics for musician with id greater than 5.
Question 3: Following are the Sample data tables provided apply all required Queries.
Programmer
PName DOB DOJ Gender Proficiency1 Proficiency2 Salary
Software
PName Title DevelopedIN DCost Sold
Smith Spatial Java 30000 50000
Jons Meox Pascal 25000 40000
Amilia Ubro Shell 8000 15000
Smith Miltex Java 45000 60000
Amilia Galax PHP 5000 10000