Click here to Skip to main content
15,913,100 members
Home / Discussions / Database
   

Database

 
AnswerRe: Updating Table Pin
Luc Pattyn28-Jan-10 15:41
sitebuilderLuc Pattyn28-Jan-10 15:41 
GeneralRe: Updating Table Pin
vhassan28-Jan-10 15:56
vhassan28-Jan-10 15:56 
GeneralRe: Updating Table Pin
Avi Berger28-Jan-10 16:12
Avi Berger28-Jan-10 16:12 
GeneralRe: Updating Table Pin
vhassan28-Jan-10 19:55
vhassan28-Jan-10 19:55 
AnswerRe: Updating Table Pin
Avi Berger28-Jan-10 15:48
Avi Berger28-Jan-10 15:48 
GeneralRe: Updating Table Pin
vhassan28-Jan-10 16:02
vhassan28-Jan-10 16:02 
GeneralRe: Updating Table Pin
Avi Berger28-Jan-10 16:17
Avi Berger28-Jan-10 16:17 
QuestionT-SQL - Using a resultset from a Stored Procedure Pin
Steven J Jowett28-Jan-10 5:20
Steven J Jowett28-Jan-10 5:20 
I have a stored procedure that creates Pivot/cross tab resultset. for example my data is as follows :

Id, Date,       Value
1,  01/12/2009, 100
1,  02/12/2009, 110
2,  01/12/2009, 50
2,  02/12/2009, 55
2,  03/12/2009, 75
3,  02/12/2009, 100


The Stored Procedure would result a resultset as follows :-

Id, 01/12/2009, 02/12,2009, 03/12/2009
1,  100,        110,          0 
2,   50,         55,         75
3,    0,        100,          o


So far so good.

Now I need to join the results of the stored procedure to a another table joined by Id, either in a View or another Stored Procedure. Can I do this, keeping in mind that the number of columns and the names of the colums are variable. The only constant is the Id column name.

Thanks

Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.

AnswerRe: T-SQL - Using a resultset from a Stored Procedure Pin
Mycroft Holmes28-Jan-10 11:59
professionalMycroft Holmes28-Jan-10 11:59 
GeneralRe: T-SQL - Using a resultset from a Stored Procedure Pin
Steven J Jowett28-Jan-10 21:30
Steven J Jowett28-Jan-10 21:30 
AnswerRe: T-SQL - Using a resultset from a Stored Procedure Pin
i.j.russell30-Jan-10 22:52
i.j.russell30-Jan-10 22:52 
QuestionDecrypt Stored Procedure Pin
Isaac Gordon27-Jan-10 21:21
Isaac Gordon27-Jan-10 21:21 
AnswerRe: Decrypt Stored Procedure Pin
Pranay Rana27-Jan-10 22:03
professionalPranay Rana27-Jan-10 22:03 
QuestionUrgent : "There is not enough memeory to run this program" error in Business Objects XI R2 Pin
CodalcoholicNBrainy27-Jan-10 20:10
CodalcoholicNBrainy27-Jan-10 20:10 
AnswerRe: Urgent : "There is not enough memeory to run this program" error in Business Objects XI R2 Pin
Tim Carmichael28-Jan-10 4:44
Tim Carmichael28-Jan-10 4:44 
QuestionHandling SQL Server Multi User Pin
Kevin Marois27-Jan-10 6:32
professionalKevin Marois27-Jan-10 6:32 
AnswerRe: Handling SQL Server Multi User Pin
Mycroft Holmes27-Jan-10 14:00
professionalMycroft Holmes27-Jan-10 14:00 
QuestionHow to script jobs Pin
cdpace27-Jan-10 2:08
cdpace27-Jan-10 2:08 
AnswerRe: How to script jobs Pin
WoutL27-Jan-10 3:19
WoutL27-Jan-10 3:19 
QuestionQuery to find Unique Records Pin
sjs4u26-Jan-10 22:15
sjs4u26-Jan-10 22:15 
AnswerRe: Query to find Unique Records Pin
Pranay Rana26-Jan-10 22:55
professionalPranay Rana26-Jan-10 22:55 
GeneralRe: Query to find Unique Records Pin
sjs4u26-Jan-10 23:13
sjs4u26-Jan-10 23:13 
GeneralRe: Query to find Unique Records Pin
Pranay Rana27-Jan-10 18:15
professionalPranay Rana27-Jan-10 18:15 
QuestionSQL Query to update col_1 with col_2 value Pin
xcavin26-Jan-10 9:27
xcavin26-Jan-10 9:27 
AnswerRe: SQL Query to update col_1 with col_2 value Pin
xcavin26-Jan-10 10:07
xcavin26-Jan-10 10:07 

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.