Sei sulla pagina 1di 1

Inner join:

select c.CustomerID,o.CustomerID,c.CustomerName,c.Country,o.OrderID,o.OrderDate
from Orders o inner join Customers c on o.CustomerID = c.CustomerID

Right join:
select c.CustomerID,o.CustomerID,c.CustomerName,c.Country,o.OrderID,o.OrderDate
from Orders o right outer join Customers c on o.CustomerID = c.CustomerID

Left join:
select c.CustomerID,o.CustomerID,c.CustomerName,c.Country,o.OrderID,o.OrderDate
from Orders o left outer join Customers c on o.CustomerID = c.CustomerID

Potrebbero piacerti anche