SELECT product_name, price, IF(product_type = 'electronic', price * 0.9, price) AS discounted_price FROM sales;