G
Guest
Following is my SQL and it is base on a query that I sort by date criteria.
The problem is when I change the date and there is no data for some
inspectors the cross tab does not list those inspectors in the table.
TRANSFORM Nz(Count([15 < 07].[DATE REFERRED]),0) AS [CountOfDATE REFERRED]
SELECT [15 < 07].InspectorID, Count([15 < 07].[DATE REFERRED]) AS [Total Of
<15]
FROM [15 < 07]
GROUP BY [15 < 07].InspectorID
PIVOT [15 < 07].LEVELS;
I get the following results which is good.
InspectorID Total Of <15 0 5 10 11 12 13 14
Brian Kimball 1 0 0 0 0 0 0 1
Christie Jones Ringfield 61 0 1 19 17 16 8 0
India Carlton 64 1 0 15 22 20 6 0
Sharon Malone 63 0 0 14 23 21 5 0
When I change the date criteria I get the following
InspectorID Total Of <15 10 11
Brian Kimball 1 1 0
Christie Jones Ringfield 2 1 1
I need all inspectorID that are listed in the first example.
How can I get accomplish this ?
The problem is when I change the date and there is no data for some
inspectors the cross tab does not list those inspectors in the table.
TRANSFORM Nz(Count([15 < 07].[DATE REFERRED]),0) AS [CountOfDATE REFERRED]
SELECT [15 < 07].InspectorID, Count([15 < 07].[DATE REFERRED]) AS [Total Of
<15]
FROM [15 < 07]
GROUP BY [15 < 07].InspectorID
PIVOT [15 < 07].LEVELS;
I get the following results which is good.
InspectorID Total Of <15 0 5 10 11 12 13 14
Brian Kimball 1 0 0 0 0 0 0 1
Christie Jones Ringfield 61 0 1 19 17 16 8 0
India Carlton 64 1 0 15 22 20 6 0
Sharon Malone 63 0 0 14 23 21 5 0
When I change the date criteria I get the following
InspectorID Total Of <15 10 11
Brian Kimball 1 1 0
Christie Jones Ringfield 2 1 1
I need all inspectorID that are listed in the first example.
How can I get accomplish this ?