Date Wise Report With various Users in Column Output

Hi All,
Im Using Oracle 10g Release 2.
i Have a Table Transaction_Details as Like Below
Date Uploaded Pending UserName
14/02/2012 50 25 aa
14/02/2012 20 0 aa
14/02/2012 110 20 bb
14/02/2012 100 30 bb
14/02/2012 150 25 cc
15/02/2012 75 20 aa
15/02/2012 110 40 bb
16/02/2012 100 45 cc
16/02/2012 150 25 bb
i Want the Output Result as,
Date Uploaded    Pending      User Uploaded     Pending      User Uploaded     Pending      User
14/02/2012 70 25 aa 210 50 bb 150 25 cc
15/02/2012 75 20 aa 110 40 bb
16/02/2012 150 25 bb 100 45 cc
But,
I can Able to Generate Output using Group By function,
14/02/2012 70 25 aa
14/02/2012 210 50 bb
14/02/2012 150 25 cc
Kindly Share Ur Idea To Do This.
Thanks In Advance., Im Trying to get outout through a function,
Is this Possible in Sql or Plsql.

Looks like you want something like this...
SQL> ed
Wrote file afiedt.buf
  1  with t as (select to_date('14/02/2012','DD/MM/YYYY') as dt, 50 as up, 25 as pe, 'aa' as usr from dual union all
  2             select to_date('14/02/2012','DD/MM/YYYY'), 20, 0, 'aa' from dual union all
  3             select to_date('14/02/2012','DD/MM/YYYY'), 110, 20, 'bb' from dual union all
  4             select to_date('14/02/2012','DD/MM/YYYY'), 100, 30, 'bb' from dual union all
  5             select to_date('14/02/2012','DD/MM/YYYY'), 150, 25, 'cc' from dual union all
  6             select to_date('15/02/2012','DD/MM/YYYY'), 75, 20, 'aa' from dual union all
  7             select to_date('15/02/2012','DD/MM/YYYY'), 110, 40, 'bb' from dual union all
  8             select to_date('16/02/2012','DD/MM/YYYY'), 100, 45, 'cc' from dual union all
  9             select to_date('16/02/2012','DD/MM/YYYY'), 150, 25, 'bb' from dual)
