I have a table named "comment", like bellow :
c_id | c_action | r_c_id
-----------------------------
1 | post | NULL
2 | post | NULL
3 | post | NULL
4 | post | NULL
5 | reply | 1
6 | reply | 1
7 | reply | 3
8 | reply | 3
9 | reply | 3
10 | reply | 4
-----------------------------------
I want to all 'post' result with a extra column replies, where in replies column
count all reply where c_id = r_c_id, something like bellow:
c_id | c_action | r_c_id | replies
-----------------------------------
1 | post | NULL | 2
2 | post | NULL | 0
3 | post | NULL | 4
4 | post | NULL | 1