OK right now I have the following sql statementSELECT firstname, lastname, ReportLog.ID, ReportLog.Menu, COUNT(ReportLog.Report) AS Hits, MAX(ReportLog.Logtime) AS Lasttime FROM ReportLog, Users WHERE Users.ID = ReportLog.ID AND Users.PESVOnly = 0 AND RIGHT(RTRIM(ReportLog.ID),5) = '00000' GROUP BY ReportLog.ID, ReportLog.Menu, firstname, lastname ORDER BY ReportLog.ID, ReportLog.Menu
this nets the results belowfirstname lastname id Menu Hits Lasttime-------------------- -------------------- ------------------------------ --------------- ----------- -----------------------Amy Birt ABirt00000 SecHits1 16 2008-04-04 11:43:21.000Amy Birt ABirt00000 SecHits2 1 2008-04-04 10:40:22.000Amy Birt ABirt00000 SecHits3 17 2008-04-04 11:43:50.000What I want is the ability to have one record that displays the Firstname, lastname, ID, SecHits1, SecHits1Date, SecHits2, SecHits2Date, SecHits3, SecHits3Date. Any ideas on how I can achieve this through a SQL Statement?Thanks,Josh