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.
Author |
Topic |
KenA
Starting Member
28 Posts |
Posted - 2006-10-04 : 15:59:36
|
Hi. Suppose I have a table where the description column has a pair value string separated by a comma:[Descrition Column]DEF LEPPARD , Historia / In The Round In Your FaceDEF LEPPARD , Live In Japan, Euphoria Tour 1999DEF LEPPARD , Live In Toronto 1983DEF LEPPARD , Visualize / Video Archive...etcHow can I select just 'DEF LEPPARD' or just the right side of the comma?»»» KenA |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-10-04 : 16:11:48
|
SELECT LEFT(YourColumn, PATINDEX('%,%', YourColumn) - 1)FROM YourTableTara Kizer |
 |
|
KenA
Starting Member
28 Posts |
|
|
|
|