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 2000 Forums
 SQL Server Development (2000)
 reconstructing recordset

Author  Topic 

ashangel
Starting Member

3 Posts

Posted - 2002-04-30 : 01:19:25
how do i reconstruct multiple(two/more) recordset.fields into a single field and add hardcoded text for the result..
eg:
tb_user
firstname lastname
--------------------
george bush
osama laden
..
taking cue from original sql statement "select firstname,lastname from tb_user" i would like to see instead of getting rs.fields(0),rs.fields(1) manually.

1-i want to do for each rs, rs.fields(0) and get something like
"george so bush"
"osama so laden"
from a single rs.fields column.
2-plus with "so" hardcoded in between (so - stands for son of)

thanks in advance



byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2002-04-30 : 01:30:06

Select FirstName + ' so ' + LastName as Name from tb_User



DavidM

Tomorrow is the same day as Today was the day before.
Go to Top of Page

ashangel
Starting Member

3 Posts

Posted - 2002-04-30 : 01:40:09
thanks for the reply.


Go to Top of Page
   

- Advertisement -