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
report server
List Box with multi columns
Error 2869 when installing windows service on Vista Home
Open Outlook Form from Access
File Copying through CopyFileEx of kernel32.dll in vb.net
DCPROMO fails when existing DC's are on different subnet / segment
Query over multiple fields
Using ADO in VBA for Query with multiple parameters
Microsoft Access Module - Append table to another
What is the best decompiler?