Make one list from 2 unique quiries

G

Guest

I have 2 columns that I want to return a single list of unique values.

I'm using the query in a combobox of a form.

example

Table 1
Column 1
apple
pear
peach

Table 1
Column 2
apple
grapes
orange
pear

I want to return one list that would be...
apple
grapes
pear
peach
orange

thank you in advance for any input....
 
J

JohnFol

Select Column1 as Fruit from table 1
union
Select Column2 as Fruit from table 1


(might have to try a Union ALL and look at select distinct, btu this shoudl
work)
 

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

Top