Kobojunkie
Programmer
- May 28, 2008
- 16
I have a situation where I need to get the last 20 INSERTS made by particular user into transaction table, then calculate the total amount of time it took to insert those 20 items into the table and then make sure it is less than 10 minutes or add a flag to another table. How do I go about accomplishing this please???
My current path has me retrieving the TOP 20 DESC order entry's in the Table by the particular user and then stepping through each row to do a sum of differences between each row and then comparing the sumtotal time with 10 minutes but I sort of feel there is a better way to do this and I would like help understanding this please.Thanks in advance.
My current path has me retrieving the TOP 20 DESC order entry's in the Table by the particular user and then stepping through each row to do a sum of differences between each row and then comparing the sumtotal time with 10 minutes but I sort of feel there is a better way to do this and I would like help understanding this please.Thanks in advance.