Tuesday, October 1, 2013

Need SQL script to get the 6 months data month wise

Is this what you are looking for?



select * from table where date of transaction > dateadd (MONTH, -6, GETDATE())


No comments:

Post a Comment