This is my table.

What I need to do is create a CASE WHEN UPDATE Query to update
-
CurrentCredit +1 if 1-15
-
CurrentCredit +2 if 16-30
-
CurrentCredit x.10 and round up if >=31
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the example
SQL Fiddle DEMO
Somethign like
Also, remeber that if CurrentCredit is a
FLOAT, and not anINTyou might want to try something likeEDIT
For the corrected request (>= 31 CurrentCredit + CEILING(CurrentCredit * 0.1)) have a look at using CEILING
SQL Fiddle DEMO