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.
| Author |
Topic |
|
cplusplus
Aged Yak Warrior
567 Posts |
Posted - 2010-05-18 : 14:36:49
|
| How to write an if statement using the following select?select TOP 1 DocumentID from TAB_ccsNetDMRevision where RevID=@revIDbased on result:if null or zero then SET @IsRevDOC = 0;Else SET @IsRevDOC = 1; Thank you very much for the helpful info. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|