neronikita
Technical User
Hi, all. I'm not sure I even know what to ask, so here is my situation:
I have data in a database that is for unscheduled PT. I have a sql query that will pull all of that information in Query Analyzer. However, they want it all summarized with one line for each person. So... if I have
Name Hours Date
Jane Smith 5 3/1
Jane Smith 7 3/3
Jane Smith 8 3/6
Jane Smith 2 3/9
Total 22
They want to see it this way
Jane Smith 22 3/1, 3/3, 3/6, 3/9
Does anyone know how to do this in ASP? I was originally trying to do it in Crystal and gave up on that. Here is the SQL query I am using:
SELECT TOR.exceptstarttime, TOR.timeawayval,EMP.f_name, EMP.l_name, EMP.nick_name, MGR.f_name, MGR.l_name FROM Workforce.dbo.tbl_timeoffrequest TOR inner join Workforce.dbo.tbl_employee EMP on TOR.fk_agent = EMP.pk_agent inner join Workforce.dbo.tbl_employee MGR on EMP.manageremplid = MGR.pk_agent WHERE TOR.fk_schedactivity = 23 and TOR.exceptstarttime >= '06/01/2006' and TOR.exceptstarttime < '2/21/2007' and TOR.approvestatus = 1
Thanks for any suggestions/guidance/encouragement anyone has on this....
-D-
I have data in a database that is for unscheduled PT. I have a sql query that will pull all of that information in Query Analyzer. However, they want it all summarized with one line for each person. So... if I have
Name Hours Date
Jane Smith 5 3/1
Jane Smith 7 3/3
Jane Smith 8 3/6
Jane Smith 2 3/9
Total 22
They want to see it this way
Jane Smith 22 3/1, 3/3, 3/6, 3/9
Does anyone know how to do this in ASP? I was originally trying to do it in Crystal and gave up on that. Here is the SQL query I am using:
SELECT TOR.exceptstarttime, TOR.timeawayval,EMP.f_name, EMP.l_name, EMP.nick_name, MGR.f_name, MGR.l_name FROM Workforce.dbo.tbl_timeoffrequest TOR inner join Workforce.dbo.tbl_employee EMP on TOR.fk_agent = EMP.pk_agent inner join Workforce.dbo.tbl_employee MGR on EMP.manageremplid = MGR.pk_agent WHERE TOR.fk_schedactivity = 23 and TOR.exceptstarttime >= '06/01/2006' and TOR.exceptstarttime < '2/21/2007' and TOR.approvestatus = 1
Thanks for any suggestions/guidance/encouragement anyone has on this....
-D-