Reply to Turning Rows into Columns

Your name:

Reply:


Posted by markjerz@googlemail.com on 01/23/07 16:21

Say I have a table of data containing something like

Region | County | Year | Month | Value

for some sort of value (int). I want to re-arrange this data so that it
comes out like this:

Region | County | Year | J | F | M | A | M | J | J | A | S | O | N | D

where the letters are obviously the months in order. How would I go
about this/what's the best way. I attempted to use 12 INNER JOINS on
the table itself, sadly that failed miserably. Also, this doesn't seem
very efficient?

Before you ask I got rid of my original code (gave up!)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация