You are here: Searching for Last DateTime « MsSQL Server « IT news, forums, messages
Searching for Last DateTime

Posted by patelk23 on 12/08/06 09:53

Hi everyone,
I am really struggling to do the following in sql. Your expertise will
be very welcome.

I have a table [TestData] below


IndexId IndexVersion LastAmendedWhen
---------- --------------- -------------------
29 1 06/10/2006 17:40:43
29 2 06/10/2006 17:41:29
29 3 09/10/2006 12:19:33
29 4 09/10/2006 12:20:03
29 5 10/10/2006 10:53:32

I want to pick out rows with the lastAmendedWhen for each dates. So my
output should look like
IndexId IndexVersion LastAmendedWhen
---------- --------------- -------------------
29 2 06/10/2006 17:41:29
29 4 09/10/2006 12:20:03
29 5 10/10/2006 10:53:32

Please can someone help. I am really struggling with this.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация