On your own: the margin report

Your task In the code box, write a CREATE VIEW margins with name, category, price and margin_pct ((price - cost) * 100.0 / price, rounded to 1 place). Then show name and margin_pct from margins where margin_pct is below 45, lowest first. Then press Run my code.

Getting the editor ready