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 |
|
vmurali
Yak Posting Veteran
88 Posts |
Posted - 2007-02-08 : 04:38:47
|
| Hi, Can anybody tell me how to split an column value. I have a table with rows number, name.Sno Name 1 Varun Kumar 2 Abraham DavidI need to get the value as Sno Fname Lname 1 Varun Kumar |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
vmurali
Yak Posting Veteran
88 Posts |
Posted - 2007-02-08 : 04:54:50
|
| Thanks for your quick reply. Is there any method we can get with using inbuild functions |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-02-08 : 04:56:48
|
| Yes, the PARSENAME function, PATINDEX function, CHARINDEX function.Peter LarssonHelsingborg, Sweden |
 |
|
|
vmurali
Yak Posting Veteran
88 Posts |
Posted - 2007-02-08 : 05:54:56
|
| how do we split "Ronald Francis Sebastian" using System Defined Function |
 |
|
|
vmurali
Yak Posting Veteran
88 Posts |
Posted - 2007-02-08 : 05:56:04
|
| how do we split "Ronald Francis Sebastian" using System Defined Function as 'Ronald' 'Francis' 'Sebastian' |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-02-08 : 05:58:14
|
| [code]declare @a varchar(50)set @a = 'Ronald Francis Sebastian'select parsename(replace(@a, ' ', '.'), 3), parsename(replace(@a, ' ', '.'), 2), parsename(replace(@a, ' ', '.'), 1)[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|
|
|