470,815 Members | 1,288 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Top 5 scores query

I have 10 tables that are identical in structure. They contain a
location code, an employee id for that location and a score. In all of
these tables a location code/employee id combanation uniquely
identifies an employee and is the primary key for each table. Each
table corresponds to a different graded event that employees
participated in. What I need to do is to create a query that lists, by
each unique employee, the top 3 scores that they achieved across the
ten events. Any help?
Nov 12 '05 #1
1 1286
Yes, rebuild your tables before you go any further. This is only the beginning
of the trouble you are going to have with your table design being
non-normalized. You need:

TblLocation
LocationID
Location

TblEmployee
EmployeeID
LocationID
FName
LName

TblEvent
EventID
Event

TblEmployeeEvent
EmployeeEventID
EventID
EmployeeID
Grade

Now you should see that getting the top 3 scores each employee achieved across
the
ten events in TblEmployeeEvent is simple!
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"John Brajkovich" <ha********@hotmail.com> wrote in message
news:2a**************************@posting.google.c om...
I have 10 tables that are identical in structure. They contain a
location code, an employee id for that location and a score. In all of
these tables a location code/employee id combanation uniquely
identifies an employee and is the primary key for each table. Each
table corresponds to a different graded event that employees
participated in. What I need to do is to create a query that lists, by
each unique employee, the top 3 scores that they achieved across the
ten events. Any help?

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by waldoruns | last post: by
reply views Thread by bonjella | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.