Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Select latest(dateAdded)

Author  Topic 

krishna_yess
Yak Posting Veteran

81 Posts

Posted - 2009-04-15 : 06:38:16
Hi all,

can any one please tell me how to write a query to list all distinct rows with max(DateAdded).

in other words

list all PRODUCT, if there are duplicate product names select the one which is added recently

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-04-15 : 06:45:52
See http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-04-15 : 06:56:59
Like in the other topic?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=123848



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

krishna_yess
Yak Posting Veteran

81 Posts

Posted - 2009-04-15 : 07:04:30
yes..

it worked thanks a lot
Go to Top of Page
   

- Advertisement -