SQL THOUGHTS– ISNULL FUNCTION IN SQL





ISNULL

If we want to check whether a column value is null and replace it with some value we can use this function


SYNTAX


SELECT ISNULL(COLUMN_NAME, REPLACEVALUE) FROM TABLE_NAME

SELECT ISNULL(STARTDATE, 0) FROM TABLE_NAME

HappyCoding ! ;-)

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: