title: Finding Max and Min Times
body: <p>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:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I need the output like this:</p>
  
  <pre><code>1         Shanks      30/1/2009   10:11:22    13:15:22
  </code></pre>
  
  <p>My table structure is:</p>
  
  <pre><code>UserID integer, 
  UserName varchar(20), 
  [Date] datetime, 
  [Time] datetime
  </code></pre>
  
  <p>How can I get that output from my data?</p>