These statements about sub-queries are still too general and not very differentiating. For a subquery like the one used above, I don't really need the assistance of an optimizer:
Such very bad designs as in qryTestA , B, C etc. in the speed test, you can also say mistakes, but with a little manual skill they will not occur.
SQL:
...
(
SELECT
PupilID,
Code,
MeritPts,
DeMeritPts
FROM
PRecords
WHERE
DateOfIncident BETWEEN #1/1/2018# AND #12/30/2018#
) AS R
...