I'm trying to combine these queries but having no luck. I need to be able to maintain all columns in the result. How can I do this?
These are my queries:
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;