
5-2 강의 중에, 이런 경우에는 그냥 left join말고 inner join으로 하면 굳이 where절 사용해서 데이터 제외 안해도 되지 않을까요?
join 후 값이 없는 null의 경우 →where 사용하여 데이터에서 제외
select f.order_id,
f.customer_id,
f.restaurant_name,
f.price,
c.age,
c.gender
from food_orders as f left join customers as c on f.customer_id=c.customer_id
where c.customer_id is not null
