Click to See Complete Forum and Search --> : Calculating Fee


AlaNio
10-14-2008, 05:59 AM
I need an sql statement that checks to see if certain fields are blank and if not then do something else.
For example i have a field named comission and a field named fixedfee. Neither of which will both have values at the same time. If the record has a commission, then multiply that by the price, if it does not then use the fixed fee. Then return the sum of all these.

chazzy
10-14-2008, 06:30 AM
sounds more like you need a stored procedure and/or a timed job. does your dbms support either of those?