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.
Author |
Topic |
allanurban
Starting Member
21 Posts |
Posted - 2015-03-26 : 08:46:01
|
I have the following table:
Item Date A 2015-01-02 A 2015-03-01 A 2015-02-17 B 2015-01-07 B 2015-03-20 C 2015-01-02 C 2015-03-17 C 2015-01-14 C 2015-02-02 D 2015-03-25 E 2015-02-09 E 2015-02-09
Is it possible to get a list with only one of each item and then the latest date possible?
|
|
mhorseman
Starting Member
44 Posts |
Posted - 2015-03-26 : 09:24:13
|
Do you mean:
Select item,max(date) from yourtable group by item
?
Mark |
 |
|
allanurban
Starting Member
21 Posts |
Posted - 2015-03-26 : 09:26:08
|
Exactly. That was too easy almost!
Thank you very much! |
 |
|
|
|
|