Join vs Subquery

Join vs Subquery

JOINSubquery
JOIN is combining rows from two or more tables based on related columnsA subquery is a SELECT query that is nested within another DML statement
Generally, joins are highly optimizedGenerally, correlated subquery is slow