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 |
|
krish001
Yak Posting Veteran
61 Posts |
Posted - 2010-03-05 : 04:08:37
|
| I need to get last 3 months as FEB2010 JAN2010 DEC2009which query will help me |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-03-05 : 04:15:00
|
| select left(datename(month,dates),3)+datename(year,dates) as dates from(select dateadd(month,-number,getdate()) as dates from master..spt_valueswhere type='p' and number between 1 and 3) as tWhy do you need this?MadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|