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
SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of plusone3055
plusone3055
Flag of United States of America image

jimhorn
I think he just wants the substring of that number
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Let's let the OP define his own requirements.
Avatar of plusone3055
plusone3055
Flag of United States of America image

of course
I was just taking a guess :)

quite an impressive resume btw
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

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.
Avatar of plusone3055
plusone3055
Flag of United States of America image

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

ASKER

correct substring syntax was required thanks.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo