Skip to content
Advertisement

How to select multiple rows of the same user that satisfies some condition in SQL?

A have the following data

I want to select all users who have visited both Spain and France. How can I do that in MySQL?

Advertisement

Answer

Something like the following should suffice:

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