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
MD5 Hash
Exchange 2007 Storage Groups
Out of memory or system resources. Close some windows or programs and try again.
Limit the number of items in a ASP.Net drop down list
Access VB and PCAnywhere 10.5 OLE File Transfer Automation
2003 server c drive and windows showing different used area quantity
Access 2007 - AfterUpdate not working
Multiple Monitors
ComboBox background color still leaves a white border
How to update the database using a datagrid event