Microsoft
Software
Hardware
Network
Question : Select MAX(ISNULL(variable, 0)) is returning NULL when it should be returning 0
I am trying to select a value before I do an insert.
In the table, I am trying to grab the next available ID, but, it is returning NULL. I am trying to do this:
SELECT MAX(ISNULL(fedexid, 0)) FROM fedex
Since there are no records in the FedEx table, this is returning as NULL. How do I get the above statement to return 0 if it is NULL.
Answer : Select MAX(ISNULL(variable, 0)) is returning NULL when it should be returning 0
try
SELECT ISNULL(MAX(fedexid),0) FROM fedex
Random Solutions
IAS Service Stoping with Member Not Found error.
Why does a user gets a Runtime error 70 with Permission Denied when attempting to delete the XLS files in a folder C:\SENTSPRING on his local drive ?
Laptop drops Network Card periodically
error loading lmouse.vxd reinstall windows
ASP.NET Session Resetting when New Browser Openned
Can I write a number extracting algorithm
How to load a MDI form from a Login form
How to minimize a VFP 7 application to the system tray
How do I use FirstDisplayedScrollingRow<wbr />Index on the fly?
Bar Code Scanner