Ive found a couple solutions one in particular that was of great help, and nearly got me there, but im stuck on the last bit. All i need to do now is be able to specify a range for the CarNumbers to be displayed.
the SQL might make more sense...
SELECT sr.* FROM StatusReport sr
INNER JOIN ( SELECT CarNumber, MAX(StatusReportTime) AS MaxDateTime
FROM StatusReport GROUP BY CarNumber ) groupedsr ON sr.CarNumber =
groupedsr.CarNumber AND sr.StatusReportTime = groupedsr.MaxDateTime
I basically want to be able to add the following line in.
WHERE CarNumber BETWEEN '0' AND '3999'
Could anyone help me out?
Thanks in advance,
Mike