I am having problems making the following query work the way I intend it to work:
My intention was to display the amount of records that have is_pdf set to true for each serie_no.
However, when I run this in Access, I get prompted for sn and the total is the same for each serie_no.
If you need further information in order to help me, please let me know.
Thanks in advance
Code:
SELECT serie_no AS sn, STR((SELECT COUNT(standard_id) FROM standard WHERE is_pdf=True AND is_current=True AND serie_no = sn))+'/'+STR((SELECT COUNT(standard_id) FROM standard WHERE is_current=True AND serie_no = sn)) AS serie_pdfs
FROM standard
GROUP BY serie_no;
My intention was to display the amount of records that have is_pdf set to true for each serie_no.
However, when I run this in Access, I get prompted for sn and the total is the same for each serie_no.
If you need further information in order to help me, please let me know.
Thanks in advance