Solved

Informix SQL "is null" syntax

Posted on 2010-08-24
3
2,095 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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…

713 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