on 09-20-2013 3:56 PM
Tried to use 'NOT IN' operator in query transformation where condition . Throwed a syntax error. Then figured out from the manual that we can't actually use NOT IN operator but functionality of IN is available. Not sure about the challenges in using NOT IN. any idea?
Hi Srinivas,
Please try using NOT (Field IN (value1,value2)) in where.
Let me know if it helped.
Thanks,
Ancy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How is it in the case of using not in with a column instead of fixed values.
NOT ORDER.CITY_ID IN (STOCK.CITY_ID)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked for me Ancy. I did create three records in a table and used the following in where condition
TESTFORTO_CHAR_SRC.DATEYY in ('31-Sep-99', '31-Oct-96') - this returned me 2 records - expected.
For the same condition I just modified the condition as you said above
not (TESTFORTO_CHAR_SRC.DATEYY in ('31-Sep-99', '31-Oct-96')) - this returned me third record which is not in IN list.
Will try it on my actual requirement and verify if it is intended to give the expected results. Thank for the help!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.