Question: Null? Null? NOT NULL EMPLOYEES Name EMP_ID FIRST NAME LAST NAME JOB SALARY DEPT_ID DEPARTMENTS Type Name NUMBER(4) DEPT ID VARCHAR2(10) DEPT_NAME VARCHAR2(10) DEPT LOC

 Null? Null? NOT NULL EMPLOYEES Name EMP_ID FIRST NAME LAST NAME

Null? Null? NOT NULL EMPLOYEES Name EMP_ID FIRST NAME LAST NAME JOB SALARY DEPT_ID DEPARTMENTS Type Name NUMBER(4) DEPT ID VARCHAR2(10) DEPT_NAME VARCHAR2(10) DEPT LOC ID VARCHAR2(9) NUMBER NUMBER(2) Type NUMBER(2) VARCHAR2(20) NUMBER NOT NULL I. Provide SQL query code for the following three questions based on the provided schemas. 1. List the records for employees who have top salary and bottom salary for each department sorted based on department id and salary amount. 2. List the records for employees who have salary higher than their individual departments average salary. 3. List the 2nd highest salary for each department and the salary is higher than the average salary of the department. II. Conduct 18, 2d, 3rd, and BCNF normalization for the following two questions. 1. R(A,B,C,D,E,F,G) with FDs as A-B, CED, D-F, ACE-BDF 2. R(A,B,C,D,E,F) with FDs as A-E, CEAF, DEBF, B-F|| Null? Null? NOT NULL EMPLOYEES Name EMP_ID FIRST NAME LAST NAME JOB SALARY DEPT_ID DEPARTMENTS Type Name NUMBER(4) DEPT ID VARCHAR2(10) DEPT_NAME VARCHAR2(10) DEPT LOC ID VARCHAR2(9) NUMBER NUMBER(2) Type NUMBER(2) VARCHAR2(20) NUMBER NOT NULL I. Provide SQL query code for the following three questions based on the provided schemas. 1. List the records for employees who have top salary and bottom salary for each department sorted based on department id and salary amount. 2. List the records for employees who have salary higher than their individual departments average salary. 3. List the 2nd highest salary for each department and the salary is higher than the average salary of the department. II. Conduct 18, 2d, 3rd, and BCNF normalization for the following two questions. 1. R(A,B,C,D,E,F,G) with FDs as A-B, CED, D-F, ACE-BDF 2. R(A,B,C,D,E,F) with FDs as A-E, CEAF, DEBF, B-F||

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!