and find the max and min?
How do you GROUP BY multiple fields and find the max and min of them?
I did it and could only do it to one field, if I add more field I would have an error.
Thanks, Appreciate it.
How do you GROUP BY multiple fields and find the max and min of them?
I did it and could only do it to one field, if I add more field I would have an error.
this works fine
SELECT [Inspector First & Last Name],
[apt start date],
max([Uploaded Time]) as [max upload time]
FROM Original
GROUP BY [Inspector First & Last Name], [apt start date];
But this is not fine
SELECT [Inspector First & Last Name],
[apt start date],
min ([apt start time]) as [apt min start time]
max ([apt finish time]) as [apt max finish time]
max([Uploaded Dates]) as [max upload date],
max([Uploaded Time]) as [max upload time]
FROM Original
GROUP BY [Inspector First & Last Name], [apt start date];
Thanks, Appreciate it.