Combine the Unique data

R

Ranjit kurian

Hi

I have one table (Detail) and one query (AGE), i need a query to combine the
data of Detail and Age, as shown below.

Detail table looks like below

Name TOTAL AMT
a 1
b -1
c 2

AGE query results looks like below

Name TOTAL AMT
a 1
f 3
c 2

Combine query results should look like below

Name TOTAL AMT
a 1
b -1
f 3
c 2
 
C

colin_e

This is exactly what a UNION query is for.

Try something like-

SELECT * FROM Detail
UNION
SELECT * FROM Age;

The UNION automatically removes duplicate rows.
 

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

query to identify the column headings 3
Serial Number - Temporarily In A Query 7
Select and combine duplicates 5
Query help 3
Transfer Text 9
Query for comparison of totals 11
Update Query ? 1
Transposing data 2

Top