Here's a formula to calculate the discount percentage based on having the quantity in column A of your Excel Spreadsheet.
=1 - IF(A3>5,0.5,CHOOSE(A3,1,0.75,0.7,0.6,0.5))
Then you can calulate the discountPrice with a formula like this. based on the discount percent formula in column C
=B3*1-C3
You can also use the formula with some modifications to bring in the values directly from your SQL Query String however you have it configured.
One thing to note you are better to use a formula and show the discount percent and discount price in the displayed form/report/spreadsheet and avoid doig the calculations and saving the values in your database tables. This will allow you more flexibility in maintaining the database and adapting to changes in requirements. Say you want to yous a 20% discount instead of a 25%, you just change the formula and calulate off the base value of the price when you run the query.