I would like to fire the query suggested in https://stackoverflow.com/a/3800572/2968357 on a HSQLDB database using select * such as
WITH tmpTable AS (
SELECT p.* ,
ROW_NUMBER() OVER(PARTITION BY p.groupColumn order by p.groupColumn desc) AS rowCount
FROM sourceTable p) SELECT * FROM tmpTable WHERE tmpTable.rowCount = 1
but getting the following error:
Caused by: org.hsqldb.HsqlException: unexpected token: PARTITION required: )
meaning PARTITION BY is not supported.
Is there a work-around for my specific query on HSQLDB?