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 |
|
gavakie
Posting Yak Master
221 Posts |
Posted - 2010-03-18 : 17:01:26
|
| So I have a table that will get updated once a month, I need to make sure that I am always choosing the results with the max(date) how would i write that? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-03-19 : 11:42:31
|
| I think what OP is looking at is to select the most recent data which got updated recently, so you might have to replace UPDATE with SELECT in Tara's suggestion------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
gavakie
Posting Yak Master
221 Posts |
Posted - 2010-03-19 : 12:18:13
|
| visakh16, Yes Thank you. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-03-19 : 12:20:00
|
welcome ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|