Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Informix SQL "is null" syntax

Posted on 2010-08-24
3
Medium Priority
?
2,229 Views
Last Modified: 2013-12-24
I have a table column that contains blank values and null values I want it to only display blank values

I am used to SQL syntax not informix I believe the below would work in SQL how can it work in informix?

select column1, column2, IS NULL(column3, "") as 'column3 no nulls'
from table1
0
Comment
Question by:JCTDD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 2000 total points
ID: 33517884
select column1, column2, NVL(column3, "") as 'column3 no nulls'
from table1
0
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 33517885
The Ansi SQL92 standard is to use COALESCE, but not sure which version of Informix you are using or whether that version supports COALESCE.
0
 

Expert Comment

by:kunal_p_singh
ID: 33517888
select column1, column2, NVL(column3, "") as 'column3 no nulls'
from table1
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
What we learned in Webroot's webinar on multi-vector protection.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question