Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : COALESCESearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 COALESCE 
 Author   Message 
  Vlad 
  
 Group: Members 
 Posts: 32 
 Joined: 2007-09-25 
 Profile
 Posted : 2007-11-14 05:16:47

Is COALESCE supported by QODBC?

When I try to select something that may contain NULL and would like to have an empty string instead of NULL I get an error.

If COALESCE is not supported then what can I use to return an empty strings instead of NULLs?

Thank you

Vlad

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-11-14 09:49:27

Sorry COALESCE is not supported. But you can use IFNULL:

Select Name, {fn IFNULL(Fax, '   ')} as Fax from Employee where Fax is Null

to change a null value of a column to another string.

Select Name, {fn IFNULL(CustomFieldSpousesName, ' Not Married')} as Spouse from Employee

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to