Earlier quoted context omitted.
There's no reason ever to use a right join. I consider those to be a code smell.
There's about as much reason to use a right join as there is to use a left join.
select
sp.Name,
sum(s.Amount) as TotalSales
from
SalesPerson sp
left join Sales s on
sp.SalesPersonKey = s.SalesPersonKey
group by
sp.Name
order by
TotalSales desc
If you did a correlated subquery, it would take a ton of time to complete (`select sum(Amount) from Sales s where s.SalesPersonKey = sp.SalesPersonKey`), especially on large tables.Left joins (and full outer joins) are plenty useful and I use them almost daily. Care to explain what you mean?