Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
if commission is calculated based on 14.790% of standard cost,extract product item and calculate the margin if standard cost is increased or decreased as follow for each product colour as follows
Black+22%
Red -12%
Silver +15%
Multi +5%
White (2) times original price divided by the square root of the margin price for other colour remain the same.

What I have tried:

I have not really tried anything on this Question because i do not know where to start from
Posted
Updated 29-Jun-16 22:30pm

Start by writing the mathematical formula for each required calculation, checking for duplicates. Then you just need to write the T_SQL statements to include the formula where necessary, as described at Transact-SQL Reference (Transact-SQL)[^].
 
Share this answer
 
If commission is calculated based on 14.790% of standard cost, extract product item and calculate
the margin if standard cost is increased or decreased for each product colours as follows:

Black +22%, Red - 12%, Silver +15%, Multi +5% White (2) times original price divided by the square root of the
margin price for other colour remain the same
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900