1)How can we decide whether to choose a join or subquery is needed? I mean for what kind of queries a join is recommended and when a subquery is recommended.
2)How can we identify whether a subquery or correlated subquery is needed? I need a thumb rule.