I have a SQL Query that works when the number of values is small, but in this instance I have around 5500 values in my "customerListLINKED" table and the query is taking 20 minutes or so to run. Is there a more efficient way to write with query?
SELECT
CustomerListLINKED.Base8,
(COUNT (Filtered_ZFEWN.Notification)) AS [Historical Count of Jobs]
FROM
CustomerListLINKED
LEFT JOIN
Filtered_ZFEWN ON CustomerListLINKED.Base8 = Filtered_ZFEWN.[Base 8]
WHERE
Filtered_ZFEWN.[Base 8] IN (SELECT CustomerListLINKED.Base8
FROM CustomerListLINKED)
GROUP BY
Filtered_ZFEWN.[Base 8], CustomerListLINKED.Base8;
I am using MS Access.