Suppose there is a table:
CREATE TABLE example_table ( datetime timestamp without time zone NOT NULL, revenue smallint NOT NULL, ); And I make a request from it:
select datetime,revenue from example_table where datetime between "..." and "..." order BY datetime; But I need to get, say, every 5th line of this query. Can this be done? Without adding a SERIAL field.