HELLO!
I have two tables : product , tax
Product'fields:
id amount Tax
1 ; 150 ; ?
2 ; 300 ; ?
TAX fields : Range_start ; Range_end ; TAX_Amount
start end Tax_Amount
100 ; 200 ; 10
201 ; 300 ; 25
301 ; 400 ; 30
For amount of 150 tax is 10
for amount of 201 tax is 25
help to write a trigger or stored procedure to select and insert tax_amount in product table when amount is inserted .
Thanks.