Use the conditional aggregation as follows:
select count(case when have_new_book = 'yes' then 1 end) / count(*) from your_Table
1.4m articles
1.4m replys
5 comments
57.0k users