I have an sql server query like:
Select TOP 2 * from customer order by id desc
and want to replace it with;
Select * from customer order by id desc LIMIT 2
How do I do that using regex? The query might have subqueries that also include TOP statements. Basically, I want to replace TOP statement with LIMIT, to have the query work with Postgresql