I am trying to get a distinct count of LAW_NM from the LAW_AG table. I keep getting a syntax error. Here is the SQL for the count. Where do I add the DISTINCT keyword to get a unique count of LAW_NM?
SELECT Count(LAW_AG.LAW_NM) AS CountOfLAW_NM
FROM [ALL] INNER JOIN LAW_AG ON [ALL].EVENT_ID = LAW_AG.EVENT_ID
WHERE ((([ALL].EVENT_TYPE)=0) AND (([ALL].DATE) Between #8/19/2005# And #9/5/2005#));
Thanks,
Troy
SELECT Count(LAW_AG.LAW_NM) AS CountOfLAW_NM
FROM [ALL] INNER JOIN LAW_AG ON [ALL].EVENT_ID = LAW_AG.EVENT_ID
WHERE ((([ALL].EVENT_TYPE)=0) AND (([ALL].DATE) Between #8/19/2005# And #9/5/2005#));
Thanks,
Troy