I want to display max time and min time for a day in grid control using Visual Basic from a SQL Server database. My data currently looks like this:
UserID UserName Date Time
------------------------------------------
1 Shanks 30/1/2009 10:11:22
1 Shanks 30/1/2009 10:15:22
1 Shanks 30/1/2009 12:15:22
1 Shanks 30/1/2009 13:15:22
I need the output like this:
1 Shanks 30/1/2009 10:11:22 13:15:22
My table structure is:
UserID integer,
UserName varchar(20),
[Date] datetime,
[Time] datetime
How can I get that output from my data?