I am completely new to Microsoft Query.
I have the following tables defined:
FLEET_MASTERS Table
- REG_NO
- FMS_ID
ODOMETERS Table
- ODO_ID
- FMS_ID
ODOMETERS_READING Table
- ODO_ID
- ODO_READING
- ODO_READING_DATE
- ODO_READING_TYPE
I need these information:
REG_NO, ODO_READING, max(ODO_READING DATE), ODO_READING_TYPE
But from one REG_NO
, there may be multiple ODO_READING
and ODO_READING DATE
, I just need the ODO_READING
with the most recent ODO_READING DATE
.