C
cixelsyd
I have a table containing transaction data for many
items (Partno). Each item may have several entries in the table due to
transactions on different dates (TDate).
I wish to select the complete record for each item for the most recent
transactions (TDate) from a table containing many records. How do I structure
the query?
Table
Partno1 Date1 DataX DataY
Partno1 Date2 DataX DataY
Partno1 Date3 DataX DataY > most recent date
Partno2 Date1 DataX DataY
Partno3 Date1 DataX DataY
I wish to return
Partno1 Date3 DataX DataY > most recent date
Partno2 Date1 DataX DataY
Partno3 Date1 DataX DataY
items (Partno). Each item may have several entries in the table due to
transactions on different dates (TDate).
I wish to select the complete record for each item for the most recent
transactions (TDate) from a table containing many records. How do I structure
the query?
Table
Partno1 Date1 DataX DataY
Partno1 Date2 DataX DataY
Partno1 Date3 DataX DataY > most recent date
Partno2 Date1 DataX DataY
Partno3 Date1 DataX DataY
I wish to return
Partno1 Date3 DataX DataY > most recent date
Partno2 Date1 DataX DataY
Partno3 Date1 DataX DataY