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
Telerik Reporting, Report Viewer
Set warnings off/on in Access 2002
SQL 2005
lost SSIS packages
How do I have Word query Access
Access 2003 spell checker msg.
#Name? Error Access Unbound Text Boxes
Sql Join query - joining on multiple tables
Outlook 200x Problems Connecting to Exchange Server 2007
MS Sql server mngmgt studio express, get permission errors left and right :(