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 |
|
vidhya
Posting Yak Master
108 Posts |
Posted - 2008-07-17 : 07:49:49
|
| Hi,if the column contains the values as Grand xxGrand DTOGrand PBTCelioMarki like to get the result asGrandCelioMarkwat to do? |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2008-07-17 : 07:50:47
|
| so just the 1st word? i.e. everything before a spaceEm |
 |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2008-07-17 : 07:54:03
|
| select left(urColumn,charindex(' ',urColumn + ' ',1))Em |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-07-17 : 08:36:57
|
| select distinct rtrim(left(urColumn,charindex(' ',urColumn + ' ',1))) from urtableMadhivananFailing to plan is Planning to fail |
 |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
|
|
|
|
|