Hi there, I have a series of statements that I'm placing the value of a select statement into a variable and then running an update statement. I'm having some problems with the Warning of null value... why would this statement cause me to get this warning:
Set @Amount = (Select isnull(sum(Revenue),0) from ShippingData where ShipMonth = 5 and ShipYear = 2008)
If I just run the select statement by itself... it gives me the sum of the revenue... how is a null playing a factor in this statement?
Start Free Trial