Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with an update statement

Status
Not open for further replies.

cal555

Programmer
Joined
May 5, 2006
Messages
71
Location
US
Hi,
I have writen this proceedure to update a field to N where it is Null. If the field has an N in it I would want it to leve it an dgo to the next record and so on. Hw en I run the procedure below it first sets this field to NULL for all the records and if I run it again it sets it to N. What am I doing worng that it just does not look at the field puts an N in it only if it is Null?


CREATE PROCEDURE [Set_Prom]
AS

UPDATE Da_Resp
SET [ProcStat] =
CASE [ProcStat]
WHEN NULL THEN 'N'
End
FROM Da_Resp

Any ideas would really be appreciated.
Thank You
 
Thanks that worked great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top