Click here to Skip to main content
15,887,683 members
Home / Discussions / Database
   

Database

 
AnswerRe: Write SQL that will remove PK and set it to another column Pin
Harini N K15-Mar-07 19:04
Harini N K15-Mar-07 19:04 
QuestionChange schema, without destroying the data Pin
steve_rm15-Mar-07 18:13
steve_rm15-Mar-07 18:13 
AnswerRe: Change schema, without destroying the data Pin
Mark J. Miller19-Mar-07 5:53
Mark J. Miller19-Mar-07 5:53 
Questionthe database has been placed in state by user "Admin" Pin
charleslau285515-Mar-07 15:39
charleslau285515-Mar-07 15:39 
QuestionCreating a SqlDbType.SmallDateTime parameter Pin
digsy_15-Mar-07 8:08
digsy_15-Mar-07 8:08 
AnswerRe: Creating a SqlDbType.SmallDateTime parameter Pin
Marcus J. Smith15-Mar-07 9:35
professionalMarcus J. Smith15-Mar-07 9:35 
Questionerror of duplicate PK in subscriber database Pin
Rocky#15-Mar-07 6:14
Rocky#15-Mar-07 6:14 
QuestionAdd Multiple ColumnValue to a SingleColumn Pin
Sarfaraj Ahmed15-Mar-07 3:47
Sarfaraj Ahmed15-Mar-07 3:47 
Hello EveryBody
I got 2 Table Customer and Order

Customer Table got two column CustomerID, CustomerName
Order Table got Two Column OrderID, ProductID

CustomerTable:
CustomerID CustomerName
101 James
102 Andy
103 Bryan

OrderTable:
OrderID ProductID CustomerID
1001 10001 101
1002 10002 101
1003 10003 101
1004 10004 102
1005 10005 102
1006 10006 103

I want the output as below
CustomerID CustomerName OrderID ProductID
101 James 1001,1002,1003 10001,10002,10003
102 Andy 1004,1004 10004,10005
103 Bryan 1006 10006

Please help me.
Thanks

Sarfarj Ahmed

AnswerRe: Add Multiple ColumnValue to a SingleColumn Pin
Marcus J. Smith15-Mar-07 4:26
professionalMarcus J. Smith15-Mar-07 4:26 
GeneralRe: Add Multiple ColumnValue to a SingleColumn Pin
Sarfaraj Ahmed15-Mar-07 4:47
Sarfaraj Ahmed15-Mar-07 4:47 
GeneralRe: Add Multiple ColumnValue to a SingleColumn Pin
Marcus J. Smith15-Mar-07 5:16
professionalMarcus J. Smith15-Mar-07 5:16 
GeneralRe: Add Multiple ColumnValue to a SingleColumn Pin
Sarfaraj Ahmed15-Mar-07 5:25
Sarfaraj Ahmed15-Mar-07 5:25 
GeneralRe: Add Multiple ColumnValue to a SingleColumn Pin
Marcus J. Smith15-Mar-07 5:31
professionalMarcus J. Smith15-Mar-07 5:31 
Questionsql server 2000 millisecond issue Pin
nickjoe9015-Mar-07 2:41
nickjoe9015-Mar-07 2:41 
AnswerRe: sql server 2000 millisecond issue Pin
Pete O'Hanlon16-Mar-07 2:15
mvePete O'Hanlon16-Mar-07 2:15 
Questiona loop that increments a value in the selection clause? Pin
Red_Wizard_Shot_The_Food15-Mar-07 2:30
Red_Wizard_Shot_The_Food15-Mar-07 2:30 
AnswerRe: a loop that increments a value in the selection clause? Pin
Marcus J. Smith15-Mar-07 3:00
professionalMarcus J. Smith15-Mar-07 3:00 
AnswerRe: a loop that increments a value in the selection clause? Pin
andyharman15-Mar-07 5:49
professionalandyharman15-Mar-07 5:49 
GeneralRe: a loop that increments a value in the selection clause? Pin
Marcus J. Smith15-Mar-07 6:10
professionalMarcus J. Smith15-Mar-07 6:10 
GeneralRe: Connecting SQL Server Express 2005 to remote database file Pin
BRShroyer15-Mar-07 2:27
BRShroyer15-Mar-07 2:27 
GeneralRe: Connecting SQL Server Express 2005 to remote database file Pin
Colin Angus Mackay15-Mar-07 5:33
Colin Angus Mackay15-Mar-07 5:33 
QuestionEnterprise Library Data access application block 2.0 Pin
saltcode15-Mar-07 1:36
professionalsaltcode15-Mar-07 1:36 
Questionhow can i store jpg files in sql or oracle (blob) Pin
Member 392135215-Mar-07 1:22
Member 392135215-Mar-07 1:22 
AnswerRe: how can i store jpg files in sql or oracle (blob) Pin
coolestCoder15-Mar-07 2:16
coolestCoder15-Mar-07 2:16 
AnswerRe: how can i store jpg files in sql or oracle (blob) Pin
Rocky#15-Mar-07 6:18
Rocky#15-Mar-07 6:18 

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.