输入表(命名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
我想输出为
order_id count(deleted_at==Timestamp) count(deleted_at==NULL)
1234 2 2
4567 0 2
我希望这是在单个查询中。我该怎么做???