Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Hi All,How to get the currentmonth-1. I have Month in int format 201108, 201109 in table. But when the user selects 201108, it should pickup 201107.Please help me to do this. Thank you all
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts
Posted - 2012-11-02 : 08:35:22
What format is your underlying data? If it is a date then you can do something like this: