Skip to content
Advertisement

How to Inverse Where Clause in mysql Query?

I’m querying my MySQL “consumer_details” table where the age is > 30 and purchase_count > 100, by the same time I need to exclude the people who age is equal ( = ) 50 and purchase_count < 100

I’m running the following query right now :

Base Query :

Extended Query :

Advertisement

Answer

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement