I was trying something with the queries and come across a situation where I want to get an equivalent JOIN queries for the following queries without using OR .