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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top