D
Duncan A. McRae
Hi there:
I must write a report for a dance competition, and a set-only approach
escapes me.
routines, dancers, scores:
- routine n <-- --> n dancers
- routine 1 <-- --> 3 scores
- rank routine by avg(score) desc, where no dancer is ranked twice.
That last one is the kicker: for each routine ranked, subsequent
routines with ranked dancers must be ignored.
Using a cursor or a loop, it's simple enough to write this in T-SQL
for SQL Server. I'm not as familiar with Access, so I'm hoping that
there's a set-based approach that Access's query engine can
understand. Any suggestions? If yes, please respond to the newsgroup
(the email associated to this post is essentially /dev/null).
Thanks;
Duncan
I must write a report for a dance competition, and a set-only approach
escapes me.
routines, dancers, scores:
- routine n <-- --> n dancers
- routine 1 <-- --> 3 scores
- rank routine by avg(score) desc, where no dancer is ranked twice.
That last one is the kicker: for each routine ranked, subsequent
routines with ranked dancers must be ignored.
Using a cursor or a loop, it's simple enough to write this in T-SQL
for SQL Server. I'm not as familiar with Access, so I'm hoping that
there's a set-based approach that Access's query engine can
understand. Any suggestions? If yes, please respond to the newsgroup
(the email associated to this post is essentially /dev/null).
Thanks;
Duncan