Hi,
I have a table of blood pressures, recorded separately as systolic and diastolic pressures (two different fields). Also in the table is the date and time of measurement. There are many measurements per day.
For each day, I'd like to retrieve the minimum sbp value and the corresponding dbp value (same time and day). If there are ties in the sbp value, I want the minumum dbp value.
Example:
3 measurements for day1 are 90/70, 100/80, 100/50. The pair I want is 90/70, (not 100/50).
For day2 the measurements are 90/70, 90/60, 100/50. The pair I want is 90/60.
I thought that this would be simple, but I'm having difficulty. I'll keep at it but if anyone would like to have a go then I'd be grateful for saving me any more time wasted.
I have a table of blood pressures, recorded separately as systolic and diastolic pressures (two different fields). Also in the table is the date and time of measurement. There are many measurements per day.
For each day, I'd like to retrieve the minimum sbp value and the corresponding dbp value (same time and day). If there are ties in the sbp value, I want the minumum dbp value.
Example:
3 measurements for day1 are 90/70, 100/80, 100/50. The pair I want is 90/70, (not 100/50).
For day2 the measurements are 90/70, 90/60, 100/50. The pair I want is 90/60.
I thought that this would be simple, but I'm having difficulty. I'll keep at it but if anyone would like to have a go then I'd be grateful for saving me any more time wasted.