The Follow query in the PGADMIN is giving me Nothing,
SELECT MAX(time) AS MaxID
FROM table_name
where column_name like 'valu_name'
OFFSET 1000 Limit 1000
Where as if I run the following query it gives me output
SELECT MAX(time) AS MaxID
FROM table_name
where column_name like 'valu_name'
But why? Why does the MAX function not work with OFFSET and LIMIT?
What is the right way to do it?
The use case is to get the max time stamp of rows between the 2000 to 3000, that why I am using the OFFSET and LIMIT, the From to To rows may changes !!