Hi,
I have a database which records fitness test results of pupils.
There are the usual name fields and then a series of fields holding results,
e.g. field BP1 and field BP2; each of these fields holds a test result in
numerical form. Let's assume BP1 value is 55 and BP2 value is 57.
My problem is that I want to have a report which will only give me the
highest result for that test for each pupil; I need to be able to extract
the highest score in each of the four tests. Some pupils have nil results
for some tests.
As the pupils progress through the school they could end up with a maximum
of 8 scores for each test, I still only want their highest score for each
test in a report.
I have spent hours trying to do this and I would greatly appreciate help.
I will happily email an extract of the database if that helps.
Thanks
DW 2 2647
The best solution to this problem would be to create a related table to hold
the test results: one per *record*. So the fields would be:
StudentID Who did this test.
TestID Which test it is
Score What result the student achieved.
It is then very easy to get the highest score in a test, or across all
tests, of a student or ...
If you want to stay with your existing fields, see:
MinOfList() and MaxOfList()
at: http://allenbrowne.com/func-09.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Dirtyweeke r" <go****@gmail.c om> wrote in message
news:42******** **************@ ptn-nntp-reader02.plus.n et... Hi, I have a database which records fitness test results of pupils.
There are the usual name fields and then a series of fields holding results, e.g. field BP1 and field BP2; each of these fields holds a test result in numerical form. Let's assume BP1 value is 55 and BP2 value is 57.
My problem is that I want to have a report which will only give me the highest result for that test for each pupil; I need to be able to extract the highest score in each of the four tests. Some pupils have nil results for some tests.
As the pupils progress through the school they could end up with a maximum of 8 scores for each test, I still only want their highest score for each test in a report.
I have spent hours trying to do this and I would greatly appreciate help. I will happily email an extract of the database if that helps. Thanks DW
Dirtyweeker,
You oughta datawarehouse yadda yadda yadda . . . I needed the last
cumulative total in my table for several numeric measures so I could
increment these numeric measures by a new amount. Since in my db a project,
an employee and a date represent a unique row I ended up writing sub-queries
for each total I needed and joining them by employee and project. What was
new & cool to me was that each of my subqueries was returning a single value
to the query in which they lived. One subquery per column as it turned out.
I don't know if my little success will suggest a solution that can work for
you but as I read your post I thought it might.
--
Alan Webb kn*******@SPAMh otmail.com
"It's not IT, it's IS"
"Dirtyweeke r" <go****@gmail.c om> wrote in message
news:42******** **************@ ptn-nntp-reader02.plus.n et... Hi, I have a database which records fitness test results of pupils.
There are the usual name fields and then a series of fields holding results, e.g. field BP1 and field BP2; each of these fields holds a test result in numerical form. Let's assume BP1 value is 55 and BP2 value is 57.
My problem is that I want to have a report which will only give me the highest result for that test for each pupil; I need to be able to extract the highest score in each of the four tests. Some pupils have nil results for some tests.
As the pupils progress through the school they could end up with a maximum of 8 scores for each test, I still only want their highest score for each test in a report.
I have spent hours trying to do this and I would greatly appreciate help. I will happily email an extract of the database if that helps. Thanks DW This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: shank |
last post by:
How do you return the highest value in a recordset of maybe 100 records?
Is it necessary to run 2 recordsets?
I was hoping it was as simple as Max(), but no luck.
thanks
|
by: Michael Hill |
last post by:
Hi, folks.
I am writing a Javascript program that accepts (x, y) data pairs from
a text box and then analyzes that data in various ways. This is my
first time using text area boxes; in the past, I have used individual
entry fields for each variable. I would now like to use text area
boxes to simplify the data entry (this way, data can be produced by
another program--FORTRAN, "C", etc.--but analyzed online, so long as
it is first...
|
by: Jaspreet |
last post by:
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.
Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.
|
by: Digital Puer |
last post by:
Hi, suppose I have an unsigned long long. I would like to extract
the front 'n' bits of this value and convert them into an integer.
For example, if I extract the first 3 bits, I would get an int between
0 and 7 (=2^3-1). Could someone please help out?
I can assume the largest returned value fits in an int. Also,
I'm on a big-endian PPC (AIX), in case that matters.
Ideally, I'd like to implement a prototype like:
int...
|
by: Jan |
last post by:
Hi there,
Is there a fast way to get the highest value from an array?
I've got the array strStorage(intCounter)
I tried something but it all and's to nothing
If someone good helpme, TIA
| |
by: johnk |
last post by:
I have a table of items, with revision numbers. I need to extract the
items with highest revision number. The items may be listed several
times and I don't know what the highest revision number for each item
is. How do I do this?
|
by: srikanthr |
last post by:
how do i get the constraints associated with a table. is there any
system table which stores the constraint details. Atleast how do I know
if a column is nullable or not
|
by: Debbiedo |
last post by:
My software program outputs an XML Driving Directions file that I need
to input into an Access table (although if need be I can import a dbf
or xls) so that I can relate one of the fields (fromStop) and its
associated driving directions back to a relational database. I have
asked my software vendor for solutions but thus far they have not come
up with anything. I am totally unfamiliar with XML so I am struggling
with how to do this. I have...
|
by: geegeegeegee |
last post by:
Hi All,
I have come across a difficult problem to do with extracting UniCode characters from RTF strings.
A detailed description of my problem is below, if anyone could help, it would be much appreciated. I've tried to make the problem as clear as possible, but if any clarification is needed please let me know.
Task
-Convert RTF2 formatted text containing foreign characters (UniCode) to PlainText.
Background
-We are using Stephan...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |