Join vs Sub-query

There’s has been lot of questions related to performance when it comes to sub-query or joins. Which one is better and when to use which, it always create mass confusion to developer. Today, lets check which is better performance wise and how to use it. Here are the queries: 1 2 3 Query 1: SELECT…