我有一个声明sql
WITH cte AS
(
SELECT ROW_NUMBER() OVER (PARTITION BY Id ORDER LastDate DESC, ) AS rn, Action
FROM TableA
)
SELECT cte.*
FROM cte
WHERE rn = 1
AND Action <> 1
我怎样才能转换为solr?