J
Janis
I'm trying to understand this Select statement.
SELECT tTech.Name, Sum(tTickets.[Time to Fix]) AS Total, Min(tTickets.Date)
AS [Start Date], Max(tTickets.Date) AS [End Date]
FROM tTech INNER JOIN (tDivisions INNER JOIN tTickets ON
tDivisions.[Division ID] = tblTickets.[Division ID]) ON tblTech.[Tech ID] =
tblTickets.[Tech ID]
WHERE (((tTickets.[Date Completed])>#1/31/2007# And (tTickets.[Date
Completed])<#3/1/2007#))
GROUP BY tTech.Name
ORDER BY Sum(tTickets.[Time to Fix]) DESC;
I assume there is a relationship from table Division to table Tech to table
Ticket. Are the Inner Joins from Tech to Division and Tech to Ticket?
The sum of the "time to fix" field and min and max are aggregates. So this
query shows all the dates worked on one issue but the min and max show the
date completed and the date started? The AS gives the names an alias name of
Start Date and End DAte?
The where clause groups by technican and sorts by length of time to fix an
issue?
thanks,
SELECT tTech.Name, Sum(tTickets.[Time to Fix]) AS Total, Min(tTickets.Date)
AS [Start Date], Max(tTickets.Date) AS [End Date]
FROM tTech INNER JOIN (tDivisions INNER JOIN tTickets ON
tDivisions.[Division ID] = tblTickets.[Division ID]) ON tblTech.[Tech ID] =
tblTickets.[Tech ID]
WHERE (((tTickets.[Date Completed])>#1/31/2007# And (tTickets.[Date
Completed])<#3/1/2007#))
GROUP BY tTech.Name
ORDER BY Sum(tTickets.[Time to Fix]) DESC;
I assume there is a relationship from table Division to table Tech to table
Ticket. Are the Inner Joins from Tech to Division and Tech to Ticket?
The sum of the "time to fix" field and min and max are aggregates. So this
query shows all the dates worked on one issue but the min and max show the
date completed and the date started? The AS gives the names an alias name of
Start Date and End DAte?
The where clause groups by technican and sorts by length of time to fix an
issue?
thanks,