Variant 3: Use of a parameter table
The parameter table is introduced via CROSS JOIN. However, since it usually only has one record, no unwanted data duplication takes place.
You just have to reset the value in the table before calling the query.
Advantage here too: This can also be used in deeper query levels.
SQL:
SELECT D.*
FROM tblData AS D, ptblParameters AS P
WHERE D.Anydate = P.parDate
You just have to reset the value in the table before calling the query.
Advantage here too: This can also be used in deeper query levels.