Skip to main content

Outer - Right Join

Select all from Table B, along with records from Table A for which the join condition is met (if at all).

SELECT *
FROM order
RIGHT OUTER JOIN product
USING (P_Code);

มีข้อมูล product ครบ บรรทัดที่ไม่มี order ที่ถูก ก็จะเขียน NULL