Associate
- Joined
- 21 Oct 2002
- Posts
- 1,027
I'm trying to create a query which will extract the chronological improvement in my data, i have used nested queries before to get a list of the bests (best being the smallest time duration) per category but this is stumping me. I am thinking i need set a variable to store the first matching value but thereafter im not really sure of my mechanism to list all the results - can anyone either point me in the direction of a good example (my googlefu is failing..) or help here please?
Example data
Date Duration
1/8/1999 28.99 seconds
7/12/2001 39.99 seconds
1/3/2012 24.54 seconds
1/3/2013 23.45 seconds
1/4/2013 25.35 seconds
Example result in rank
Date Duration
1/8/1999 28.99 seconds
1/3/2012 24.54 seconds
1/3/2013 23.45 seconds
Thanks in advance!
Example data
Date Duration
1/8/1999 28.99 seconds
7/12/2001 39.99 seconds
1/3/2012 24.54 seconds
1/3/2013 23.45 seconds
1/4/2013 25.35 seconds
Example result in rank
Date Duration
1/8/1999 28.99 seconds
1/3/2012 24.54 seconds
1/3/2013 23.45 seconds
Thanks in advance!