I have a table with no PK column. I am not supposed to change that. There is also a numeric column which can be used to order the rows. How do i select the top 1 or top n rows without using any function, ie a database agnostic query ?
I looked at this query, but it does not work for my case - Can there be a database-agnostic SQL query to fetch top N rows?