I have two tables(ONE & TWO) with the same fields.
You probably ask why two tables just alike, well I am importing them both from other departments to do some comparisons on.
For simplicity, lets say there are two fields
Name and Salary.
I am trying to use a union query to show each name once, with Salary total. I can't get the salaries to add, or the name to show up only once. Below is the statement I am trying but I can't figure what to put in WHERE line. Am I close to being on the right track? Is union query what I should be using?
Thanks for helping out.
SELECT [NAME],[SALARY]
FROM [ONE]
WHERE ???
UNION SELECT [NAME],[SALARY]
FROM [TWO]
WHERE ???
You probably ask why two tables just alike, well I am importing them both from other departments to do some comparisons on.
For simplicity, lets say there are two fields
Name and Salary.
I am trying to use a union query to show each name once, with Salary total. I can't get the salaries to add, or the name to show up only once. Below is the statement I am trying but I can't figure what to put in WHERE line. Am I close to being on the right track? Is union query what I should be using?
Thanks for helping out.
SELECT [NAME],[SALARY]
FROM [ONE]
WHERE ???
UNION SELECT [NAME],[SALARY]
FROM [TWO]
WHERE ???