with Groupedsalary(DepartmentId , totalEmp) as ( select DepartmentId , SUM(salary) as Tsalary from tblEmployee group by DepartmentId )
lang="sql">with Groupedsalary(DepartmentId , totalEmp) as ( select DepartmentId , SUM(salary) as Tsalary from tblEmployee group by DepartmentId ) select * from Groupedsalary
; with Groupedsalary as ( select DepartmentId , SUM(salary) as Tsalary from tblEmployee group by DepartmentId ) select * from Groupedsalary
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)