select b.booking_type
, sum(case when a.approved = 'Approved' then 1 else 0 end) approved
, sum(case when a.approved = 'Cancelled' then 1 else 0 end) cancelled
, count(*) total
from BOOKING b, ADMIN a
where b.booking_id = a.booking_id
group by booking_type
|