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 DateA 2015-01-02A 2015-03-01A 2015-02-17B 2015-01-07B 2015-03-20C 2015-01-02C 2015-03-17C 2015-01-14C 2015-02-02D 2015-03-25E 2015-02-09E 2015-02-09Is 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! |
|
|
|
|
|