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 |
|
qutesanju
Posting Yak Master
193 Posts |
Posted - 2009-09-15 : 06:39:59
|
| select (>= (DateAdd('Month', 1, (DateAdd('yy', -1, getdate()) - Day(DateAdd('yy', -1, getdate())) + 2)) - 1) AND <= getdate())can anybody explains meaning of this expression |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-09-15 : 06:50:53
|
| See what this returnsselect DateAdd(Month, 1, (DateAdd(year, -1, getdate()) - Day(DateAdd(year, -1, getdate())) + 2)) - 1,getdate()MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|