sql server - Sql Query for Commissions (Decision?) Table -
SQL 2008
I have a commission table that looks like this:
com% | Proststartrange | Profitandrange 0.01 | 0.00 100.9 9 0.02 | 101 | 500.9 9 0.03 501 | 1000.99
and so on ...
Actually I want to create a query that gives useful command% based on the value. I would like to inline this and if possible in a possible defined function I would calculate a large set.
Select your apple, where there is a profit compared to your bag. Promotitartranz and yourtable .ProfitEndRange
Comments
Post a Comment