Re: how to generate SQL SELECT pivot table string

2005-02-04 Thread McBooCzech
Tahnks a lot. Michalels sequence works flawlessly. And it is really elegant :) John Machin wrote: >A few quick silly questions: >Have you read the Python tutorial? >Do you read this newsgroup (other than answers to your own questions)? >Could you have done this yourself in a language other than Py

Re: how to generate SQL SELECT pivot table string

2005-02-03 Thread John Machin
McBooCzech wrote: > Hallo all, > > I am trying to generate SQL SELECT command which will return pivot > table. The number of column in the pivot table depends on the data > stored in the database. It means I do not know in advance how many > columns the pivot table will have. > > For example I will

Re: how to generate SQL SELECT pivot table string

2005-02-03 Thread McBooCzech
Thanks for your comment but I am NOT looking for the answer to the question: "Which SQL command will return requested pivot table"(anyway it will be an OFF TOPIC question here). My SQL SELECT statement works fine with Firebird 1.5! What I am looking how to generate this SELECT using Python. Anyway

Re: how to generate SQL SELECT pivot table string

2005-02-03 Thread Michael Spencer
McBooCzech wrote: Hallo all, I am trying to generate SQL SELECT command which will return pivot table. The number of column in the pivot table depends on the data stored in the database. It means I do not know in advance how many columns the pivot table will have. For example I will test the databa

Re: how to generate SQL SELECT pivot table string

2005-02-03 Thread [EMAIL PROTECTED]
McBooCzech wrote: > Hallo all, > > I am trying to generate SQL SELECT command which will return pivot > table. The number of column in the pivot table depends on the data > stored in the database. It means I do not know in advance how many > columns the pivot table will have. > > For example I will

how to generate SQL SELECT pivot table string

2005-02-03 Thread McBooCzech
Hallo all, I am trying to generate SQL SELECT command which will return pivot table. The number of column in the pivot table depends on the data stored in the database. It means I do not know in advance how many columns the pivot table will have. For example I will test the database as following: