QuestionAsker
MIS
SQL Server 2005
Hi All,
Being a bit blonde here, but i have a problem I hope you can help me with.
I have a stored procedure that has a Date parameter that is fed in. For a calculation I want to use this date like this
Tran_date <= day(01) & datepart(month,@date)-1 & datepart(year,@date)
i.e find all transactions before the first of the previous parameter month, is there an easier way to do this.
Thanks in advance
Hi All,
Being a bit blonde here, but i have a problem I hope you can help me with.
I have a stored procedure that has a Date parameter that is fed in. For a calculation I want to use this date like this
Tran_date <= day(01) & datepart(month,@date)-1 & datepart(year,@date)
i.e find all transactions before the first of the previous parameter month, is there an easier way to do this.
Thanks in advance