Aiyaz writes "Hi,Im trying to do a query on a table which returns the results in a report format.SQL Query: select timeentrydatetime, userid, comments,hoursfrom dbo.submittedtimeentriesI want the results to have a group by "timeentrydatetime" and print the timeentrydatetime field as a subheading. for each sub heading I want to total the hours.Something similar to this:Description Hours Tasks BillableFriday, 31 March 2006 O4B, Web & Integration 1.6 Admin,meetings Non-BillableO4B, Web & Integration 1.6 Admin,meetings Non-BillableO4B, Web & Integration 1.6 Admin,meetings Non-BillableTotal: 4.9 Sunday, 2 April 2006 Presales BONZ Zespri 10 Basis BillableO4B, Web & Integration 5 Admin,meetings Non-BillableProduction Support GENERIC 1 Design&planning BillableTotal: 25
Ive tried several examples but failed to get the results I wanted. Can you please please help.ThanksAiyaz"