Question: SHOW SQL CODE WITH OUTPUT Question 9: 1. Consider the following tables: EMP (EMPNO, ENAME, JOB, SAL, DEPTNO, HOURS_WORKED) DEPT (DEPTNO, DNAME) a) Consider an

SHOW SQL CODE WITH OUTPUT

SHOW SQL CODE WITH OUTPUT Question 9: 1. Consider the following tables:

Question 9: 1. Consider the following tables: EMP (EMPNO, ENAME, JOB, SAL, DEPTNO, HOURS_WORKED) DEPT (DEPTNO, DNAME) a) Consider an employee can work in more than 1 department. Display the no. of hours worked by each employee if the no. of hours is greater than 40. b) Write a query to display the name, department number, and department name for all employees c) Write a trigger to stop the transaction if the salary of the employee entered by the user is below 2000

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!