Inside the database (SQL) I have a table called wp_lb_leads_confirmations where for each ID I have N-rows. I need to select the 5th row for each ID.
I used the query (above), but the command ROW_NUMBER() give me the following error message:
SQL Error [1064] [42000]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ROW_NUMBER() OVER (ORDER BY creationdate ASC) AS rownumber,' at line 1
Actually, I'm using DBeaver (V. 21.3.4)
SELECT * FROM (
SELECT
ROW_NUMBER() OVER (ORDER BY creationdate ASC) AS rownumber,
columns
wp_lb_leads_confirmations
)
WHERE rownumber = 5
Any suggestion? Thanks in advance