我正在尝试结合这些查询,但没有运气。我需要能够维护结果中的所有列。我怎样才能做到这一点?
这些是我的疑问:
SELECT c.CustomerID, EmailAddress, LastName, FirstName, Line1 AS BillLine1, Line2
AS BillLine2, City AS BillCity, State AS BillState, ZipCode AS BillZip FROM
Customers c JOIN Addresses ON c.BillingAddressID = Addresses.AddressID
SELECT Line1 AS ShipLine1, Line2 AS ShipLine2, City AS ShipCity, State AS ShipState,
ZipCode AS ShipZip FROM Customers b JOIN Addresses ON b.ShippingAddressID =
Addresses.AddressID;