Max (SQL-Server)

Posted by rah.deex on Stack Overflow See other posts from Stack Overflow or by rah.deex
Published on 2010-05-17T06:12:16Z Indexed on 2010/05/17 6:20 UTC
Read the original article Hit count: 269

Filed under:
|

Hello everyone.

I have a table that looks like this:

BARCODE      | PRICE  | STARTDATE
007023819815 | 159000 | 2008-11-17 00:00:00.000
007023819815 | 319000 | 2009-02-01 00:00:00.000

How can I select so I can get the result like this:

BARCODE      | PRICE  | STARTDATE
007023819815 | 319000 | 2009-02-01 00:00:00.000

select by using max date.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sql