USE Northwind
GO
SELECT Orders.OrderID, Shippers.*
FROM Shippers
JOIN
Orders
ON (Shippers.ShipperID = Orders.ShipVia)
ORDER BY Orders.OrderID
GO
OrderID ShipperID CompanyName Phone
------ --------- ---------- ----------
10248 3 Federal Shipping 503) 555-9931
10249 1 Speedy Express (503) 555-9831
11076 2 United Package (503) 555-3199
11077 2 United Package (503) 555-3199
(830 row(s) affected) |