10  --
11  -- end of test data
12  --
13  select dt
14        ,max(decode(rn,1,up)) as up_1
15        ,max(decode(rn,1,pe)) as pe_1
16        ,max(decode(rn,1,usr)) as usr_1
17        ,max(decode(rn,2,up)) as up_2
18        ,max(decode(rn,2,pe)) as pe_2
19        ,max(decode(rn,2,usr)) as usr_2
20        ,max(decode(rn,3,up)) as up_3
21        ,max(decode(rn,3,pe)) as pe_3
22        ,max(decode(rn,3,usr)) as usr_3
23  from (
24        select dt, up, pe, usr
25              ,row_number() over (partition by dt order by usr) as rn
26        from (
27              select dt, sum(up) as up, sum(pe) as pe, usr
28              from t
29              group by dt, usr
30             )
31       )
32* group by dt
SQL> /
DT                         UP_1       PE_1 US       UP_2       PE_2 US       UP_3       PE_3 US
14-FEB-2012 00:00:00         70         25 aa        210         50 bb        150         25 cc
15-FEB-2012 00:00:00         75         20 aa        110         40 bb
16-FEB-2012 00:00:00        150         25 bb        100         45 ccBear in mind that SQL projection is fixed, so you will need to include enough max(decode... statements to cater for the expected number of rows that are going to be pivoted for each date.
{thread:id=2309172}

Similar Messages

  • Reports with more than 100 columns

    I am using Apex 3.2. I am using a classic report with more than 100 columns. So to use the custom heading in the report, I exported the page,did modification in exported sql file and imported back.
    But when I am passing the parameters from a input screen for the first time either it is showing the all data avilable in the database or with only header. If I do the refresh in input screen and try it then it is working as intended. I am updating at the below loaction of the page.Let me know if I have to update anything more in the sql file.
    declare
    s varchar2(32767) := null;
    begin
    s := null;
    wwv_flow_api.create_report_columns (
    p_id=> 200100535534034253 + wwv_flow_api.g_id_offset,
    p_region_id=> 2003453533453 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_query_column_id=> 157,
    p_form_element_id=> null,
    p_column_alias=> 'XYZ',
    p_column_display_sequence=> 157,
    p_column_heading=> 'XYZ 123',
    p_column_alignment=>'LEFT',
    p_disable_sort_column=>'Y',
    p_sum_column=> 'N',
    p_hidden_column=> 'N',
    p_display_as=>'WITHOUT_MODIFICATION',
    p_pk_col_source=> s,
    p_column_comment=>'');
    end;
    /

    Hi,
    Its just a general thought and I realize you know your application and user community better I do, but do you think your users are going to be very happy when they are presented with a report with more than a hundred columns? Have you considered maybe presenting the data in some sort of rolled up form from which the user can then drill down to the data they are particularly interested in. Also, I'm sure your LAN administrator would be happy not to see 100+ column by x number row reports being regularly shipped across the network.
    Also, 100+ column reports suggests tables with 100+ columns which are probably not designed in a very relationally compliant way. I find that good DB design usually results in applications that have to make less compromises, such as hacking export files in order to fool the API into making ridiculous, unsupported and unsupportable compromises.
    Just a thought..................
    Regards
    Andre

  • How to create a report with dynamic no of columns

    Hi All,
    we have a report with 6 columns.
    and its been access by 10-20 people.
    the user dont want to have a fix report with 6 columns rather they want to have a flexibility to select the columns from the report they want to see.
    i.e. user one one time wasnt to see only one columns
    another time he want to see only column 2 and 4 of the report.
    its like there can be a multiple select option from where he can select the columns in the existing report and then see the same report with only that much column.
    Please tell me how to implement it.

    Abhip i thin you didnt get the problem.
    there is s exeiting report with 6 column
    Currently when i logging to OBIEE and see that report
    i will be getting report with 6 column
    but now i want a flexibility of selecting only 2 or 3 or 1 or 4 or 5 as i wish columns from this report and see the result only for that
    so is there by any chance i can have a check box for each column which i can check in dashborad to select that column
    and show the result were as by default it will show the report with 6 column.
    Thanks

  • Report with more than 30 columns

    XML Pub Gurus,
    I have a requirement where I need to create a table layout with proper spacing for more than 30 columns and I asked this question in Open World XML Pub team and they responded to my question as "The page size in word has to be increased to allow to add those many columns". I was satisfied with the answer without knowing that Word will not allow more than 22" long in landscape. So, I am puzzled with the answer in Open World.
    So, could somebody please give me guide lines to create this type of report for more than 30 Columns. This is very common requirement for us to report some of the stuff from the db.
    Thanks in advance
    Ram G

    What do you want your final destination format to be? I'm thinking you'll probably want to go out to HTML or Excel. I would think that would be the only place where you could read and use a report with more than 30 columns.
    Here's an idea if you want to go to excel and if you are using the 10.1.3.2 Enterprise (standalone) version.
    1. Create your query with as many columns as you want.
    2. Don't create a layout at all
    3. Launch Excel Analyzer.
    4. From within Excel, build your report based off the downloaded data (for example add a pivot table).
    5. Upload your excel Analyzer template back to the server
    This template can now be scheduled and delivered like normal templates or updated with current data directly from within Excel.

  • Delivery Date-Wise Report

    Dear all
    Can I have a Delivery Date wise report for Purchase Order.
    (T.Code) and what the paramenters that I have to input.
    Manoj

    Hi
    You can get it in the ME series 2L,2M ,2N etc by giving the delivery date range but the delivery dates will not be displayed in the report. To see the PO wise delievry date see the table EKET.
    DBehera

  • Form report with both edit and column link

    hi experts,
    How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
    Regars,
    KK

    hi,
    Here i have achieved this by making the column link and page navigation.

  • Problem opening reports with a user in the Oracle Directory.

    I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory.
    I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to the new role I created.
    I accessed then the administrator tab in XML publisher. I went to roles and the role I created was there. When I tried to add a folder. I'm able to add the folder there. I click on apply and then when I enter in the security Settings again the folder is not there anymore.
    I get the following error in the log:
    [021207_103218621][][EXCEPTION] oracle.apps.xdo.servlet.resources.ResourceNotFoundException: /opt/oracle/infra2/j2ee/home/xmlpublisher
    /Admin/Security/security.xml
    When I access xml publisher with the user A, who belongs to the new role I'm working with, I'm not able to see any folder, nor anything else.
    Do you have any ideas about what could be going wrong?
    Thanks,
    Joaquin

    Can you replay how? I have been facing this problem for nearly 3 months without any solution. Please help me.
    Debarati

  • I want to create a report with more than  64 column's.

    I want to create a report with more than 64 column's. I have generated Query the XML.When I tried to create a template for the report.I have Inserted the colum's Wizard and finish it throughing error message. "you cannot create atable with more that 63 coloum's "

    Hi ,
    Can u Check the below thread
    More than 63 columns in rtf template

  • Date wise reports

    hi gurus,
    Is it possible to see date wise stock of a material? I mean is it
    possible to have a material ledger kind of thing in SAP.
    thanks in advance

    Dear Lakshmi reddy,
    Goto the T.code:MB5B - Stocks for Posting date
    It show the report FROM date to TO date i.e., for perticular month, year
    If u want the date wise stock i.e., within the month 1,2,3,.......31
    We have to go development report(user exit).
    U approch ur ABAPer and explain ur requirement indetail to resolve the issue.
    With regards,
    B.Ravindranath

  • GL Account balance report - Date wise report reqd(Eg: 05.03.08 to 20.03.08)

    Dear Friends,
    This is with regard to GL account wise balance/trial balance report based on dates (From...To format).
    We have tried all standard GL reports especially account balances and trial balance reports and all reports are showing period wise reports eventhough we put posting dates in the dynamic selection screen.
    We also checked in SAP Notes and Expert Forum and none of the details are matching with our requirement.
    As we are in production client (in ECC 6.0 version) and doing year end procedure, it would be helpful if you could let me know whether there is any transaction code/report/program available in SAP to meet the
    above requirement.
    Regards,
    Dwarak.

    Hi Dwarak,
    All reports balance report are based on posting period. This information is stored in a total table by posting period. These reports are not looking to the posting documents.
    When you have BW or special ledger you can create a table with day totals
    Paul

  • Report with multiple choice in column for same dimension......

    Hi All,
    We have a report with two dimensions in col , one in row remaining in pov...user want to select multiple members [its more than 10 members..so we thought prompts will not be good.] for one column for different members in second dimension of column and want see the variance between them.
    can anyone suggest me how can i achieve this. thank you
    regards,
    Ravi

    Hi All,
    Can any one suggest me on this. thanks inadvance.
    Regards,
    Ravi

  • OBIEE Date Comparison report with multiple measures

    Hello everyone...
    I have a requirement where I need to create a date comparison report (Current Month vs. Prior Month vs Prior Month Year Ago vs YTD vs Prior YTD vs Rolling 3 months, etc) with multiple Measures (Quote count, Quote offered count, New Business count, etc). I am to generate this report in this fashion:
    Quotes Current Month vs PM vs YoY Prior
    Month Current Month Prior Year Current
    YTD vs PM Prior
    YTD Rolling 3 Months vs PM Prior Rolling 3 Months
    Issued 120 120 123 1400 1020 1700 1580
    Unique Risks
    Offered 556 449 571 5881 6220 6101 5892
    Unique Risk Close Ratio
    Offered Close Ratio 21.6% 26.7% 21.5% 23.8% 16.4% 27.9% 26.8%
    Bitmap
    Avg Issued Premium 240 238 222 2801 2630 3104 2892
    Avg Offered Premium
    New Business
    Count
    Avg Full Term Premium
    I understand that time series is an option, and have created the time series (which show up as measures).
    My problem is:
    when creating the report (even as a pivot table) , OBIEE is not allowing me to drag the measure to rows, nor is it allowing me to drag the time series to columns. Also, I need to do conditional formating on some of the columns showing an up arrow for increased vs. prior month and down arrow for decreased vs. prior month.
    Does anyone have a solution for this issue? Any assistance would be greatly appreciated...
    Please advise and thanks!!!

    Jason,
        You've been very helpful, but I guess I'm just not explaining myself that well. The Credit Memo's throw things off because they do not contain a "Paid Date" value. That field in the record is blank. Since it is blank the report query ignores them. Therefore when the report query returns all records that have a "Paid date" range of "x to y" they are never returned. This is a problem whenever a credit memo exists for an invoice because the "invoice total" never changes. So when a customer pays on their account for a particular invoice, they only pay what is due which is the "invoice total" minus any "credit" from the "Credit Memo". So when my A/R person receives payment they are showing the invoice paid in full because MAS automatically includes all invoices and credit memo's. My report does not because there is no data in the "Paid Date" field of the record for Credit Memos.
    I've been doing alot research in trying to resolve this "exception" to my report. I think I may be on to something, but my knowledge of arrays is extremely limited. My resolution involves populating an array with the "invoice numbers" that are returned from the initial query from the supplied date range. Then using the "invoice numbers" from the array have it then populate my details section of the report with all of "invoice records" both the actual invoice record and any "credit memo" records. I can then group the records returned  based upon the "invoice number". then within that grouping I can performing my calculations to show whether or not the invoice has been paid in full. What do you think?  I've been able to populate an array with the invoice numbers based upon my date search range, but I have yet to figure out how to take that information and perform another lookup to pull in the rest of the data I need. Do you have any ideas?
    Thanks.  Bill

  • Unable to create cross tab report with multiple level dynamic columns

    Hi Gurus,
    We are trying to develope group above cross tab report with BI Publisher.
    i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
    Output should look like this:
    Country1
    Region1 Region2 Region3 --(level1 column)
    d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
    Row1 10 20 30 70 80 90 40 70 90 --data
    Row2 21 24 54 65 23 64 64 76 87
    Here regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
    Thanks,
    Mahesh

    Hi kavipriya,
    Any update on this.I have set the rtf and xml to ur gmail id.
    Thanks,
    mahesh

  • Running reports with OPS$ user

    Hi, I've been using reports server 6i and I have a problem with ops$ users. I've configured the 'cgicmd.dat' file with database accesses like those:
    server1: server=REPORTSERVER userid=ops$reports/password@service %*
    server2: server=REPORTSERVER userid=user2/password@service %*
    to launch reports through the http oracle web server, but doens't work and only works with non ops$ users. I get an web page error like that:
    Database User Authentication
    ops$reports:_______
    password: ________
    database: service
    Someone told me about scape characters or something.
    Any idea? Thx

    Hi again, Ive try your idea but still doesnt work.
    cmdcgi.dat reports server file config, I've add new entries:
    /* non ops$ user: works*/
    server1: server=REPORTSERVER userid=user2/password@service %*
    /*ops$ user: doesn't work*/
    server2: server=REPORTSERVER userid=ops$reports/password@service %*
    /*html code $(&_#36;) : doesnt work*/
    server3: server=REPORTSERVER userid=ops$reports/password@service %*
    /*hex code %24 : doesn't work*/
    server4: server=REPORTSERVER userid=op%24/password@service %*
    So it seems only work server1 connection.

  • Unable to schedule webi report with Test user

    Hi All,
    I get the below error when i try to schedule a WEBI report with user id.
    I can schedule with my developer id.
    Error Message: Sorry, you do not have the right to 'Edit objects' (ID: 6) for 'sudes_errors' (ID: 45941). Please contact your administrator if you require this right. 
    Any inputs greatly appreciated.
    Thanks

    Error clearly showing that, Test user need access rights defined @ CMC.
    Contact BO admin, to assign Schedule/Full control rights for that Test user.
    Thank You!!
    H2H

Maybe you are looking for

  • HP High Definition Audio Device Code 10 Error -- Causing HDMI Sound Problem

    Hey guys, my laptop is an HP ENVY TouchSmart m7-j010dx Notebook PC, running Windows 8.1. When I connect my laptop to my LG Smart TV through HDMI, I cant change the playback device to play the sound from the TV. The HDMI option does not appear in ¨Sou

  • Sliding panel

    I'm trying to modify the horizontally sliding panel to be side by side instead of top and bottom, I was able to make it work on firefox and safari, but it doesn't on internet explore, can somebody help me please.Thanks

  • Problem with Multiple selection option

    Hi all, I am working on a report, when I execute the report and the selection screen comes up, there I need to enter 5 different employee name so I am trying to use "multiple selection" option but as soon as I hit that "Yellow arrow" in front of empl

  • Deleting Sparse Disk Image Bundle from Time Capsule

    Howdy. Thanks in advance for help on this issue to anyone kind enough to spend time answering it. I've got a 1TB Time Capsule which I use primarily for external file storage - it's currently got just about 120GB of files on it which I have manually c

  • How to find topics which are not assigned to a map ID

    Perhaps I am missing something very obvious in the Edit Map IDs window, but I can't find a way to easily identify topics which have not been given a Map ID. Initially, I selected all topics and used the auto map option for the project map file, but I