I run a DB of cars that illegally park in our parking lot, I needed a query to give the license numbers of cars that park illegally more than once. I set up the query using the following script, although it does give me the license numbers correctly it does do not separate the data by date (month). Is the line (highlighted) requesting this wrong? Any help would be appreciated.
SELECT *
FROM [Violation Log]
WHERE ([Violation Log].[License Plate No]) In (SELECT [License Plate No]
FROM [Violation Log]
WHERE TblDate Between [start] And [end]
GROUP BY [License Plate No]
HAVING Count(ID)>= 2)
ORDER BY [Violation Log].[License Plate No];