Columns to rows.

Hi all

I have a data set as below.

Garage No. RETAIL_PRICE DEALER_PRICE CORE_PRICE WHOLESALE_PRICE
1000000800000000400000000000000000000
2000002000000000400000000000000000000

I need to view the data as below by top of the sample. The length of all the columns of the above prices are 9. I use the version of Oracle 11 g.

Garage No. PRIX
18.00
14.00
10.00
10.00
220 h 00
24.00
20.00
20.00

You can help do this.

Thank you all.

I added to TO_CHAR because I assumed you wanted to format as in your example of output.

So, pure for formatting reasons only.

If you don't need all that then you can just omit or remove it in order to maintain digital.

Yes, to_number (val) / 100 would be everything you need then.

Tags: Database

Similar Questions

  • can I write in a clay column and row in excel?

    Hello!!!

    Well, is - can anyone help me and tell me, if I can write something of labview in a clay column and row in excel?

    excellent couerse in a clay column and row to an existing file...

    CAN SOMEONE HELP ME OR SAY SOMETHING PLEASE?

    Ago, as Sophia said, you can do this using ActiveX, but that requires a lot of programming

    but you can learn a lot

  • How to save the table column and row headings

    I have a table where I activated the column and row headings.  Once the table is loaded with data, I would like to save the contents of the table, including the column and row headings in a text file.  The crux of "value" property returns only the content of the table, not the row and column headers.  I could use "header line chains []" and '[] column header chains' property nodes as well, but I'm in the island there is an easier way.  Looks like adding the headers of lines would be difficult.  Any ideas?

    Thanks in advance.

    Here is a way. The construction with the empty constant is to provide to the left corner of the table where there is no data.

  • I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows?

    I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows so that I can do the calculations?

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll

  • Remove the separator of columns and rows in spark DataGrid

    Capture.PNG

    Hello

    try searching a bit on the web with no success - how can I remove / handful of visibility of the separators of columns and rows in the DataGrid to spark flex 4.5

    See photo with separators:

    Two ways:

    (1) write a simple custom following appearance (the empty rectangles will cause the separators to disappear):

    
    
    
        
    
            
                
            
    
            
                
            
    
        
    
    
    

    (2) make a copy of the default Datagridskin and remove parts of skin 'columnSeparator' and 'rowSeparator.

    -Kevin

  • How to join two tables if you transpose the rows, columns and rows in one of the table

    Hi guys,.

    can someone help me please in the write request

    I have two tables

    Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)

    So instead of display 4 rows, I used max(case...) to convert rows to columns

    now how to reach it with another table

    Requirement:

    Database: 11.2.0.2.0

    create the table AGENT_PHONE

    (

    agent_id NUMBER (20) not null,

    agent_type_code VARCHAR2 (10) not null,

    agent_type_prefix VARCHAR2 (10) not null,

    Phone_Number VARCHAR2 (16) not null,

    phone_type_code VARCHAR2 (10) not null

    )

    CREATE TABLEAGENTS

    (

    agent_id NUMBER (20) not null,

    agent_type_code VARCHAR2 (10) not null,

    agent_type_prefix VARCHAR2 (10) not null,

    NAME VARCHAR2 (40) NOT NULL

    )

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');

    INSERT INTO VALUES AGENTS

    (29709, ARE ', 'OFFICE', 'FLY');

    INSERT INTO VALUES AGENTS

    (1234, ARE ', 'OFFICE', 'MIKE');

    SELECT * FROM AGENT_PHONES

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXPHONE_NUMBERPHONE_TYPE_CODE

    ---------------------------------------------------------------------------------------------

    29709REOFFICE4805551436CELL
    29709REOFFICE1111111111PHONE
    29709REOFFICE2223334444OFF
    29709REOFFICE5556667788

    FAX

    SELECT * AGENTS

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIX

    NAME

    29709REOFFICEROB
    1234REOFFICE

    MIKE

    This is so the data we have in both table

    Now, I transposed rows to columns in the table of agent phones so I used the following query

    SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.

    MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.

    MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.

    MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.

    MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE

    AGENT_PHONE AP

    WHERE AP. AGENT_ID = 29709

    GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXCELLOFFFAXPHONE
    129709REOFFICE4805551436222333444455566677881111111111

    My question is how this to join the agents table so that my output should be like this...

    I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXNAMEAGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXCELLPHONEOFFFAX

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    29709REOFFICEROB29709REOFFICE4805551436111111111122233344445556667788
    1234REOFFICEMIKE

    Currently, I run this query and I get the output as below

    SELECT *.

    AGENTS HAS

    LEFT OUTER JOIN AGENT_PHONE AP

    ON A.AGENT_ID = AP. AGENT_ID

    AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.

    AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXNAMEAGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXPHONE_NUMBERPHONE_TYPE_CODE
    129709REOFFICEROB29709REOFFICE4805551436CELL
    229709REOFFICEROB29709REOFFICE1111111111PHONE
    329709REOFFICEROB29709REOFFICE2223334444OFF
    429709REOFFICEROB29709REOFFICE5556667788FAX
    51234REOFFICEMIKE

    I want id 29709 agent in a line with 1234 agent also id to display

    You can rotate your phone number of agent in columns

    Select *.

    of AGENT_PHONE

    pivot)

    min (PHONE_NUMBER)

    for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')

    )

    AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX
    29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788

    Then you can join to view inline or CTE

    with AGENT_PHONE_PIVOT like)

    Select *.

    of AGENT_PHONE

    pivot)

    min (PHONE_NUMBER)

    for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')

    )

    )

    SELECT *.

    AGENTS HAS

    LEFT OUTER JOIN AGENT_PHONE_PIVOT AP

    ON A.AGENT_ID = AP. AGENT_ID

    AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.

    AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.

    AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX
    29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788
    1234 RE OFFICE MIKE - - - - - - -

    Is that what you're looking for?

  • SQL to convert a row with 4 columns, 4 rows by 4 columns

    With the help of Frank Kulash yesterday (https://community.oracle.com/thread/3810284)

    I can now use UNPIVOT start with this:

    with tbl_data AS  
     (select 'N' argument1, 'Y' argument2, NULL argument3, 'Y' argument4 from dual)  
    select * from tbl_data;  
    
    
    ARGUMENT1 ARGUMENT2 ARGUMENT3 ARGUMENT4  
    --------- --------- --------- ---------  
    N         Y                   Y   
    

    And eventually conversion of a single line of output to 4 rows and 2 columns via:

    with tbl_data AS
     (select 'N' argument1, 'Y' argument2, NULL argument3, 'Y' argument4 from dual)
        SELECT  *
        FROM    tbl_data
        UNPIVOT INCLUDE NULLS
                (    col_heading
                FOR  col_name  IN ( argument1
                                  , argument2
                                  , argument3
                                  , argument4
                                  )
                );
    
        COL_NAME  COL_HEADING
        --------- -----------
        ARGUMENT1 N
        ARGUMENT2 Y
        ARGUMENT3
        ARGUMENT4 Y
    

    I was wondering if there are sort of Frank solution can be modified to include the 2 columns (for example, COL_SEQ and COL_PROMPT) with them, hard coded values for example, '1' for the SEQ and 'TEST' for the GUEST, as I have the solution to a Frank's UNION with another query that returns the 4 columns.

    i.e. the performance:

    COL_NAME  COL_HEADING COL_SEQ     COL_PROMPT
    --------- ----------- ----------- -----------
    ARGUMENT1 N           1           TEST
    ARGUMENT2 Y           1           TEST
    ARGUMENT3             1           TEST
    ARGUMENT4 Y           1           TEST
    

    Thank you

    Hello

    969483 wrote:

    With the help of Frank Kulash yesterday (https://community.oracle.com/thread/3810284)

    I can now use UNPIVOT start with this:

    1. with tbl_data AS
    2. (select "n" argument1, argument2 'Y', NULL argument3, 'Y' double argument4)
    3. Select * from tbl_data;
    4. ARGUMENT1 ARGUMENT2, ARGUMENT3 ARGUMENT4
    5. --------- --------- --------- ---------
    6. N         Y                   Y

    And eventually conversion of a single line of output to 4 rows and 2 columns via:

    1. with tbl_data AS
    2. (select "n" argument1, argument2 'Y', NULL argument3, 'Y' double argument4)
    3. SELECT *.
    4. OF tbl_data
    5. MUST INCLUDE NULL VALUES
    6. (col_heading
    7. FOR column-name IN (argument1
    8. argument2
    9. argument3
    10. argument4
    11. )
    12. );
    13. COLUMN COL_HEADING
    14. --------- -----------
    15. ARGUMENT1 N
    16. ARGUMENT2 Y
    17. ARGUMENT3
    18. ARGUMENT4 Y

    I was wondering if there are sort of Frank solution can be modified to include the 2 columns (for example, COL_SEQ and COL_PROMPT) with them, hard coded values for example, '1' for the SEQ and 'TEST' for the GUEST, as I have the solution to a Frank's UNION with another query that returns the 4 columns.

    i.e. the performance:

    1. COLUMN COL_HEADING COL_SEQ COL_PROMPT
    2. --------- ----------- ----------- -----------
    3. ARGUMENT1 N 1 TEST
    4. ARGUMENT2 Y 1 TEST
    5. ARGUMENT3 1 TEST
    6. ARGUMENT4 Y 1 TEST

    Thank you

    Of course, you can include constants hardcoded in any set of results; just put constants in the SELECT clause and assign aliases for columns.

    Don't forget, I havef you need anything in the more SELECT clause *, then * must be qualified with a table name or alias, so that in this case, you can do something like:

    SELECT d. *.

    1 AS col_seq

    'TEST' AS col_prompt

    OF tbl_data

    MUST INCLUDE NULL VALUES

    (col_heading

    FOR column-name IN (argument1

    argument2

    argument3

    argument4

    )

    d

    ;

  • How to convert columns to rows

    Hello

    I have a table with 3 columns. I want to retrieve the columns in lines.

    My requirement is that I asking only 1 row at any time.

    with t as

    (select ' 1 ', ' 2' col1 col2, col3 double null)

    Select col1, col2, col3 from t;

    The query above returns

    1 2 NULL

    I want to a query that returns

    1

    2

    Basically, if the column value is null, I don't want a line for this.

    1 2 3

    would come as

    1

    2

    3

    Could you please help me find it.

    with t as
    (select '1' col1, '2' col2, null col3 from dual)
    select * from t
    unpivot(val for col in(col1, col2, col3));
    

    That you will get only the non-null values.

    If you want NULL values, thus:

    with t as
    (select '1' col1, '2' col2, null col3 from dual)
    select * from t
    unpivot include nulls (val for col in(col1, col2, col3));
    
  • Columns and rows of data have disappeared to chart

    Hello-

    I don't know what happened, but the rows/cells disappeared to my data in a bar graph in Illustrator CS5.5.

    The first number indicates upward, so I have to keep hitting tab, but they are not divided into visible cells longer.  Please see the image below.  I often see rows and columns in Excel.  Any help is greatly appreciated!

    Screen Shot 2013-05-20 at 3.26.38 PM.png

    That's what it should look like:

    Screen Shot 2013-05-20 at 4.24.22 PM.png

    What to say when you select the chart and find in appearance.

    If your don't have a transparenacy flatten on your chart then it seems group, rasterize would say image and you can no longer change the chart because the chart is more dynamic.

    Could possibly have CS6 file open in CS5. You graphics I bleive dissociated bevoems then, at least in the basic test I did.

  • Transform columns into rows

    I have a requirement in which I need to write a query to convert the columns to the lines.

    Entry table (DB - 11 g)
    ========
    ORDER_ID HOME_NUM WORK_NUM MOBILE_NUM FAX_NUM
    100 999456901 < null > 334054483 < null >
    101 < null > < null > < null > 787372163
    102 587372163 943528985 642344352 677676666
    103 53522890 < null > < null > < null >
    104 < null > 956656655 < null > 83366656

    decode the numbers like that, HOME_NUM = 1, WORK_NUM = 2, MOBILE_NUM = 3 and FAX_NUM = 4 and insert as phone_type_cd with the corresponding number. Output must be

    ORDER_ID phone_type_cd contact_num
    100 1 999456901
    100 3 334054483
    787372163 4 101
    102 1 587372163
    2 102 943528985
    102 3 642344352
    677676666 4 102
    103 1 53522890
    2 104 83366656
    104 3 956656655

    Published by: manon July 12, 2011 06:09
    with t as (
               select 100 order_id,999456901 home_num,334054483 work_num,null mobile_num,null fax_num from dual union all
               select 101,787372163,null,null,null from dual union all
               select 102,587372163,943528985,642344352,677676666 from dual union all
               select 103,53522890,null,null,null from dual union all
               select 104,83366656,956656655,null,null from dual
              )
    -- end of on-the-fly data sample
     select order_id,
            1 phone_type_cd,
            home_num contact_num
       from  t
       where home_num is not null
    union all
     select order_id,
            2 phone_type_cd,
            work_num contact_num
       from  t
       where work_num is not null
    union all
     select order_id,
            3 phone_type_cd,
            mobile_num contact_num
       from  t
       where mobile_num is not null
    union all
     select order_id,
            4 phone_type_cd,
            fax_num contact_num
       from  t
       where fax_num is not null
    order by order_id,
             phone_type_cd
    /
    
      ORDER_ID PHONE_TYPE_CD CONTACT_NUM
    ---------- ------------- -----------
           100             1   999456901
           100             2   334054483
           101             1   787372163
           102             1   587372163
           102             2   943528985
           102             3   642344352
           102             4   677676666
           103             1    53522890
           104             1    83366656
           104             2   956656655
    
    10 rows selected.
    
    SQL>  
    

    SY.

    Published by: Solomon Yakobson, July 12, 2011 09:14

  • SQL help - Need help to rotate the columns to rows

    I have a HughesNet to divide the columns into multiple lines. For example:

    EMP_DEPT

    ROWID empid1 ename1 empid2 ename2 empid2 ename2 empid4 ename4 dept4 dep3 dep2 dept1
    100001 1 'SCOTT' 10 2 'DAVE' 20 3 10 4 20 SMITH "MILLER"
    100002 1 'SCOTT' 10 2 'DAVE' 20 3 'MILLER' 20

    Note: EMP_DEPT do not always have information about the 4 employees settled for example in info only 3 employees rank 2 are there

    I need to convert and insert it into the EMPLOYEE table as follows:

    EMPLOYEE

    EmpID ename dept
    1 SCOTT 10
    2 20 DAVE
    3 MILLER 10
    4 SMITH 20

    1 SCOTT 10
    2 20 DAVE
    3 MILLER 20

    Thank you
    KeV

    Hey Kevin,

    Here's one way:

    WITH t AS (
      SELECT level i FROM dual CONNECT BY level <= 4
    )
    SELECT enty_type, enty_name, enty_id
    FROM (
      SELECT case when mod(t.i,2) = 0 then 'DEPARTMENT'
                  else 'EMPLOYEE'
             end as enty_type
           , case t.i
               when 1 then emp_name1
               when 2 then dept_name1
               when 3 then emp_name2
               when 4 then dept_name2
             end as enty_name
           , case t.i
               when 1 then emp_id1
               when 2 then dept_id1
               when 3 then emp_id2
               when 4 then dept_id2
             end as enty_id
      FROM emp
           CROSS JOIN t
    )
    WHERE enty_id IS NOT NULL
    ;
    

    Another using the MODEL clause:

    SELECT *
    FROM (
      SELECT enty_id, enty_name, enty_type
      FROM emp
      MODEL
      RETURN UPDATED ROWS
      PARTITION BY (pk)
      DIMENSION BY (0 i)
      MEASURES(
         emp_id1, emp_name1
       , emp_id2, emp_name2
       , dept_id1, dept_name1
       , dept_id2, dept_name2
       , cast(null as number(10)) enty_id
       , cast(null as varchar2(200)) enty_name
       , cast(null as varchar2(30)) enty_type
      )
      RULES (
         enty_type[1] = 'EMPLOYEE' , enty_id[1] = emp_id1[0], enty_name[1] = emp_name1[0]
       , enty_type[2] = 'EMPLOYEE' , enty_id[2] = emp_id2[0], enty_name[2] = emp_name2[0]
       , enty_type[3] = 'DEPARTMENT' , enty_id[3] = dept_id1[0], enty_name[3] = dept_name1[0]
       , enty_type[4] = 'DEPARTMENT' , enty_id[4] = dept_id2[0], enty_name[4] = dept_name2[0]
      )
    )
    WHERE enty_id IS NOT NULL
    ;
    

    Published by: odie_63 on 8 Dec. 2010 21:00

  • 10g TRANSPOSE a single ROW/columns in ROWS/columns

    Hello
    I have a query that returns a single row with 4 columns

    I need output in a single line by column

    Here is a table of test;
    CREATE TABLE TEST
    (
    SEQ VARCHAR2(10),
    FT DATE,
    CD DATE,
    DELTA NUMBER(10)
    );
    INSERT INTO TEST (SEQ, FT, CD, DELTA) VALUES ('1111',SYSDATE-1,SYSDATE,1);
    
    SET NUM 999;
    
    SELECT SEQ, FT, CD, DELTA FROM TEST;
    
    DROP TABLE TEST;
    the output current is;
    SEQ        FT                        CD                        DELTA                  
    ---------- ------------------------- ------------------------- ---------------------- 
    1111       09-AUG-10                 10-AUG-10                 1                      
    and want;
    SEQ       1111
    FT        09-AUG-10
    CD        10-AUG-10
    DELTA     1
    SQL> ed
    Wrote file afiedt.buf
    
      1   select regexp_substr(str,'[^,]+',1,level)
      2   from
      3   (
      4   SELECT SEQ||','|| FT||','||CD||','||DELTA  str FROM TEST25
      5   )
      6*  connect by level <= length(str) - length(replace(str,','))+1
    SQL> /
    
    REGEXP_SUBSTR(STR,'[^,]+',1,LEVEL)
    -----------------------------------------------------------------------
    1111
    09-AUG-10
    10-AUG-10
    1
    
  • several columns for rows

    Hi all

    Can someone give me a logical scenario below.

    Table A

    Col1 Col2 Col3
    Stone 1000 January 1, 2009
    Peter 1000 7-mar-2009
    Peter 1000 13-dec-2009


    I need a sql that displays all the data in a single row so that
    (1) if he col2 month jan, then the column header should be "January" and value must be Jan
    (2) the month col2 is mar, then the column header should be 'Marchh' and value should be Mar
    (3) if he col2 month dec, then the column header should be "December" and value must be dec

    Thank you in advance.

    Well I think that if you know the technique is what you need.
    It does not matter if you select col3 or col 4

    WITH DATA AS (
    SELECT 'Peter' NAME,to_char(to_date('01-jan-2009','dd-mon-yyyy'),'MON') MON, 1000 col4 FROM dual UNION
    SELECT 'Peter' NAME,to_char(to_date('07-mar-2009','dd-mon-yyyy'),'MON') MON, 1000 col4 FROM dual UNION
    SELECT 'Peter' NAME,to_char(to_date('13-dec-2009','dd-mon-yyyy'),'MON') MON, 1000 col4 FROM dual
    )
    SELECT NAME,max(decode(mon,'JAN',col4)) jan,
    max(decode(mon,'FEB',col4)) FEB,
    max(decode(mon,'MAR',col4)) MAR,
    max(decode(mon,'APR',col4)) APR,
    max(decode(mon,'MAY',col4)) MAY,
    max(decode(mon,'JUN',col4)) JUN,
    max(decode(mon,'JUL',col4)) JUL,
    max(decode(mon,'AUG',col4)) AUG,
    max(decode(mon,'SEP',col4)) SEP,
    max(decode(mon,'OCT',col4)) OCT,
    max(decode(mon,'NOV',col4)) NOV,
    max(decode(mon,'DEC',col4)) DEC
            FROM DATA
    GROUP BY NAME
    

    Run the above query and check it please.
    all out out sample will be very useful.

  • Relation to the total column and row grand totals

    Hello world

    I have requirement I need to create a statement of expenses with BI Publisher in Siebel. I need to group the items of expense by date and have a show total amount for the row and column. The report should look like this when done:

    FEES
    Date of... Meals... Entertainment... Total
    06/19/09.........75......................175............................250
    06/20/09.........50 ..................... 50..............................100
    ------------------------------------------------------------------------
    Total... 125....................225............................350


    I do not know how to address the issue since the amounts for the "meal" and "Entertainment" is not stored in separate columns, but instead of this, there is a 'Category' column and a column 'amount '. The XML should look like this:


    < EXPENSE_REPORT >
    < ID > 232 / < ID >
    < NAME > fresh June < / NAME >

    < EXPENSE_ITEMS >
    < DATE > 19/06/09 < / DATE >
    MEAL < CATEGORY > < / CATEGORY >
    < > 25 < / AMOUNT >
    < / EXPENSE_ITEM >

    < EXPENSE_ITEMS >
    < DATE > 19/06/09 < / DATE >
    ENTERTAINMENT < CATEGORY > < / CATEGORY >
    < AMOUNT > 50 < / AMOUNT >
    < / EXPENSE_ITEM >

    < EXPENSE_ITEMS >
    < DATE > 20/06/09 < / DATE >
    MEAL < CATEGORY > < / CATEGORY >
    < AMOUNT > 50 < / AMOUNT >
    < / EXPENSE_ITEM >

    < / EXPENSE_REPORT >


    Any suggestions on how I should approach this? Thanks in advance.
    Fred

    Published by: Fred_1 on September 21, 2009 22:30

    Fred/Kumar,

    1. it should be simple enough to BEEP model too.
    2. a glance the link thread above, I answered how do in Datatemplate.
    3 Db rollup is also good option

    Look at this

    http://winrichman.blogspot.com/2009/09/cross-tab-summation-in-RTF.html

    Take a look at these too, it will help you for sure.

    http://winrichman.blogspot.com/search/label/cross%20tab
    http://winrichman.blogspot.com/search/label/BIP%20Vertical%20sum
    http://winrichman.blogspot.com/search/label/cross-tab
    http://winrichman.blogspot.com/search/label/summation%20In%20BIP

  • How to count the number of conditionally highlight cells in a column or row

    I'm working on a table to identify problems with my credit rating. So, I have a column that indicates the due date on the invoice and G that contains the date to which I made the payment.

    I'm trying to follow how many times I'm late with payments. I want to improve.

    So if the G column is later than column D, both with the Date formatting. So, now I've highlighted cells and I want to summarize for the year, how many times I was late payments.

    I thought a column G to count the number of days before or after that back I was with payments. But if the sum, it only gives me no useful information. I guess I could count the number of cells with values less than 0.

    I prefer to be able to put in the summary column for G something that said 0-12 years ago has highlighted cells in the column.

    Thank you

    You can not count based on sharing or formatting.  You can, however, be based on the same conditions.

    There are functions:

    COUNTIF() counties based on a condition is true

    and

    COUNTIFS() based on several conditions being true

    = NB. If

    Here is a way.  IT will take an additional column that calculates the "delay" in the days of a payment

    the first two lines are the lines of header

    H3 = IF (COUNTA (D3, G3) > 1, MAX ((G3−D3) DUR2DAYS, 0), "")

    It's shorthand dethrone select cell H3, and type (or copy and paste it here) the formula:

    = IF (COUNTA (D3, G3) > 1, MAX ((G3−D3) DUR2DAYS, 0), "")

    Now select cell H3, copy

    Select the H3 cells at the end of column H, dough

    H1 = "payments late =" & COUNTIF(H,">0")

  • Single-column-multi-Rows, columns by using Types of Collection

    Can you guys help me get the result after using types of collection or all the predefined collections?

    In fact, I'm trying to compare the results of the columns col1 and col2 against a single value, so try to get the output in a single column.

    Required output should be like

    SQL > with t as (1 select col1, col2 2 double)

    2 Select * from t;

    COL

    ----------

    1

    2

    Please suggest any solutions using regexp/connect by / or etc.

    Well, then:

    SQL> with t as (select 1 col1, 2 col2 from dual)
      2  select nt.column_value
      3  from t
      4     , table(sys.odcinumberlist(col1, col2)) nt
      5  ;
    
    COLUMN_VALUE
    ------------
               1
               2
    

    but it is overkill IMO.

Maybe you are looking for

  • Whence this giant puddle of memory?

    So I'm mopping up a giant puddle of memory from under my computer and I noticed that the memory is just outside IMAQ learn model 2 VI. Turn, when IMAQ learn ringtone 2 decides that a template image doesn't have enough contrast, he gets scared and wet

  • Skype video

    When I used Skype before, the video worked very well. Now, it stops after the start of the conversation. I checked the connection speed, and he says that he is not good enough for audio, no video. -What happened?

  • Locked as administrator on Windows Vista.

    Do not accept the password. Am not familiar with changing the boot options so that the PC read a CD - RW. Many attempted to change startup options, but I think I did more damage. He said that Vista is almost impossible to re - set password when the a

  • Unable to reflect App descriptor title management app

    Hello world I put the application title in the BB App as 'My' Test descriptor The generated output file is "My_Test.alx" & My_Test.cod. ". When we sail to the management of applications, (Optiions-> device - > management of Application), the name of

  • VPNGroup and MS ISA?

    Hello I have a PIX 501 running V6.3 and already have VPN users destined for the external interface of the pix using the VPNGroup, but I wanted to see if this is possible. 1. I want ti will not only have the name and the password for the vpngroup to a