Hi all,
I tried to create a pivot table created from a table in Oracle 10g.
here is the table structure :
CREATE TABLE KOMUNIKA.STOCK_AREA ( PRODUCT_CODE VARCHAR2(20 BYTE) NOT NULL, PRODUCT_NAME VARCHAR2(50 BYTE), AREA_CODE VARCHAR2(20 BYTE), AREA_NAME VARCHAR2(50 BYTE), QUANTITY NUMBER(20,2) )and i need those data displayed as :
Name US Europe Asia SthAm Aust Africa Rest Total
C 2601 156 86 437 27 279 22 708 1,715
C 2605 926 704 7,508 1,947 982 782 1,704 14,553
Total 56,941 72,891 118,574 55,868 46,758 19,813 60,246 431,091
then i will grab the result using iBatis framework, then display it in a ExtJs Grid, it is realy big favour from me, if anyone have same problem as me and want to share it.
i also already find some resource to start:
http://www.sqlsnippets.com/en/topic-12200.html
but if any of you have already find a simpler solution, you will save my weekend :(,
thank you all