Menu
easyPanasonic · mathGlobal · hiring in Asia

Profit margin per product

For each product, compute the profit margin as a percentage of the selling price:

(unit_price − unit_cost) / unit_price × 100

Return product and margin_pct, rounded to 1 decimal place.

Schema

products
idINT
productTEXT
unit_costNUMERIC
unit_priceNUMERIC

Example input

products
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.