Search posts...
select count(case when address is not null then o.id end)*100.00/count(o.id) percent_shipable from orders o join customers c on o.cust_id = c.id;
silver