I've got this problem
in this table i've registered for each amount the relative discount
Amount   Discount
 500        5%
1000       10%
1200       11%
2100       15%
ecc...
In another table i've got the gross price of the order for example 2000 how i can find the correct discount for this order? In that case 11% because 2100 > 2000 ?
                        
Test data: