Wednesday 9 October 2013

14. Create a view to retrieve the employee IDs along with the corresponding Group Name.

create View Disp_Detail
as
select E.EmployeeID,D.GroupName
from HumanResources.Department d
Inner join
HumanResources.EmployeePayHistory E
on D.DepartmentID=E.EmployeeID

No comments:

Post a Comment