Harlequink
IS-IT--Management
I have two tables, SalesLog and ReturnAuthorization. I used this union query to join them
This Union query works fin but now I need to Add the Notes collum in the Sales log table to this query without changing the Union. How do I Get the notes in only the rows the query chooses??
Thank you
Code:
SELECT ALL KIOrder,RANumber, CustID,Items,ScheduledDate,TotalCost
FROM SalesLog
WHERE DateShipped = null
ORDER BY ScheduledDate ASC, KIOrder ASC , CustID ASC
UNION SELECT ALL KIOrder,RANumber, CustID,Items,ScheduledReturn as ScheduledDate,TotalCost
FROM ReturnAuthorization
WHERE DateReturnes = null
ORDER BY ScheduledDate, KIOrder, CustID;
Thank you