thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Foundational

RIGHT OUTER JOIN

A join that returns every row from the right table plus matching rows from the left, with NULLs where no match exists.

Definition

RIGHT JOIN mirrors LEFT JOIN; any right join can be rewritten as a left join by swapping table order, which most style guides prefer for readability.

Example

SELECT o.OrderID, c.Name FROM Customers c RIGHT JOIN Orders o ON c.CustomerID = o.CustomerID;

Exam tip

A RIGHT JOIN B returns the same rows as B LEFT JOIN A.

Related terms