hi there,
I am creating a cross tab query which is getting data from two tables . I am calculating count in my value field. Now everything is working fine except the fact that the query is not showing me the fields where the count is zero. I have used nz for that. Is there is any other way I can do that. My sql statement looks like this:
TRANSFORM nz(Count(Master_School_List.DfES),0) AS CountOfDfES
SELECT [School Types].School
FROM Master_School_List INNER JOIN [School Types] ON Master_School_List.Type = [School Types].Type
WHERE ((([School Types].Type)=0))
GROUP BY [School Types].ID, [School Types].School
ORDER BY [School Types].ID
PIVOT Master_School_List.District;
I am creating a cross tab query which is getting data from two tables . I am calculating count in my value field. Now everything is working fine except the fact that the query is not showing me the fields where the count is zero. I have used nz for that. Is there is any other way I can do that. My sql statement looks like this:
TRANSFORM nz(Count(Master_School_List.DfES),0) AS CountOfDfES
SELECT [School Types].School
FROM Master_School_List INNER JOIN [School Types] ON Master_School_List.Type = [School Types].Type
WHERE ((([School Types].Type)=0))
GROUP BY [School Types].ID, [School Types].School
ORDER BY [School Types].ID
PIVOT Master_School_List.District;