P
PPCO
I have a simple Union Query, but it returns duplicates from my 2 tables. I am
using just the Union Select not Union All Select. Is there an easy way to
prevent the duplicates?
SQL:
Select Customerreffullname as customer, RequestDate as
RequestDateorNumberofDayssincelastpickup, RequestType
from qrypickuprequestMMCO
UNION select Customer, Dayssincelastpickup as
RequestDateorNumberofDayssincelastpickup, RequestType
from qryMutualInvoiceOrderLineLastPickupPastDeadline;
using just the Union Select not Union All Select. Is there an easy way to
prevent the duplicates?
SQL:
Select Customerreffullname as customer, RequestDate as
RequestDateorNumberofDayssincelastpickup, RequestType
from qrypickuprequestMMCO
UNION select Customer, Dayssincelastpickup as
RequestDateorNumberofDayssincelastpickup, RequestType
from qryMutualInvoiceOrderLineLastPickupPastDeadline;