Hi all,
Not been programming for a few years now and starting to lose my mind with this one. It should be easy but I just can't get my head round it.
The table consists of a number of fields with the following being the only ones relating to this issue:
What I basically want to do is return the last record inserted for each multipleslot.
So in the above example, I am trying to return:
123456789 - JobCompleted - 2
567890123 - PartsOrderd - 1
I've tried playing about with GROUP and I just can't get it to return the last inserted query for each.
Any ideas? Thanks in advance.
Wullie
The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
Not been programming for a few years now and starting to lose my mind with this one. It should be easy but I just can't get my head round it.
The table consists of a number of fields with the following being the only ones relating to this issue:
Code:
id - multipleslot - currentstatus - daysuntilflag
01 - 123456789 - JobAdded - 2
02 - 123456789 - JobBooked - 2
03 - 567890123 - JobBooked - 1
04 - 123456789 - JobCompleted - 2
05 - 567890123 - PartsOrdered - 1
What I basically want to do is return the last record inserted for each multipleslot.
So in the above example, I am trying to return:
123456789 - JobCompleted - 2
567890123 - PartsOrderd - 1
I've tried playing about with GROUP and I just can't get it to return the last inserted query for each.
Any ideas? Thanks in advance.
Wullie
The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell