Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Select only blacket value

Author  Topic 

micnie_2020
Posting Yak Master

232 Posts

Posted - 2013-07-17 : 11:00:59
Hi All,

How am i going to select only (xxxx) value?

Field Description value, e.g.:
User Testing (UAT) => Output needed UAT
Unit Testing (UT) => Output needed UT
System Integration (SIT) => Output needed SIT



Please advise.

Thank you.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-17 : 11:14:11
[code]
SELECT REPLACE(STUFF(Field,1,CHARINDEX('(',Field),''),')','') FROM table
[/code]

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -