T
ToniS
I am having a select problem, below is what I am after.
TableA
Number
1
2
3
4
5
TableB
Number Amount
2 100
3 50
4 175
TableC
Number Amount
2 180
5 189
Results looking for
Number TableB Amount TableC Amount
2 100 180
3 50
4 175
5 189
I would like to select information from tableB and TableC where the number
exists with in TableA
Something along the lines of
SELECT TableA.Number, TableB.Amount, TableC.Amount
FROM (TableA INNER JOIN TableB ON TableA.Number = TableB.Number)
INNER JOIN TableC ON TableA.Number = TableC.Number
TableC has 168 records where the number exists with in tableA So I know I
should at least get a result with 168 records or
more. With the above select statement I get a result of 145.
Any ideas on what I am doing wrong?
Thanks
Toni
TableA
Number
1
2
3
4
5
TableB
Number Amount
2 100
3 50
4 175
TableC
Number Amount
2 180
5 189
Results looking for
Number TableB Amount TableC Amount
2 100 180
3 50
4 175
5 189
I would like to select information from tableB and TableC where the number
exists with in TableA
Something along the lines of
SELECT TableA.Number, TableB.Amount, TableC.Amount
FROM (TableA INNER JOIN TableB ON TableA.Number = TableB.Number)
INNER JOIN TableC ON TableA.Number = TableC.Number
TableC has 168 records where the number exists with in tableA So I know I
should at least get a result with 168 records or
more. With the above select statement I get a result of 145.
Any ideas on what I am doing wrong?
Thanks
Toni