SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 select one values into multiple column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

papershop
Starting Member

Indonesia
27 Posts

Posted - 07/11/2013 :  21:16:57  Show Profile  Reply with Quote
Dear All

i want to make query for one value into multiple column
example

studentname

roland
emil
koryokun
ekek
sora
jaheanget
sakurashi
taka
tankumi

and show it

roland
emil sora taka
koryokun jaheanget tankumi
ekek sakurashi

can any one give me advice for this?

@papershop

khtan
In (Som, Ni, Yak)

Singapore
17584 Posts

Posted - 07/12/2013 :  00:24:53  Show Profile  Reply with Quote
how do you get from
this
quote:
roland
emil
koryokun
ekek
sora
jaheanget
sakurashi
taka
tankumi


to that
quote:
roland
emil sora taka
koryokun jaheanget tankumi
ekek sakurashi


what is the logic ?


KH
Time is always against us

Go to Top of Page

Lamprey
Flowing Fount of Yak Knowledge

4604 Posts

Posted - 07/12/2013 :  14:41:49  Show Profile  Reply with Quote
quote:
Originally posted by papershop


can any one give me advice for this?

My advice, is to read these links on how to post your question so we can actually help you:

http://www.sqlservercentral.com/articles/Best+Practices/61537/
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Edited by - Lamprey on 07/12/2013 14:42:17
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000