Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
QuestionSSIS Programme Flatfile source and DB destination Pin
NK71-Feb-07 22:42
NK71-Feb-07 22:42 
QuestionSQL 2005 Express Pin
Illegal Operation1-Feb-07 21:43
Illegal Operation1-Feb-07 21:43 
AnswerRe: SQL 2005 Express Pin
andyharman1-Feb-07 22:31
professionalandyharman1-Feb-07 22:31 
QuestionHelp : I have a one corore or more Rows in SQL Server Table on Client PC ..? Pin
PavanPareta1-Feb-07 20:22
PavanPareta1-Feb-07 20:22 
QuestionNoise words issue in full text seach Sql server 2000 Pin
vivek_r1-Feb-07 19:19
vivek_r1-Feb-07 19:19 
QuestionHow to Update a record Pin
andy381-Feb-07 14:32
andy381-Feb-07 14:32 
AnswerRe: How to Update a record Pin
Christian Graus1-Feb-07 15:00
protectorChristian Graus1-Feb-07 15:00 
QuestionSQL 2005 Cross Tab Query? Pin
jareddavies1-Feb-07 12:11
jareddavies1-Feb-07 12:11 
I have a question in regards to dynamically creating a cross tab query in sql server 2005. I have a table that contains the attributes of a product see below and I want to format is so that the outputs the product attributes to different columns with the corresponding values. I am using sql Server 2005 and have seen examples with using PIVOT function which does similar to what I want but they all the examples seem to use in circumstances where it is required to aggregate values in a column eg, sum a sales figure.

I could create a separate query for each attribute of a product and then use a join to get my result but this is not dynamic, i.e. if I add a new attribute I would have to change my query.

Can anyone help?



Before

Product Attribute AttributeValue

Apple Color Red
Celery Color Green
Banana Color Yellow
Apple Type Fruit
Celery Type Vege

After

Product Color Type

Apple Red Fruit
Celery Green Vege
Banana Yellow
Questionerror in the output Pin
aslamshaik25109781-Feb-07 9:13
aslamshaik25109781-Feb-07 9:13 
AnswerRe: error in the output Pin
Christian Graus1-Feb-07 15:18
protectorChristian Graus1-Feb-07 15:18 
QuestionQuerying multiple subclassed tables Pin
Keith Andersch1-Feb-07 6:46
Keith Andersch1-Feb-07 6:46 
AnswerRe: Querying multiple subclassed tables Pin
andyharman1-Feb-07 6:54
professionalandyharman1-Feb-07 6:54 
GeneralRe: Querying multiple subclassed tables Pin
Keith Andersch1-Feb-07 9:36
Keith Andersch1-Feb-07 9:36 
GeneralRe: Querying multiple subclassed tables Pin
andyharman1-Feb-07 22:27
professionalandyharman1-Feb-07 22:27 
GeneralRe: Querying multiple subclassed tables Pin
Keith Andersch2-Feb-07 9:31
Keith Andersch2-Feb-07 9:31 
Questionopenxml question [modified] Pin
El'Cachubrey1-Feb-07 3:49
El'Cachubrey1-Feb-07 3:49 
QuestionCalling an SP with Param... Pin
Astricks1-Feb-07 3:45
Astricks1-Feb-07 3:45 
AnswerRe: Calling an SP with Param... Pin
Pete O'Hanlon1-Feb-07 4:22
mvePete O'Hanlon1-Feb-07 4:22 
QuestionSelect TOP n in DataSet Pin
Vasudevan Deepak Kumar1-Feb-07 2:23
Vasudevan Deepak Kumar1-Feb-07 2:23 
AnswerRe: Select TOP n in DataSet Pin
deGupta1-Feb-07 3:00
deGupta1-Feb-07 3:00 
GeneralRe: Select TOP n in DataSet Pin
Vasudevan Deepak Kumar1-Feb-07 4:15
Vasudevan Deepak Kumar1-Feb-07 4:15 
QuestionPassing more parameters to stored procedure Pin
Siva Myneni1-Feb-07 2:22
Siva Myneni1-Feb-07 2:22 
AnswerRe: Passing more parameters to stored procedure Pin
andyharman1-Feb-07 4:39
professionalandyharman1-Feb-07 4:39 
GeneralRe: Passing more parameters to stored procedure Pin
Siva Myneni1-Feb-07 18:13
Siva Myneni1-Feb-07 18:13 
AnswerRe: Passing more parameters to stored procedure Pin
Elina Blank2-Feb-07 3:10
sitebuilderElina Blank2-Feb-07 3:10 

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.