Avatar of Amanda Walshaw
Amanda WalshawFlag for Australia asked on

query modification

I am running the following script, I need to express the b.account code result

180012003110050,  I need to show 100 in its own column, the 100 is 5 to the left at the end of the b.account result, how do you express that in the query below and put the 100 result in a separate column?

I have attached the query
query.txt
Microsoft SQL ServerMicrosoft SQL Server 2008

Avatar of undefined
Last Comment
Amanda Walshaw

8/22/2022 - Mon
SOLUTION
Jim Horn

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
plusone3055

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
plusone3055

jimhorn
I think he just wants the substring of that number
Jim Horn

Let's let the OP define his own requirements.
plusone3055

of course
I was just taking a guess :)

quite an impressive resume btw
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Jim Horn

Thanks.

I'm not trying to dog you, but I notice a lot of questions where the asker either doesn't understand their own requirements, or doesn't state them fully / clearly in the question, so I've found it useful to flush it out of 'em first.
plusone3055

wasn't even thinking that
no worries. It's all about lending a hand to the poster
ASKER
Amanda Walshaw

correct substring syntax was required thanks.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.