Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
How can I interptrete below from Qlikview to SQL
MATCH([Order No], '1','2','7','15','16','21') = 0
Try below
SELECT *
FROM Source
WHERE [Order No] NOT in(1,2,7,15,16,21);
Regards
ASHFAQ
Match NOT IN ('1','2','7','15','16','21')
I would like to write this on SQL, thanks Jonathan
Use Like function for this.
Try like
SELECT *
FROM Source
WHERE [Order No] NOT Like '1' OR '2' OR '7' OR '15' OR '16' OR '21' ;
Another way try
SELECT *
FROM Source
WHERE [Order No] NOT IN ( '1' ,'2', '7', '15' ,'16', '21');
Try below
SELECT *
FROM Source
WHERE [Order No] NOT in(1,2,7,15,16,21);
Regards
ASHFAQ
One of the another way is
SELECT *
FROM Source
WHERE [Order No] NOT Like IN ( '1' OR '2' OR '7' OR '15' OR '16' OR '21' );
Or
SELECT *
FROM Source
WHERE [Order No] NOT Like IN ( 1 OR 2 OR 7 OR 15 OR 16 OR 21 );
Or
SELECT *
FROM Source
WHERE [Order No] NOT Like IN ( 1 , 2 , 7 , 15 , 16 , 21 );