consider employee eno ename esalary dcode


Consider employee (e_no, e_name, e_salary, d_code), dept
(d_code, d_name) and dependent (depndt_name, e_no, relation).
Show the names of employees in purchase and accounts departments with at least one dependent.

SELECT e_name FROM employee, dependent, dept
WHERE employee.d_code=dept.d_code
AND employee.e_no=dependant.e_no
AND d_name IN (‘ACCOUNTS', ‘PURCHASE')
GROUP BY e_name
HAVING COUNT (e_no)>=1

Request for Solution File

Ask an Expert for Answer!!
Database Management System: consider employee eno ename esalary dcode
Reference No:- TGS0282926

Expected delivery within 24 Hours