I have a table and i need to present the output in the following fashion.
tb_a: col1 | reg_id | rsp_ind
Count of rows with rsp_ind = 0
SELECT COUNT(CASE WHEN rsp_ind = 0 then 1 ELSE NULL END) as "New", COUNT(CASE WHEN rsp_ind = 1 then 1 ELSE NULL END) as "Accepted" from tb_a
You can see the output for this request HERE