Click here to Skip to main content
15,918,125 members
Home / Discussions / Database
   

Database

 
AnswerRe: Insert Data In Database Pin
himanshu256115-Jun-09 0:03
himanshu256115-Jun-09 0:03 
GeneralRe: Insert Data In Database Pin
InvXeesh15-Jun-09 0:05
InvXeesh15-Jun-09 0:05 
GeneralRe: Insert Data In Database Pin
himanshu256115-Jun-09 1:14
himanshu256115-Jun-09 1:14 
GeneralRe: Insert Data In Database Pin
Aman786Singh15-Jun-09 21:44
Aman786Singh15-Jun-09 21:44 
GeneralRe: Insert Data In Database Pin
himanshu256115-Jun-09 22:32
himanshu256115-Jun-09 22:32 
GeneralEnable TCP/IP and Named pipe in SQL Server 2005 Pin
Isaac Gordon14-Jun-09 21:33
Isaac Gordon14-Jun-09 21:33 
GeneralRe: Enable TCP/IP and Named pipe in SQL Server 2005 Pin
Niladri_Biswas17-Jun-09 20:29
Niladri_Biswas17-Jun-09 20:29 
QuestionHelp to Pivot the Following Table Pin
Vimalsoft(Pty) Ltd14-Jun-09 20:29
professionalVimalsoft(Pty) Ltd14-Jun-09 20:29 
Good Morning All

Recently i posted some Sp that i had a problem with while working on a high volume of Data and someone suggested Pivot in sql . I goggled it and found that it was exactly what i was looking for , but i had a problem on the aggregate site because i wanted to Concatenate the Strings. here is the table structure.

ID              DESCR           CYCLETEMPLATE
====================================
7620	     Campbell P Dr	26
7620	     Campbell P Dr	27
7620	     Campbell P Dr	28
7620	     Campbell P Dr	29
7620            Campbell P Dr	      31
7621	      Jones D Dr	        23
7621	      Jones D Dr	        24
7621	      Jones D Dr	        26
7621	      Jones D Dr	        28
7621	      Jones D Dr	        29
7621	      Jones D Dr	        33
7621	      Jones D Dr 	       34 


i want to Pivot it and it should look like this

ID              DESCR           CYCLETEMPLATE
===============================
7620	Campbell P Dr	26,2728,29,31
7621	Jones D Dr	23,24,26,28,29,33,34


The CycleTemplate will be Concatinated if the Description is the same and the Discription will not be duplicated again. as you can see in the above example. If your solution duplicated the Cycletemplate its ok, i have an efficient way of removing duplicates in a Field level.


Thank you

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: Help to Pivot the Following Table Pin
Mycroft Holmes14-Jun-09 21:18
professionalMycroft Holmes14-Jun-09 21:18 
QuestionBackup database using sql 2005 Express Edition. Pin
ram_panda0914-Jun-09 19:44
ram_panda0914-Jun-09 19:44 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
Mycroft Holmes14-Jun-09 21:12
professionalMycroft Holmes14-Jun-09 21:12 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
Aman786Singh15-Jun-09 1:05
Aman786Singh15-Jun-09 1:05 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
Aman786Singh15-Jun-09 1:06
Aman786Singh15-Jun-09 1:06 
AnswerRe: Backup database using sql 2005 Express Edition. Pin
K030616-Jun-09 1:55
K030616-Jun-09 1:55 
QuestionUnicode Column Alias [modified] Pin
Mustafa Ismail Mustafa14-Jun-09 6:57
Mustafa Ismail Mustafa14-Jun-09 6:57 
AnswerRe: Unicode Column Alias [modified] Pin
Mycroft Holmes14-Jun-09 15:13
professionalMycroft Holmes14-Jun-09 15:13 
GeneralRe: Unicode Column Alias Pin
Mustafa Ismail Mustafa14-Jun-09 23:41
Mustafa Ismail Mustafa14-Jun-09 23:41 
Questioni need help with oracle database! Pin
Eldad_kd14-Jun-09 6:17
Eldad_kd14-Jun-09 6:17 
AnswerRe: i need help with oracle database! Pin
David Mujica15-Jun-09 3:03
David Mujica15-Jun-09 3:03 
QuestionAuditing in Database!! Pin
Sr...Frank13-Jun-09 23:34
Sr...Frank13-Jun-09 23:34 
AnswerRe: Auditing in Database!! Pin
Mycroft Holmes14-Jun-09 15:16
professionalMycroft Holmes14-Jun-09 15:16 
GeneralRe: Auditing in Database!! Pin
Sr...Frank18-Jun-09 7:40
Sr...Frank18-Jun-09 7:40 
AnswerRe: Auditing in Database!! Pin
Niladri_Biswas17-Jun-09 20:51
Niladri_Biswas17-Jun-09 20:51 
GeneralRe: Auditing in Database!! Pin
Sr...Frank18-Jun-09 7:41
Sr...Frank18-Jun-09 7:41 
Question2 tables? Pin
benjamin yap13-Jun-09 7:16
benjamin yap13-Jun-09 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.