• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Union query with identical queries

Just as a curiosity, can you tell me why if I Union two identical MS Access Queries I don't get double the same results? Is there a particular reason why the union only works for combining queries that are different?
0
joeserrone
Asked:
joeserrone
  • 2
1 Solution
 
Rey Obrero (Capricorn1)Commented:
using Union All will give you duplicates
using Union  , no duplicates
0
 
Rey Obrero (Capricorn1)Commented:
select f1,f2 from A
Union All
select f1,f2 from A

will give you duplicate values


select f1,f2 from A
Union
select f1,f2 from A

no duplicate values
0
 
joeserroneAuthor Commented:
Thanks, I completely forgot about Union All
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now