I\'m trying to select different prices of a product based on the quantity that user chooses.
This is the query I\'m working on (it has a syntax error):
As per Nawfal's answer, IF statements need to be in a procedure. I found this post that shows a brilliant example of using your script in a procedure while still developing and testing. Basically, you create, call then drop the procedure: