Use the conditional aggregation as follows:
select count(case when have_new_book = 'yes' then 1 end) / count(*) from your_Table
2.1m questions
2.1m answers
60 comments
57.0k users