I want this table
Booking table
+----+--------+
| ID | Status |
+----+--------+
| 1 | R |
| 2 | R |
| 3 | C |
| 4 | C |
+----+--------+
To this total number of each
+----------+-----------+
| Reserved | Cancelled |
+----------+-----------+
| 2 | 2 |
+----------+-----------+
So far I got this -
SELECT Status AS Reserves
FROM Booking WHERE Status = 'R' OR Status = 'C'
Output -
+----------+
| reserves |
+----------+
| R |
| C |
| R |
| C |
+----------+