Union Query, duplicates

M

Mark Baker

I have used a union query to bring together 2 select queries, however I would
like to delete duplicates on the basis of 1 field only. Is there a way of
specifying the criteria for dealing with duplicates? I would also need to
tell it which query gets priority.
 
W

Wolfgang Kais

Hello Mark.

Mark said:
I have used a union query to bring together 2 select queries,
however I would like to delete duplicates on the basis of 1 field
only. Is there a way of specifying the criteria for dealing with
duplicates? I would also need to tell it which query gets priority.

Union queries do not support this.
But you can make it a union all query, add a field for the priority
and use this query as the source for a query that does the filtering.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Duplicates in union query 3
Union Query to list duplicates 2
merging 2 queries 3
Union query 5
union query of complex queries 1
SUM in a UNION query 2
Union Query 4
Duplicates 4

Top