Skip to content
Advertisement

How to fetch related source and destination Flights from table

Hi My table consists of:

I am trying to fetch if my source either contains boston or seattle and if either my destination contains boston or seattle. so result should look like this:

My query does not work:

Advertisement

Answer

As @jarlh said in a comment, use AND instead of OR:

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