Difference between FALSE and UNKNOWN  Expressions that evaluate to NULL

Chapter 2: Queries: Selecting Data from a Table

Substituting a value for NULLs

Use the isnull built-in function to substitute a particular value for nulls. The substitution is made only for display purposes; actual column values are not affected. The syntax is:

isnull(expression, value) 

For example, use the following statement to select all the rows from titles, and display all the null values in column notes with the value unknown.

select isnull(notes, "unknown") 
from titles




Copyright © 2005. Sybase Inc. All rights reserved. Expressions that evaluate to NULL

View this book as PDF