Skip to content
Advertisement

Check if values in one column are not unique based on values in other column

DB-Fiddle

Expected Result


In the above table I have different campaigns, their process_status and delivery_type.
Now, I want to extract all campaigns which switch their delivery_type between different process_status.

Therefore, I am looking for a query that does something like this:

I have no clue how the WHERE condition must look to achieve the expected result.
Do you have any idea?

Advertisement

Answer

You can try the below query.

Check Demo Here

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