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 |
|
cray
Starting Member
9 Posts |
Posted - 2005-11-10 : 17:07:57
|
| Date Location1/1/05 ABC3/2/04 DEF12/9/97 GHIHow do I get a query to just pull the location for the most recent date? I ONLY need the one location field. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2005-11-10 : 17:12:40
|
| SELECT LocationFROM Table1WHERE [Date] = (SELECT MAX([Date]) FROM Table1)Tara Kizeraka tduggan |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-11-11 : 00:14:24
|
| orSELECT Top 1 LocationFROM yourTable order by [Date] descMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|