So - I am trying to count unique records in my table (Demographic_detail). It works perfectly when I use the following
However, I'd like to add a criteria to count unique where my field (Processedfile) = "MHR_XAM20130514-XXX-01.TXT"
I throw this at the SQL wall, rather un athletically I admit as follows
And, it, and then I, blows up ... :banghead:
Code:
SELECT Count(*) AS N
INTO tblTempC
FROM (SELECT DISTINCT Account FROM Demographics_detail) AS T;
However, I'd like to add a criteria to count unique where my field (Processedfile) = "MHR_XAM20130514-XXX-01.TXT"
I throw this at the SQL wall, rather un athletically I admit as follows
Code:
SELECT Count(*) AS N
INTO tblTempC
FROM (SELECT DISTINCT Account FROM Demographics_detail) AS T
WHERE (T.[Processedfile]="MHR_XAM20130514-XXX-01.TXT");
And, it, and then I, blows up ... :banghead: