I would like that data as in table below:
Failed | Passed
1         1
Instead having this column header names i would like to change it to, and is this possible?
Status | Count
Failed    1
Passed    1
I would like that data as in table below:
Failed | Passed
1         1
Instead having this column header names i would like to change it to, and is this possible?
Status | Count
Failed    1
Passed    1
Instead of COUNT use SUM to sum over the values you need, like the folowing
SELECT SUM(status='Failed') as failed, SUM(status='Passed') 
FROM table_with_status
This works because when you write status='Failed' it returns 1 if status is failed, and otherwise it returns zero
