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
Exchange 2007 SRV upgrade/migration to anthoer Exchange 2010 SRV gone wrong, what would you suggest guys
To know 31st working date from the date entered
Email recipients in BCC field can see eachother
Outlook 2007 opens with choose profile
Access 2003: Getting data to show up in columns instead of rows in a report
Form goes corrupt after changes.
How Can I Change Account Locked Out message
Fox 9 Microsoft Visual Fox Pro Support Library Error
Mouse Keeps Scrolling Up
How can I completely re-install USB whilst in recovery console?