OceanDesigner
Programmer
I thought this was going to be fairly straightforward, but I can't seem to sort it out. I have a table with an equipment number and operating hours for that equipment along with several other attributes. I want to write a query that first groups the table according the equipment number and then select the record with the maximum number of op hours for each equipment. Also, I would like the entire record returned, not just the hours. The table looks something like this:
tblOpHours:
EqNum OpHours fld1 fld2
1 3 a b
1 10 c d
2 4 e f
2 15 g h
3 1 i j
3 20 k l
The query I want to write should return the following:
EqNum OpHours fld1 fld2
1 10 c d
2 15 g h
3 20 k l
I appreciate the help. - Jeff
tblOpHours:
EqNum OpHours fld1 fld2
1 3 a b
1 10 c d
2 4 e f
2 15 g h
3 1 i j
3 20 k l
The query I want to write should return the following:
EqNum OpHours fld1 fld2
1 10 c d
2 15 g h
3 20 k l
I appreciate the help. - Jeff