I have only tried to replace NOT IN operator with NOT EXISTS in the following code. However, it is giving me an "Invalid Relational Operator error".
How can I correct this error? Am I missing something important? Please help.
SELECT DISTINCT 'v1',
'v2',
f.apples,
f.bananas,
f.oranges
FROM fruits f
WHERE f.code = 'F1'
AND f.buyer_fruit_code
NOT EXISTS
(SELECT c.color_code
FROM colors c);