Solved

Informix SQL "is null" syntax

Posted on 2010-08-24
3
2,009 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
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now