E
elena
Hi, All
I need help with query for the report;
table has following fields
Plate Location MarkDate MarkTime Shield
-------------------------------------------------------
12AB Main St 02/23/07 11:00 801
34CD West St 02/23/07 12:15 801
12AB Main St 02/23/07 14:00 801
12AB Main St 02/23/07 14:30 801
---------------------------------------------------------
I need to produce output for the report like this:
Date Location Plate MTime1 MTime2 MTime3
------------------------------------------------------------------
02/23/07 Main St 12AB 11:00 14:00 14:30
02/23/07 West St 34CD 12:15
I don't know how to define fields in output from the query...
TRANSFORM First(t.MarkTime) AS FirstOfTime
SELECT t.MarkDate, t.Location, t.Plate
FROM t
GROUP BY t.MarkDate, t.Location, t.Plate
PIVOT t.MarkTime IN ("MTime1", "MTime2", "MTime3")
I need help with query for the report;
table has following fields
Plate Location MarkDate MarkTime Shield
-------------------------------------------------------
12AB Main St 02/23/07 11:00 801
34CD West St 02/23/07 12:15 801
12AB Main St 02/23/07 14:00 801
12AB Main St 02/23/07 14:30 801
---------------------------------------------------------
I need to produce output for the report like this:
Date Location Plate MTime1 MTime2 MTime3
------------------------------------------------------------------
02/23/07 Main St 12AB 11:00 14:00 14:30
02/23/07 West St 34CD 12:15
I don't know how to define fields in output from the query...
TRANSFORM First(t.MarkTime) AS FirstOfTime
SELECT t.MarkDate, t.Location, t.Plate
FROM t
GROUP BY t.MarkDate, t.Location, t.Plate
PIVOT t.MarkTime IN ("MTime1", "MTime2", "MTime3")