I have a table like this:

I need to add a character “A” incremented number of times to the end of stor_Id if qty <=90.
So after returning a query I should get Something like:
Stor_Id
7131
7066
7067a
8042aa
7896aaa
6380aaaa
Thanks!
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.
Assuming Rank is also an incrementing number. If not then I’m not sure how to have a number increment for each row your operating on.
Something like this should work (not tested, but should be almost there)