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
Silverlight bandwidth performance
Access 2007 Customized Ribbon button disappears in Runtime
SSRS 2008 images after text
Adding user-input date range to query in MS Access
How to create links in access tables
What is Bitlocker ion Vista and windows 2003. How different are these in both OS.
New removable HDD not detected
File Conversion window opens when I try open a Word .doc
Infopath 2007 with SharePoint Drafts
Is there a way to have excel notify you of a change made on a particular spreadsheet?