Desiging Matrix Report using SQL Server XML, XSLT and JAVA Code
In the above matrix report image is grouped week by employee vs employee by week.
Part 1 - SQL CODE
In the above matrix report image is grouped week by employee vs employee by week.
Part 1 - SQL CODE
DECLARE @depart_id int
DECLARE @startdate datetime
DECLARE @enddate DATETIME
SET @depart_id = 314
SET @startdate = '01/01/2001'
SET @enddate = '02/28/2001'
DECLARE @e_id int
DECLARE @ename varchar(100)
Creating temporary tableDECLARE @startdate datetime
DECLARE @enddate DATETIME
SET @depart_id = 314
SET @startdate = '01/01/2001'
SET @enddate = '02/28/2001'
DECLARE @e_id int
DECLARE @ename varchar(100)