I want to use a query of queries as a subquery but i get a syntax error: Encountered "(. Here is my query (qHistoryData is my query object):
<cfquery dbtype="query">
SELECT *
FROM (
SELECT
t2.*,
ROW_NUMBER() OVER(
PARTITION BY collectid
ORDER BY update_on DESC
) AS seqnum
FROM qHistoryData t2
) t
WHERE t.seqnum = 1;
</cfquery>
Encountered "(. I do not get anything more as an error.