- Find the name and address
of employees
in the Research department
Solution:
Name and address of all employees:
SELECT fname, lname, address, dno
FROM employee
Add in department name information:
SELECT fname, lname, address, dno, dname
FROM employee, department
where dno = dnumber
Get info for employees in the Research department
SELECT fname, lname, address
FROM employee, department
WHERE dno = dnumber
AND dname = 'Research'
|
|