S
Solv123
I have two very large tables of data. One is a table of vehicles that are on
order and have an order number. The other is a table of vehicles that are
being produced at a future date and have a special vehicle number. I need to
match these tables by their model and then to take lowest order number and
vehicle number and give me this as a match. There could be more orders then
there are vehicles being produced or vice versa. i will also need to see the
production date which is in the vehicles table.
For example
Table1.Vehicle on order Table2.Vehicles to be produced
field1-Model Field1-Model
field2-Order number Field2-Vehicle Number
Field3-Production Date
Table1 Table2
Field1 Field2 Field1 Field2
Production Dt
A 1110005 A
BTX0001 12-1-09
A 1110006 A
BTX0004 12-3-09
B 1110010 B
BTX0008 11-30-09
C 1110020 B
BTX0010 1-1-10
D 1111560 B
BTX0011 12-15-09
C
BTX0013 12-1-09
The result I want:
A 1110005 BTX0001 12-1-09
A 1110006 BTX0004 12-3-09
B 1110010 BTX0008 11-30-09
C 1110020 BTX0013 12-1-09
Hope this makes sense. Appreciate any help
order and have an order number. The other is a table of vehicles that are
being produced at a future date and have a special vehicle number. I need to
match these tables by their model and then to take lowest order number and
vehicle number and give me this as a match. There could be more orders then
there are vehicles being produced or vice versa. i will also need to see the
production date which is in the vehicles table.
For example
Table1.Vehicle on order Table2.Vehicles to be produced
field1-Model Field1-Model
field2-Order number Field2-Vehicle Number
Field3-Production Date
Table1 Table2
Field1 Field2 Field1 Field2
Production Dt
A 1110005 A
BTX0001 12-1-09
A 1110006 A
BTX0004 12-3-09
B 1110010 B
BTX0008 11-30-09
C 1110020 B
BTX0010 1-1-10
D 1111560 B
BTX0011 12-15-09
C
BTX0013 12-1-09
The result I want:
A 1110005 BTX0001 12-1-09
A 1110006 BTX0004 12-3-09
B 1110010 BTX0008 11-30-09
C 1110020 BTX0013 12-1-09
Hope this makes sense. Appreciate any help