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 |
|
monday2007
Starting Member
2 Posts |
Posted - 2007-10-24 : 22:50:26
|
| I need some help on the qs belowhow to create sql statements to update the table to output???thx!!tbl_fruit<<<<<inputfruit 1 2 3--------------------------------------apple pear orange null null null---------------------------------------banana peach cherry null null nulltbl_fruit<<<<outputfruit 1 2 3--------------------------------------apple pear orange apple pear orange---------------------------------------banana peach cherry banana peach cherry |
|
|
shallu1_gupta
Constraint Violating Yak Guru
394 Posts |
Posted - 2007-10-25 : 00:28:42
|
| It would be better for us if you explain ur problem clearly. i.e. structure of ur table along with what should be the output required. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-10-25 : 02:01:57
|
| Look for charindex and substring functions in sql server help fileMadhivananFailing to plan is Planning to fail |
 |
|
|
monday2007
Starting Member
2 Posts |
Posted - 2007-10-25 : 09:43:15
|
| tbl_fruit<<<<<inputfruit 1 2 3--------------------------------------apple pear orange null null null---------------------------------------banana peach cherry null null nullthe 1st col is fruitthe 1st cell in the col is "apple pear orange"how can i update the col '1', col'2' and col'3'the result will be:fruit | 1 | 2 | 3-------------------------------------------apple pear orange | applae | pear | orangeiam 1st time to meet this kind of qs, even no idea how to wirte the statement -_-'' |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|