C
C Tate
This is my second attempt at a post. I don't think I worded it well the
first time around, so here goes .
I have a table called tblprogress. It looks something like this:
Identifier Date Healthscore Housingscore
MentalHealthscore Totalscore
01/06 01/01/06 5 3
4 12
02/06 01/01/06 4 4
5 13
03/06 02/01/06 3 2
5 10
01/06 01/02/06 3 3
3 9
01/06 01/03/06 3 2
2 7
02/06 01/02/06 1 1
1 3
03/06 01/02/06 4 5
5 14
I want do design a query which will enable me to look at a client's first
score and their latest score, then tell me whether the latest score is
higher, lower or the same as the first score. Is this possible? I have
managed to get as far as designing a min query and a max query based on the
date of the assessment but I'm lost after that. I'm also a bit of a novice
so I can't understand complicated SQL statements.
At some point in the future I may wish to build another feature into my
queries which enables me to compare the latest score with the last but one
score.
If anybody can advise me (in full idiot style language!) how to proceed I'd
be very grateful.
first time around, so here goes .
I have a table called tblprogress. It looks something like this:
Identifier Date Healthscore Housingscore
MentalHealthscore Totalscore
01/06 01/01/06 5 3
4 12
02/06 01/01/06 4 4
5 13
03/06 02/01/06 3 2
5 10
01/06 01/02/06 3 3
3 9
01/06 01/03/06 3 2
2 7
02/06 01/02/06 1 1
1 3
03/06 01/02/06 4 5
5 14
I want do design a query which will enable me to look at a client's first
score and their latest score, then tell me whether the latest score is
higher, lower or the same as the first score. Is this possible? I have
managed to get as far as designing a min query and a max query based on the
date of the assessment but I'm lost after that. I'm also a bit of a novice
so I can't understand complicated SQL statements.
At some point in the future I may wish to build another feature into my
queries which enables me to compare the latest score with the last but one
score.
If anybody can advise me (in full idiot style language!) how to proceed I'd
be very grateful.