I know how to write a query in MS SQL
select m.date, count(*) as count, (select count(*) from posts n where n.date <= m.date) ) as total from posts m group by m.date order by 1 But in PostgreSQL this query does not work. Error around from. How to rewrite the request? can a PostgreSQL server read requests differently than MS SQL?