473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1369
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
Relevancy scores are normally defined by a MySQL query on a table that has a fulltext index. The rules for relevancy scoring will exclude certain words due to their being too short (minimum...
3
by: Irene | last post by:
Hi all, I have set up a simple VB program (and later on an ASP interface) to manage an Athletics database. I'm using Access 2000. To simplify, I have the Athlets, the Competitions and the...
11
by: Penfold | last post by:
I'd appreciate help converting student average test scores into grades. My problem is that I need to allocate one of about 20 grades (3a,3b,3c,4a,4b,4c etc through to 8c plus a couple of others)....
1
by: waldoruns | last post by:
I need help to finish this code.....Here is what I got so far...... /Read in test scores and output total number of scores, total number of each letter grade, //percentage of total for each...
3
by: Akinyemi | last post by:
I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively. I have been able to get the program to...
4
by: jocknerd | last post by:
About 10 years ago, I wrote a C app that would read scores from football games and calculate rankings based on the outcome of the games. In fact, I still use this app. You can view my rankings at...
0
by: Racqetsports | last post by:
Hi there, In a gradebook database, student grades must be computed from 2 scores: a Daily grade, and then scores from Assignments. Knowing about nested forms, I am requesting direction on how to...
0
by: bonjella | last post by:
Hello, I have a table called tbl_skill_scores user_id - primary skill - varchar score - int Each user has 6 entries in this table, one for each skill.
8
by: d24706 | last post by:
Hello, I hope someone can help me. I had to do the following assignment( i have most of it done just cant finish it off, question and source code below). Question? Write a Java program that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.