I have following simple table,
ID DateTime Category
-- -------- ----------
1 2018-05-12 5:05 1
2 2018-05-12 5:10 1
3 2018-05-12 6:25 2
4 2018-05-13 7:40 1
5 2018-05-14 8:50 4
I want to count the number of entries per day for each category, so result should be like,
Day Category Count
--------- -------- -------
2018-05-12 1 2
2018-05-12 2 1
2018-05-13 1 1
2018-05-14 4 1
How can i do this in sqlalchmey?
Edit: Database I'm using is PostgreSQL
Edit: Columns and their specific types are as following, ID - Integer, Category - Integer, DateTime - DateTime