select b.booking_type as status,
sum(case when a.chargeable = 'Yes' then a.cost else 0 end) chargeable,
sum(case when a.chargeable = 'No' then a.cost else 0 end) nonchargeable,
sum(a.cost) as cost
from BOOKING b, ADMIN a
where b.booking_id = a.booking_id
and a.approved = "Approved"
and a.delivery_date between '2010-07-01' and '2010-07-31'
group by booking_type