Pivot query in sql server 10:11:00 PM byZafar Ali Khan Post a Comment Steps Create the required tables Employees and department as given in script create the as string and run it using Exec( ) function Required Output create table Department ( DepartmentID int primary key identity , DepartmentName varchar … Read more