E
EagleOne
2003
Have Tables A, B, C all which contain source data.
Each table has a field AccountNumber.
I am attempting to create a table that has a list of all AccountNumbers used in A and/or B and/or C.
This table should have only one instance of an account number no matter which table.
The follouing code works but produced all combo's and permutations of three sets of AccountNumbers
SELECT DISTINCT A.accountnumber, B.accountnumber, C.accountnumber
INTO AccountNumbers
FROM A, B, C;
What SQL syntax would give me one-instance of each account number in the three tables?
TIA EagleOne
Have Tables A, B, C all which contain source data.
Each table has a field AccountNumber.
I am attempting to create a table that has a list of all AccountNumbers used in A and/or B and/or C.
This table should have only one instance of an account number no matter which table.
The follouing code works but produced all combo's and permutations of three sets of AccountNumbers
SELECT DISTINCT A.accountnumber, B.accountnumber, C.accountnumber
INTO AccountNumbers
FROM A, B, C;
What SQL syntax would give me one-instance of each account number in the three tables?
TIA EagleOne