Urgenthomework logo
UrgentHomeWork
Live chat

Loading..

RIGHT JOIN Homework Help

This query will return all of the records in the right table (tableY) regardless if any of those records have a match in the left table (table X). It will also return any matching records from the left table.

RIGHT JOIN Homework Help          SQL Homework Help


right join

SELECT "select_list"
FROM TableX X
RIGHT JOIN TableY Y
ON X.Key = Y.Key

EXAMPLE OF RIGHT JOIN:

SELECT X.PK, X.Value,
Y.Value, Y.PK
FROM TableX X
RIGHT JOIN TableY Y
ON X.PK = Y.PK

Output of right join

Sql Right Join Homework Help

Different type of SQL JOIN

The types of JOIN you can use and the differences between them,

Copyright © 2009-2023 UrgentHomework.com, All right reserved.