MySQL Forums
Forum List  »  InnoDB

Make report by making columns to rows?
Posted by: Morten NP
Date: February 23, 2009 04:01PM

I have a material part where I have a pre calculated cost in one table and actual cost in another table. Then I can compare these figures by making a normal query. The problem is though that I will get a result like this:

Material number ; Actual wage ; precalc wage ; actual mat ; precalc mat
XXXX2212 ; 10 ; 25 ; 10 ; 90

With more columns this will be difficult to get a quick overview of. Therefore I would like to convert it to something like:

Material number XXXX2212
---------- Pre calc ; actual cost
Wage ; 25 ; 10
Mat ; 90 ; 10

Is that possible and how do I do it?

Options: ReplyQuote


Subject
Views
Written By
Posted
Make report by making columns to rows?
3501
February 23, 2009 04:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.