S
Stegra
I want to create a counter for a query by selected field results
Main sort - req number
Second sort - Date or Name or Time ...etc
Output1
Have counter start on the main sort (req number) and count until that main
sort changes. I do not want just the top x results, but the top x results by
sort criteria
Another reason is to identify the most recent date of activity by req
(Using this I could create a second query to find all records by req and
last date)
Some would be same day others would be two weeks or more. I do not want all
the activty up to that point for all req just the activity for the last
date... there could be one record or twenty for each request result
Output2
By having the counter in this query, I could then create a second query that
would take the x results by Condition
Example - return top 10 of condition 1, but only top 5 of condition 2 etc
I know this will mean having the system understand what was the last record
to compare
So can this be done or do I have to run through another program to
accomplish this?
Main sort - req number
Second sort - Date or Name or Time ...etc
Output1
Have counter start on the main sort (req number) and count until that main
sort changes. I do not want just the top x results, but the top x results by
sort criteria
Another reason is to identify the most recent date of activity by req
(Using this I could create a second query to find all records by req and
last date)
Some would be same day others would be two weeks or more. I do not want all
the activty up to that point for all req just the activity for the last
date... there could be one record or twenty for each request result
Output2
By having the counter in this query, I could then create a second query that
would take the x results by Condition
Example - return top 10 of condition 1, but only top 5 of condition 2 etc
I know this will mean having the system understand what was the last record
to compare
So can this be done or do I have to run through another program to
accomplish this?