Thanks in advance for any help you can give me!
I have a query that I am trying to construct which seems simple in theory but my SQL skills are basic and I can't figure out how to get the results I am looking for.
Basically, I have a table which logs a person's exercises. It stores:
ExerciseName
Sets
Reps
Weight
ExerciseDate
For simplicty sake, let's say this is what is in my table:
Squats, 1, 12, 100, 2/17/06
Squats, 2, 12, 110, 2/19/06
Squats, 3, 10, 120, 2/20/06
Curls, 3, 10, 50, 2/17/06
Curls, 2, 15, 50, 2/20/06
I would like to display distinct exercises AND the LAST values entered for Sets, Reps, and Weight for each exercise.
in my example above it would be:
Squats, 3, 10, 120 (2/20/06)
Curls, 2, 15, 50 (2/20/06)
Sounds simple enough but I can't seem to construct a query that gives me the distinct exercise names and the last entered for each.
Any help is much appreciated.
Thank you!
JP
I have a query that I am trying to construct which seems simple in theory but my SQL skills are basic and I can't figure out how to get the results I am looking for.
Basically, I have a table which logs a person's exercises. It stores:
ExerciseName
Sets
Reps
Weight
ExerciseDate
For simplicty sake, let's say this is what is in my table:
Squats, 1, 12, 100, 2/17/06
Squats, 2, 12, 110, 2/19/06
Squats, 3, 10, 120, 2/20/06
Curls, 3, 10, 50, 2/17/06
Curls, 2, 15, 50, 2/20/06
I would like to display distinct exercises AND the LAST values entered for Sets, Reps, and Weight for each exercise.
in my example above it would be:
Squats, 3, 10, 120 (2/20/06)
Curls, 2, 15, 50 (2/20/06)
Sounds simple enough but I can't seem to construct a query that gives me the distinct exercise names and the last entered for each.
Any help is much appreciated.
Thank you!
JP