Difference Between Joins and Sub-Query
Difference Between Joins and Sub-Query
sub-query
• Joins and subqueries are both be used to query
data from different tables and may even share
the same query plan, but there are many
differences between them
• A common use for a subquery may be to
calculate a summary value for use in a
query. For instance we can use a subquery to
help us obtain all products have a greater than
average product price
• Sub query can give result as singular value or as
row set but join can only give rows