USE Study
GO

SELECT * FROM EMPTEST

DELETE EMPTEST
WHERE DNO = (SELECT DNO FROM DEPARTMENT WHERE DNAME = 'Accounting')

SELECT * FROM EMPTEST