I have the following statement:
SELECT States.st, Licenses.[Expiration Date], IIf([Expiration Date]<Date()," Not Compliant","Compliant") AS Compliant
FROM States INNER JOIN Licenses ON States.st_ID = Licenses.st_ID;
What I need to do now is count the number of compliant returns with-in each state. Finally I need to see that if there is at least 1 compliant return in each state, said state would be expressed as compliant.
Can this be done? Should this be a dcount function?
SELECT States.st, Licenses.[Expiration Date], IIf([Expiration Date]<Date()," Not Compliant","Compliant") AS Compliant
FROM States INNER JOIN Licenses ON States.st_ID = Licenses.st_ID;
What I need to do now is count the number of compliant returns with-in each state. Finally I need to see that if there is at least 1 compliant return in each state, said state would be expressed as compliant.
Can this be done? Should this be a dcount function?