Find top 2 by group

G

Grizy

I have been struggling with this one for the past week and I’m at my wits
end. Please help!

I have a log table that I need to find all transactions where the
transaction type is “Update Item†and the previous entry for the same serial
number so that I can show what the item was update from and to. The table
looks like this:

Trx_Log
--------------
Date
Trx_type
Serial_num
Condition
Owner

I think I need to use Top 2 in a sub-query somehow but I’m not sure of the
proper syntax.

Any help you can offer will be appreciated.
 
G

Grizy

I did try it but the example but it wasn't close enough to the original
question to make it work. I haven't had enough practice writing sql code to
change the example into something workable for my purpose.

I did find a workable solution on ASPfree, but it will still need more
tweeking.

Thank you for your concern.
Grizy
 
M

Michel Walsh

Does not have to, just have to use Google or Live Search.

Google performs a little bit better in that specific case, giving "access
find top 2 by group" as key words for the search.


Vanderghast, Access MVP


in message news:[email protected]...
 
Top