Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 21st, 2007, 10:57 AM
Registered User
 
Join Date: Jan 2007
Location: eagan, mn, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Query Problem

My problem is

CREATE TABLE Test
(ID INT,
 lang1 char(3));

INSERT INTO VALUES(1, 'ENG')
INSERT INTO VALUES(1, 'JPN')
INSERT INTO VALUES(1, 'PRB')
INSERT INTO VALUES(2, 'SPC')
INSERT INTO VALUES(2, 'ENG')
INSERT INTO VALUES(3, 'JPN')
INSERT INTO VALUES(3, 'PRB')
INSERT INTO VALUES(3, 'SPC')

I want output liks this

ID Lang1
1 ENG,JPN,PRB
2 SPC,ENG
3 JPN,PRB,SPC

Please help

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old September 26th, 2007, 06:19 AM
Friend of Wrox
 
Join Date: May 2006
Location: Helsingborg, , Sweden.
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Query problem skarthikk SQL Server 2000 1 August 7th, 2006 02:20 AM
SQL query problem - Need Help Settt Biztalk 0 September 12th, 2005 09:32 AM
Problem in SQL query liorlankri ADO.NET 1 November 8th, 2004 12:37 AM
sql query problem Baby_programmer ASP.NET 1.0 and 1.1 Basics 1 October 14th, 2004 07:13 AM
Sql Query Problem mateenmohd SQL Language 0 January 13th, 2004 05:31 AM



All times are GMT -4. The time now is 11:08 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.