Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Expert,

I have to introduce another condition to the select statement below


which is a stored procedure in SQL SERVER 2008

Please assist


The issue is that the field REPAY_MODE =['SIMPLE'] OR REPAY_MODE = ['REDUCING']

How do I state that if REPAY_MODE <>['SIMPLE'] OR REPAY_MODE <> ['REDUCING'] to be part of the Select Statement below.



IF NOT EXISTS(SELECT * FROM LOANS WHERE ISNULL(ADVLOAN, 0) = 0 OR ISNULL(REPAYPD, 0) = 0 OR ISNULL(NUMDAYS,0)= 0)
BEGIN


Please assist


Thanks
Posted
Comments
Tomas Takac 6-Sep-15 16:58pm    
I don't get what's the problem here. What you mean by "to be part of the Select Statement"? Sounds like you wanna use AND operator.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900