Quantcast
Channel: Column is null from SP
Browsing latest articles
Browse All 5 View Live

Column is null from SP

@kt3734 wrote: Hi, I have the query and only do something when one of the column is not null, see the syntax below. Can anyone help please ? Thanks BEGIN IF Exists (select top 1 corp,price,custname...

View Article


Column is null from SP

@gbritton wrote: Here's one way: DECLARE @message VARCHAR(20) CREATE TABLE mytbl ( corp INT , price MONEY , custname VARCHAR(200) , newprice MONEY ); INSERT INTO mytbl VALUES --( 1, 42.0,...

View Article


Column is null from SP

@kt3734 wrote: thank you Read full topic

View Article

Image may be NSFW.
Clik here to view.

Column is null from SP

@harishgg1 wrote: hi i have found another way of doing this please correct me if i am wrong thanks SELECT * FROM mytbl; SELECT abc= CASE WHEN ( newprice <> 0 AND custname IS NOT NULL ) THEN...

View Article

Column is null from SP

@gbritton wrote: It's different. With your solution you will bet Message2 for every row that does not match the criteria. If that's what you want, go for it! Read full topic

View Article

Browsing latest articles
Browse All 5 View Live