Transpose / Crosstab

2007-12-10 Thread Volker Duetsch
Hello, I've found some documentation on transposing tables, generating crosstabs (e.g. http://dev.mysql.com/tech-resources/articles/wizard/print_version.html). To be honest I've to admit that I tried to figure out how it works, but I'm not able to adopt it to my problem. My starting table looks

Re: Transpose

2007-04-29 Thread Baron Schwartz
Hi, Some Body wrote: Hi all, I have a situation where the data in a table has to be transposed. I have a table having columns id, a_id, a1, a2, a3, a4, ..., an In the query I need a result similar to a_id a_id a_id 2001 2002 2003 a1 1 2 1 a2 1 5 6 a3 2

Transpose

2007-04-29 Thread Some Body
Hi all, I have a situation where the data in a table has to be transposed. I have a table having columns id, a_id, a1, a2, a3, a4, ..., an In the query I need a result similar to a_id a_id a_id 2001 2002 2003 a1 1 2 1 a2 1 5 6 a3 2 7 2 a4 3 9

RE: How does one transpose a group of columns into rows?

2007-03-17 Thread Tim Lucia
rom x x1 where x.id=x1.id and display='os') os, (select value from x x2 where x.id=x2.id and display='ver') ver from x Tim ____ From: Jacob, Raymond A Jr [mailto:[EMAIL PROTECTED] Sent: Saturday, March 17, 2007 12:05 AM To: mysql@lists.mysql.com Subject:

How does one transpose a group of columns into rows?

2007-03-16 Thread Jacob, Raymond A Jr
I have a table: Id |path1 | display| value 1 | ostype | os|windows 1 | ostype | ver |NT4 2 | ostype | os | linux 2 | ostype | ver | RHEL 5.4 That I would like to tranform into Id | os| ver 1 |windows | NT4 2| linux |RHEL 5.4 Thank you, Raymond smime.p7s

Crosstab/Transpose Query Help

2004-09-22 Thread Jeff Burgoon
I'm trying to perform a query where I transpose cell values from a table into column names with totals. For example, I have the following table and I'd like to produce the view at the bottom: SitePartQuantity Site APart 1