Re: Syntax help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Good point.

select Left(column1,charIndex('_',Column1) -1) from
dbo.tbl_test

thanks!

--

/*
Warren Brunk - MCITP,MCTS,MCDBA
www.techintsolutions.com
*/


<jhofmeyr@xxxxxxxxxxxxxx> wrote in message
news:19ea3129-97f2-4a83-9bba-1f382ec854dc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Why are you casting CHARINDEX as INT? Isn't the return value an int
anyway?

J


.