Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Replace the NULL Values

Author  Topic 

kalaivani
Starting Member

11 Posts

Posted - 2007-12-18 : 02:49:47
Thank u Chirag....

but i should display all the records of that table not only price column.

consider the column price in titles table in pubs database. If the price of any record is not defined it should be retrieved as -9999.

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-12-18 : 02:52:37
[code]Select IsNull(col, -9999) as Price
...
from ...[/code]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2007-12-18 : 02:59:13
please do not cross post..

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=94384


Chirag

http://www.chirikworld.com
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-18 : 03:00:48
quote:
Originally posted by kalaivani

Thank u Chirag....

but i should display all the records of that table not only price column.

consider the column price in titles table in pubs database. If the price of any record is not defined it should be retrieved as -9999.



Dont open a new thread. Continue with the topic where you already questioned

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-18 : 03:01:27


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -