K
Kenny
Table1
Account#
1
2
3
Table2
ID# Account# Field1 Field2 Field3 ETC
1 1
2 1
3 1
4 2
5 3
6 3
7 2
8 1
These seems simple enough but I cannot figure out how to do this quickley. I
tried an agregated sql but it took forever as table 2 has about 50000 records
with duplicates. All I want to do is create a query that will list all of
table1's account numbers and then join all of table2's information on the
account number matching AND ID# being the max or largest.
Anything I have tried takes about 30 mins - please help!
Account#
1
2
3
Table2
ID# Account# Field1 Field2 Field3 ETC
1 1
2 1
3 1
4 2
5 3
6 3
7 2
8 1
These seems simple enough but I cannot figure out how to do this quickley. I
tried an agregated sql but it took forever as table 2 has about 50000 records
with duplicates. All I want to do is create a query that will list all of
table1's account numbers and then join all of table2's information on the
account number matching AND ID# being the max or largest.
Anything I have tried takes about 30 mins - please help!