Re: How do you change rows to columns?

2005-08-25 Thread Gleb Paharenko
Hello. Similar question was asked recently. See: http://lists.mysql.com/mysql/187940 Mark Ahlstrom <[EMAIL PROTECTED]> wrote: > Would anyone have a good idea on how to change rows to columns? I'm > creating a report where I have counts per hour. I can produce > +--+---+ > |

RE: How do you change rows to columns?

2005-08-25 Thread Jay Blanchard
[snip] Would anyone have a good idea on how to change rows to columns? I'm creating a report where I have counts per hour. I can produce +--+---+ | hour | count | +--+---+ |0 | 1 | |1 | 0 | |2 | 1 | |3 | 0 | |4 | 0 | And then tack on an add