1
I have a booking table that has ID, ORIGIN (site, app or null) I want to know the percentage of reservations made by app and website,
select count(id) from booking where origin = 'app' / select count(id) from booking where origin is not null * 100;
how do I make this calculation in Mysql?
Possible duplicate of SQL - Calculate percentage in the same select
– rbz