adspace


What is isnull() operator?

Answer Posted / Tarakeshwar Kumar Puri

The ISNULL function in SQL Server returns a specified value if an expression is null, otherwise it returns the original expression. Here is an example: SELECT ISNULL(ColumnA, 'DefaultValue') FROM YourTableName;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1303


What is temporary table in sql server? Why we use temp table?

1027


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1221


How can I check that whether automatic statistic update is enabled or not?

1120


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1208


What is normalization and what are the advantages of it?

1065


When should you use an instead of trigger?

1060


What are the different types of subquery?

1239


What is self contained sub query?

1147


How can you append an identity column to a temporary table?

1074


what is spatial nonclustered index

1066


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2300


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1029


Why and when do stored procedure recompile?

1074


What are the properties of the transaction?

1078