luvmy2kids
MIS
I have the below statements:
SET @QtrClose = getdate()
SELECT @QtrClose = CloseDT from prtaxperiodclose where TaxPeriodID = @Qtr and TaxPeriodYear = @Year
What I need to accomplish by combining the 2 is:
When CloseDT is null set it = getdate(), otherwise -
SELECT @QtrClose = CloseDT from prtaxperiodclose where TaxPeriodID = @Qtr and TaxPeriodYear = @Year
How can I combine the 2 to make it work. The issue I am having is when the closedt hasn't been entered it is not pulling back any data.
SET @QtrClose = getdate()
SELECT @QtrClose = CloseDT from prtaxperiodclose where TaxPeriodID = @Qtr and TaxPeriodYear = @Year
What I need to accomplish by combining the 2 is:
When CloseDT is null set it = getdate(), otherwise -
SELECT @QtrClose = CloseDT from prtaxperiodclose where TaxPeriodID = @Qtr and TaxPeriodYear = @Year
How can I combine the 2 to make it work. The issue I am having is when the closedt hasn't been entered it is not pulling back any data.