Input table (named ruchin)
id comment order_id deleted_at
1 abc 1234 NULL
2 abcd 1234 TimeStamp
3 xyz 1234 NULL
4 pqr 1234 TimeStamp
5 as 4567 NULL
6 lo 4567 NULL
and I want output as
order_id count(deleted_at==Timestamp) count(deleted_at==NULL)
1234 2 2
4567 0 2
and I want this to be in single query.How can I do this???