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

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
Get step-by-step solutions from verified subject matter experts
