Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Trim a field in In-DB

AJ-CH
8 - Asteroid

Hello Friends, 

 

I am looking for solution to Trim the first 2 characters of a V_String Field in In-Database.

 

Thanks for help in Advance!!

3 REPLIES 3
jdunkerley79
ACE Emeritus
ACE Emeritus

Depends on the database server you are connected to unfortunately.

 

Oracle uses SubStr([Field],3) and SQL Server uses SubString([Field],3, LEN([Field])-2)

 

See http://www.sqlines.com/oracle/functions/substr

 

AJ-CH
8 - Asteroid

My Bad, I didn't explain my question correctly,. I am looking for solution to get only first 2 characters from a v_string field. 

MarqueeCrew
20 - Arcturus
20 - Arcturus

left(field,2) should likely work in your SQL.

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels