By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,104 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,104 IT Pros & Developers. It's quick & easy.

Top 5 scores query

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.