I have created a crosstab query, where the count field is the MPAN ID. However, there are duplicate MPANs in there that i need to be removed.
The SQL is as follows:
TRANSFORM Count(area54.MPAN) AS CountOfMPAN
SELECT "00. Total" AS Field, Count(area54.MPAN) AS [total mpans]
FROM area54
GROUP BY "00. Total"
PIVOT area54.CD In
I assume that select distinct comes into the equation somewhere, but I have tried putting it after the select statement to no availe.
Any help will be much apprecited!!!
Ooch
The SQL is as follows:
TRANSFORM Count(area54.MPAN) AS CountOfMPAN
SELECT "00. Total" AS Field, Count(area54.MPAN) AS [total mpans]
FROM area54
GROUP BY "00. Total"
PIVOT area54.CD In
I assume that select distinct comes into the equation somewhere, but I have tried putting it after the select statement to no availe.
Any help will be much apprecited!!!
Ooch