zcalebz
IS-IT--Management
- Jun 4, 2003
- 7
I have three tables. Each table contains a field 'SKU'. Two of the tables only contain unique records for each 'SKU'. The third table field 'SKU' has many records for each 'SKU' (i.e. one record for 108976 in each of the first two tables, 49 records containing 108976 in the third table).
Currently there is a inner join on firsttable.SKU = secondtable.SKU which of course only returns one record for 108976....I need to add another join on thirdtable.SKU, but only return one of the records from the third table.
The third table contains a date with each record i.e. '108976' 04/29/2003, '108976' 06/07/2003, '108976' 02/23/2004, etc. I want to grab the record based on the corresponding date.
Currently there is a inner join on firsttable.SKU = secondtable.SKU which of course only returns one record for 108976....I need to add another join on thirdtable.SKU, but only return one of the records from the third table.
The third table contains a date with each record i.e. '108976' 04/29/2003, '108976' 06/07/2003, '108976' 02/23/2004, etc. I want to grab the record based on the corresponding date.