Hi
I have a database which records students and their test scores. Each student could have between two and ten tests. The test are in one table and the students in another.
I want to create a query which will allow me to compare results between tests the student has taken. Unfortunately the database was set up with all the tests having the same name, so the only thing that varies between them is the date and the score.
I want to be able to set a parameter of say "tests in 2009" or "tests between x and y", and have the query return the score for the latest test in that year or period, AND the score for the test before (but not all the tests before!). I will then get the query to calculate the difference so I can measure progress.
I have constructed a query with the parameters but am only able to get it to give me a comparison between all of the tests. I thought about somehow getting a query to order the tests and only return the last two but not sure how to do this.
Any help would be greatly appreciated.
Thanks.
I have a database which records students and their test scores. Each student could have between two and ten tests. The test are in one table and the students in another.
I want to create a query which will allow me to compare results between tests the student has taken. Unfortunately the database was set up with all the tests having the same name, so the only thing that varies between them is the date and the score.
I want to be able to set a parameter of say "tests in 2009" or "tests between x and y", and have the query return the score for the latest test in that year or period, AND the score for the test before (but not all the tests before!). I will then get the query to calculate the difference so I can measure progress.
I have constructed a query with the parameters but am only able to get it to give me a comparison between all of the tests. I thought about somehow getting a query to order the tests and only return the last two but not sure how to do this.
Any help would be greatly appreciated.
Thanks.
Comment