Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

WHERE statement

Hi there, I've got a shameful problem with some SQL.

In my script, I load my DB, but I've figured out that there was some records in February 30th, so I want to remove them from the base in qlikview without delete them in the real DB.

So when I load the concerned table, I do :

table_calendrier:

SQL SELECT *

FROM `004 le calendrier`

WHERE ((NUM_MOIS<>2) AND (NUM_JOUR<>30));

The thing is that the WHERE doesn't work, it deletes all the data in february, not the 30th. Am I simply wrong vith my statement or there is a problem with my syntax ?

Thanks !

1 Solution

Accepted Solutions
dvasseur
Partner - Creator III
Partner - Creator III

Hi!

Maybe this:

SQL SELECT *

FROM `004 le calendrier`

WHERE NOT ((NUM_MOIS=2) AND (NUM_JOUR=30));

View solution in original post

4 Replies
dvasseur
Partner - Creator III
Partner - Creator III

Hi!

Maybe this:

SQL SELECT *

FROM `004 le calendrier`

WHERE NOT ((NUM_MOIS=2) AND (NUM_JOUR=30));

Not applicable
Author

try this

table_calendrier:

load *

WHERE NUM_MOIS<>2 AND  NUM_JOUR<>30;

SQL SELECT *

FROM `004 le calendrier`;

MayilVahanan

Hi

Try like this

Load * WHERE NOT NUM_MOIS&'_'&NUM_JOUR = 2_30;

SQL SELECT *

FROM `004 le calendrier`;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks everyone, I think I'm just an idiot for not thinking of that solution.