Question: Given a dataset with product _ id , selling _ price and cost _ price, create two columns: profit _ loss: whether the transaction was

Given a dataset with product_id, selling_price and cost_price, create two columns: profit_loss: whether the transaction was profit or loss value_of_pl: what was the profit or less incurred?
Tables Schema as Below:
product_prices
columnName dataType
product_id INT
selling_price DECIMAL(10,2)
cost_price DECIMAL(10,2)
profit_loss VARCHAR(10)
value_of_pl DECIMAL(10,2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!