how to mearge

1 view
Skip to first unread message

Vinay Patel

unread,
Dec 19, 2006, 6:30:46 AM12/19/06
to SQL Server
hey all

i have one big problem

i want to select data of 2 column but out put shoul come as one column
how to do this?

any one have idea?

Thanks in Advance

Vinay Patel

unread,
Dec 19, 2006, 6:34:24 AM12/19/06
to SQL Server
i mean to say as follow

if i have 2 colume like [fname] and [lname] then out put shoud be
[name] column

means
[fname] [lname]
vinay patel


then

[name]
vinay patel

Fábio Pinheiro

unread,
Dec 19, 2006, 6:46:39 AM12/19/06
to SQL-S...@googlegroups.com
try this

select fname+' '+lname as name from yourtable

Vinay Patel escreveu:

jun

unread,
Dec 19, 2006, 6:51:11 AM12/19/06
to SQL-S...@googlegroups.com
I Agree Fábio Pinheiro


 
2006/12/19, Fábio Pinheiro <fcpin...@gmail.com>:

Vinay Patel

unread,
Dec 21, 2006, 6:40:07 AM12/21/06
to SQL Server
thans a lot Fábio Pinheiro

Reply all
Reply to author
Forward
0 new messages