How would I do something like this in a T-SQL statement?
I have only done a little SQL and it was in Access.
I want to update a column in a temporary table called BegBalance to AmountSent if PreviousCollected is Null otherwise calcualte it as [Amount_Sent]-[PreviousCollected]-[PreviousAdjusted]
In Access I did it like this
BegBalance: IIf(IsNull([PreviousCollected]),[Amount_Sent],[Amount_Sent]-[PreviousCollected]-[PreviousAdjusted])
thanks,
vmon
I have only done a little SQL and it was in Access.
I want to update a column in a temporary table called BegBalance to AmountSent if PreviousCollected is Null otherwise calcualte it as [Amount_Sent]-[PreviousCollected]-[PreviousAdjusted]
In Access I did it like this
BegBalance: IIf(IsNull([PreviousCollected]),[Amount_Sent],[Amount_Sent]-[PreviousCollected]-[PreviousAdjusted])
thanks,
vmon