By using Group By, I only know how to do for two columns Such as:
SELECT Min(Incident_Event.Date_Time) AS ArriveTime, Response.Incidentid
FROM Response INNER JOIN Incident_Event ON Response.ResponderId = Incident_Event.ResponderId
WHERE (((Incident_Event.EventEnum)=100005) AND ((Incident_Event.Date_Time)>#1/1/1800#))
GROUP BY Response.Incidentid;
Here is my question:
If I want the query returns more than two columns, what should I change the code. For example:
"SELECT Min(Incident_Event.Date_Time) AS ArriveTime, Response.Incidentid, Response.Responder_Type,Response.Responder_ID"
Thanks for your time.
SELECT Min(Incident_Event.Date_Time) AS ArriveTime, Response.Incidentid
FROM Response INNER JOIN Incident_Event ON Response.ResponderId = Incident_Event.ResponderId
WHERE (((Incident_Event.EventEnum)=100005) AND ((Incident_Event.Date_Time)>#1/1/1800#))
GROUP BY Response.Incidentid;
Here is my question:
If I want the query returns more than two columns, what should I change the code. For example:
"SELECT Min(Incident_Event.Date_Time) AS ArriveTime, Response.Incidentid, Response.Responder_Type,Response.Responder_ID"
Thanks for your time.