If you want to get min and max value of
PDate
for sigle user, try this:
SELECT UserId, MIN(PDate) AS LPDate, MAX(PDate) AS FPDate
FROM BodyMeasurements
GROUP UserId
[EDIT]
Using
UNION ALL[
^]:
SELECT UserId, PName, PWeight, BMI, Intake, MIN(PDate)
FROM BodyMeasurements
GROUP BY UserId, PName, PWeight, BMI, Intake
UNION ALL
SELECT UserId, PName, PWeight, BMI, Intake, MAX(PDate)
FROM BodyMeasurements
GROUP BY UserId, PName, PWeight, BMI, Intake
It is possible to get data using
Joins[
^], but i need to warn you: MS Access likes brackets when there's more than one join. Please see:
How to: Perform Joins Using Access SQL[
^]
[EDIT]
As to the OP's comments...
SELECT t1.*, t2.*
FROM (
(
) AS t2 ON t1. UserId = t2.UserId