Hi community.
I have a query:
SELECT
nameField,
dateField,
anotherDateField
FROM
(
SELECT
MIN(someDate) as dateField,
nameField,
anotherDateField
FROM $$$SOURCE
WHERE $$$RESTRICT
GROUP by someOtherField
)
WHERE dateField >= anotherDateField
This query should filter the data by the minimum value of the somDate field, but it doesn't. It displays all values together, regardless of the external filter. The exact same query (without the $$$ tokens, of course) works fine in a regular SQL runtime.
My guess is that the $$$RESTRICT does this
WHERE source.