Ability to send the results of a report query to a table in the database

Hi Guys
Is it possible to send the results of a report query to a table in the database ?
Thanks

Yes.
For this purpose, you can use :
* the delivers advanced option
http://gerardnico.com/wiki/dat/obiee/bi_scheduler/advanced_publication_delivers
* the SOA API
http://gerardnico.com/wiki/dat/obiee/obiee_soap_eclipse
This two solutions need some development skills.

Similar Messages

  • How can I store the results of a report in an Oracle table ?

    In OBIEE 11g, we need the records resulting from the execution of a report, to be stored in an Oracle table.
    Is this possible ?. Thanks.
    F r a n c o . -

    GSR Hi, first of all thanks for your response.
    What I'm wanting to do is not exactly what you're proposing.
    What I want is that an end user can run a report and that the results be automatically stored in an Oracle table. Without manual intervention. Other BI products perform this action, and I need to do it with OBIEE. Thanks.
    F r a n c o . -

  • End the result of an sql query by Email as an excel file attachement

    Hi,
    I would like to create a PL/SQL function that send the result of an sql query by Email as an excel file attachement.
    i'm newbie in pl/sql an d i dont know if it's possible to do such task.
    regards,

    i think a regular expression is he way to go in your case...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Can the width of a report that has been run in the background be increased?

    Hello Experts,
    How can I increase the width of a report that I have run in the background so that it does not wrap text to the next line?
    I have been running the same HR report successfully in the background for many months.  Today I ran it with the same parameters that I've always used and when I retrieve it from my Own Job Spool - System | Own Spool Request | Display Contents the last field is wrapped to the next line.
    Thanks.
    Regards,
    Jeanette

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • Wenn I've made changes on my private home-page and want to see the result, how do I get my Mac to load the new side instead of the "old" one?

    When I've worked on my private home-page and want to controll the results, how do I get my Mac to take the new version instead of the old one? I tried cmd R without any change! Who knows? Nina

    Try clearing the cache - command-option-e in Safari.

  • Excel allows array arithmetic (e.g. sum(a1:a5* b1:b5) where the contents of the cells are the results of formulae.  Numbers only allows constants in the array cells. Right?  Any work-arounds?

    Excel allows array arithmetic (e.g. sum{(a1:a5* b1:b5)} where the contents of the cells are the results of formulae.  Numbers only allows constants in the array cells. Right?  Any work-arounds?

    CJPerry wrote:
    Any work-arounds?
    There is a very simple one : use libreOffice.
    Yvan KOENIG (VALLAURIS, France) dimanche 1 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Pass the result of a SQL Query as table_name  for another SQL Query

    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    Thanks

    Naveen B wrote:
    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    ThanksYou should craete PL/SQL code with cursor which will accept a parameter and call that cursor inside the first one
    But if the first sql returns only one row, you can do it with simple sql code
    select * from (select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ')- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Using the result of 1st report to 2 nd report

    Hi,
    I have created one report with 5 Dataproviders.
    I want to create another report by using the result of 2nd dataprovider of thr 1st report.
    Is it possible in BO XI R2 Desktop intelligence?
    Thanks,
    Indu

    Hi Indu,
    If I understand you correctly, you want to create the query once but run mulitple reports of it. Is it okay if the reports are in tabs within the same document or do they have to be in separate documents?
    If the later it is not really possible. There are a few options
    It is possible to use a query create in QaaWS, but there is no schedule option around this, so every call is on demand.
    Also you can create instances of reports using Web Intelligence/Crystal Reports and have more that one Live Office document/Xcelsius dashboard point to the instance. In this event you are runnig the query once and using the displaying it in different reports.
    Finally, if you just want to reuse a query from one report to another then you can copy and paste the report and change the report layout.
    Hope this helps
    Alan

  • How to make a report based on the result of another report?

    Hi, All,
    I am a new guy in BW development
    I  made the report1, to show the "Total Sales in each country and each shop "
    (the fact table is "Order")
    now I want to make report2 "in each countries, the number of the shops, whose Total Sales >100000"
    Can I make the report2 based on the result of report1 (use the same fact table)
    thanks a lot
    QY

    Hi Klaus,
    your condition only works if the Shop is in the query. If I understood it correctly you have one query with
    Country   Shop   Total Sales
    and one with
    Country   Number of Shops   Total Sales
    and you don't want to restrict the second Total Sales but the Total Sales from the first query.
    Best regards
       Dirk

  • XSL-FO Report Query / Named Layout - Dynamically set the output filename

    Does anyone know if it is possible to dynamically set the name of the PDF file which is created via FOP?
    Thanks
    Paul

    John
    Thanks for the quick reply, apologies, I should have been more explicit.
    I am calling apache FOP via a report query and a named column layout using xsl-fo to format the PDF report.
    The call is done via a javascript function which determines which report to print and then submits the approproate REQUEST. The request is picked up by conditional branches and calls the PRINT_REPORT
    The PRINT_REPORT names the PDF file as same as the report query name.
    BTW the long term goal is to store the resultant output as a blob back in the database but I can put that off to phase II of the project as I'm not sure that this is possible. Would be nice though!
    Thanks
    Paul

  • Presenting/Selecting the "result rows" in a query

    Hi,
    Here is a description of my problem:
    I have a query which returns values for materials grouped by purchasing groups:
    Group 1 Material A KyeFigure
    Group 1 Material B KyeFigure
    Result:  KyeFigure       
    Group 2 Material C KyeFigure
    Group 2 Material D KyeFigure
    Result: KyeFigure
    I'm using a Web application designer chart to present the values graphically. I would like only to present the result rows in the chart, not item values. But since the chart picks all KFs presented in the table (items as well) this is not the case. I've tried to find a way in the chart-settings without any luck - it seems not possible. The documentation states that you're supposed to design your table the way you want it to show in the chart. However, I'm not allowed to redesign the cube or the report. It is not possible to drill up characteristics either (this affects the calculation).
    My question is: Is there a way to extract the result rows into a new table and then base my chart on that one or simply somehow present only the result rows in a chart?
    Best Regards
    /Daniel

    Hi Daniel,
    You can create the query view in BEx Analyzer. After you execute the query, use filters, drill downs etc to get to the exact "view" of data that you would like you chart to present. Save this query view. Then in your web template assign this query view as the data provider.
    Hope this helps...

  • Use the results of an SQL query to create another query

    I am working on a bidding/allocation system using C# and MySQL, and I am currently having difficulty implementing the “post-allocation” mechanics of the system. Let me explain how it works, before introducing the code:
    When the bids are made on the system, they all have the position 0, so the first thing the system does is order them according to priority.
     (bid table)
    In this case, 5 bidders are interested in what is in plot 15, but we have not assigned them a position yet.
     (bid table)
    The system then organises the bids according to the order in which they are going to processed.
    The bids are then allocated, but unfortunately there are only 3 spaces in plot 15 that can be allocated. As a result, we use the priority listing to determine which bidder gets what.
     (booking table)
    At this stage, I can say that I am stuck, there are two things that I want to do, both of which involve reusing the results of the query at step 2.
     (bid table)
    The bidders that have their job allocated should see: their bid.status updated
    from Queued to Allocated,
    the bid.position should
    be set to 0,
    and their job_id should
    be set to the booking they have been allocated (i.e. booking.id).
    The bidders that have not had their jobs allocated should see: their bid.status remain
    as Queued, and their bid.position should
    be set to 0 in
    preparation for the method to run again
    The difficulty I am having is in stage 3, how do I determine which jobs have been allocated and which ones have not, and then run the necessary SQL queries in order to make the updates?
    My code so far is as follows:
    // STEP 1a - SELECT BIDS
    string query =
    "SELECT t1.operator_id, t1.datetime, t1.plot_id, t1.position, t2.market_access FROM bid t1 " +
    "JOIN operator t2 ON t1.operator_id = t2.id WHERE t1.status='Queued' AND t1.postcode=@postcode " +
    "ORDER BY t2.market_access ASC, t1.datetime ASC";
    var bidList = new List<BidList>();
    var cmd = new MySqlCommand(query, _connection);
    cmd.Parameters.AddWithValue(("@postcode"), _plot);
    MySqlDataReader dataReader = cmd.ExecuteReader();
    while (dataReader.Read())
    var item = new BidList
    OperatorId = dataReader["operator_id"] + "",
    PlotId = dataReader["plot_id"] + "",
    Position = dataReader["position"] + "",
    Datetime = dataReader["datetime"] + "",
    MarketAccess = dataReader["market_access"] + "",
    bidList.Add(item);
    dataReader.Close();
    // STEP 1b - SET PRIORITIES
    for (var i = 0; i < bidList.Count; i++)
    var position = i + 1;
    bidList[i].Position = position.ToString();
    query = "UPDATE bid SET position=@position WHERE status='Queued' AND postcode=@postcode AND operator_id=@operator_id;";
    cmd = new MySqlCommand(query, _connection);
    cmd.Parameters.AddWithValue(("@position"), position);
    cmd.Parameters.AddWithValue(("@postcode"), _plot);
    cmd.Parameters.AddWithValue(("@operator_id"), bidList[i].OperatorId);
    cmd.ExecuteNonQuery();
    dataReader.Close();
    // STEP 2 - ALLOCATE JOBS ACCORDING TO PRIORITY
    foreach (var t in bidList)
    query = "SELECT operator_id, plot_id, status FROM booking " +
    "WHERE status='open' AND postcode=@postcode AND operator_id='0'" +
    "ORDER BY datetime ASC;" +
    "UPDATE booking SET operator_id=@operator_id, status='Allocated' " +
    "WHERE (plot_id=@plot_id AND operator_id='0' AND status='Open') LIMIT 1;";
    cmd = new MySqlCommand(query, _connection);
    cmd.Parameters.AddWithValue(("@operator_id"), t.OperatorId);
    cmd.Parameters.AddWithValue(("@postcode"), _plot);
    cmd.Parameters.AddWithValue(("@plot_id"), t.PlotId);
    cmd.ExecuteNonQuery();
    dataReader.Close();
    // STEP 3
    CloseConnection();

    I can't tell.  When modifying row(s) you have to be able to uniquely be able to identify the row(s) in the database you want to modify.  That is why I recommended the other day to use DataAdapter instead of the DataReader.  You can with the
    reader, but you need to unique identify the rows.
    I can't tell from the limited amount of data you posted if in table 2 that there is only one row with the same operator id and plot id.  It looks like in table 2 the 'id' number is unique.  When working with a database with multiple tables you
    need to be able to link tables together with primary keys (columns wit unique values).  If the database isn't designed properly then it is impossible to do some operations.  So you always have to make sure you design a database properly.
    jdweng
    When you say table 2 are you referring to the bid or booking table?
    Here is the table structure for the bid table
    Here is the table structure for the booking table
    Hope it helps makes things clearer!

  • How to use the result of a sql query for a max () function

    Hi
    I wrote a query on which i wrote
    "select max(id) from users "
    how can i use the returned value.
    if i made the var name ="userid"
    can it be userid.rows[0] or what.
    thnx for any help

    Hi!
    The result of this query will be the max ID of users' IDs.
    Let say we have:
    String sql="select max(users.id) from users";
    Statement st = ctx.conn.createStatement();
    ResultSet rs = st.executeQuery(sql);
    rs.next();     
    So you can get the max Id in the following way:     
    int maxId=rs.getInt("id");
    Regards,
    Rossi

  • Sorting the results of CONNECT BY query

    Hi,
    I have a table with following columns and values:
    DIS_PARENT_OID OID CREATION_TIME LEVEL
    0 26750 08/02/2001 14.52.14 1
    0 26751 08/02/2001 14.52.48 1
    26751 26752 08/02/2001 14.53.39 2
    0 26753 08/02/2001 14.53.54 1
    0 26722 08/02/2001 13.58.04 1
    26722 26723 08/02/2001 13.58.16 2
    26723 26724 08/02/2001 13.58.29 3
    26724 26725 08/02/2001 13.58.41 4
    26725 26726 08/02/2001 13.58.54 5
    26726 26727 08/02/2001 13.59.05 6
    26727 26728 08/02/2001 13.59.15 7
    26728 26729 08/02/2001 13.59.26 8
    26729 26730 08/02/2001 13.59.40 9
    26730 26731 08/02/2001 13.59.51 10
    26731 26732 08/02/2001 14.00.05 11
    26732 26733 08/02/2001 14.00.16 12
    26733 26734 08/02/2001 14.00.26 13
    26734 26735 08/02/2001 14.00.37 14
    26735 26736 08/02/2001 14.00.48 15
    26736 26737 08/02/2001 14.01.00 16
    26737 26738 08/02/2001 14.01.19 17
    And I used a query to fetch this tree structure like :
    SELECT PRIOR PARENTID,ID,CREATION_TIME,LEVEL
    FROM FORUM
    START WITH PARENTID=0
    CONNECT BY PRIOR OID=PARENTID;
    Result:
    DIS_PARENT_OID OID CREATION_TIME LEVEL
    0 26722 08/02/2001 13.58.04 1
    26722 26723 08/02/2001 13.58.16 2
    26723 26724 08/02/2001 13.58.29 3
    26724 26725 08/02/2001 13.58.41 4
    26725 26726 08/02/2001 13.58.54 5
    26726 26727 08/02/2001 13.59.05 6
    26727 26728 08/02/2001 13.59.15 7
    26728 26729 08/02/2001 13.59.26 8
    26729 26730 08/02/2001 13.59.40 9
    26730 26731 08/02/2001 13.59.51 10
    26731 26732 08/02/2001 14.00.05 11
    26732 26733 08/02/2001 14.00.16 12
    26733 26734 08/02/2001 14.00.26 13
    26734 26735 08/02/2001 14.00.37 14
    26735 26736 08/02/2001 14.00.48 15
    26736 26737 08/02/2001 14.01.00 16
    26737 26738 08/02/2001 14.01.19 17
    0 26750 08/02/2001 14.52.14 1
    0 26751 08/02/2001 14.52.48 1
    26751 26752 08/02/2001 14.53.39 2
    0 26753 08/02/2001 14.53.54 1
    It fetches the rows in tree structure, but i need them order by creation_time desc with group by the tree structure (the level structure need not be sorted - only the latest message should be on top ). But if I used the order by creation_time desc this qry fetches the rows in reverse tree structure.
    The query should fetch the rows
    ORDER BY creation_time DESC and GROUPED BY tree.
    Expected Result:
    DIS_PARENT_OID OID CREATION_TIME LEVEL
    0 26753 08/02/2001 14.53.54 1
    26751 26752 08/02/2001 14.53.39 2
    0 26751 08/02/2001 14.52.48 1
    0 26750 08/02/2001 14.52.14 1
    0 26722 08/02/2001 13.58.04 1
    26722 26723 08/02/2001 13.58.16 2
    26723 26724 08/02/2001 13.58.29 3
    26724 26725 08/02/2001 13.58.41 4
    26725 26726 08/02/2001 13.58.54 5
    26726 26727 08/02/2001 13.59.05 6
    26727 26728 08/02/2001 13.59.15 7
    26728 26729 08/02/2001 13.59.26 8
    26729 26730 08/02/2001 13.59.40 9
    26730 26731 08/02/2001 13.59.51 10
    26731 26732 08/02/2001 14.00.05 11
    26732 26733 08/02/2001 14.00.16 12
    26733 26734 08/02/2001 14.00.26 13
    26734 26735 08/02/2001 14.00.37 14
    26735 26736 08/02/2001 14.00.48 15
    26736 26737 08/02/2001 14.01.00 16
    26737 26738 08/02/2001 14.01.19 17
    please suggest a solution
    thanks,
    Satheesh
    null

    The sorting variable is always the first item in the cluster.  When you sort an array of clusters, it sorts by the first item in the cluster.  If there are two identical values in the first item, it sorts by the second item, and so on.
    When you build your cluster, you want to put the items into the cluster in the sequence that you want to sort them by.  For example, if I was sorting names, I would put the last name as the first item in the cluster, then the first name, then any other information I want to keep with the name when I sort it, such as phone number, address, etc.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to show only the result line of a Query result ?

    Hi Experts,
    I want to show only the result line of the Query. Is this possible in query Designer ?
    In BeX Workbook, I can hide the rows but they grow or shrink dynamically and hence it is unpredictable how many rows to suppress.
    If you have any solutions/workarounds, please reply !
    Rekha

    VBA coding can be used to display just the Result rows.
    Somthing like this - modify as needed.
    This scans the range of query results looking to find the last row, then checks those rows to see if the word Result is found or not, deleting (or you could just hide) the detail rows.  There is also a LEAF option in BEx Boolean options that returns a 1 or 0 depending on whether a row is a detail or result that could also be used to hide rows rather than looking for the presence of "Result" in a particular column
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    For rownum = 17 To 64000 Step 1
    ' col 2 is the Total Result, col 3 is the User Group result
    If Cells(rownum, 2) = "" And Cells(rownum, 3) = "" Then
    lastrow = rownum - 1
    Exit For
    End If
    Next
    For rownum = lastrow To 17 Step -1
    If Cells(rownum, 2) = "Result" Or Cells(rownum, 3) = "Result" Then
    Rows(rownum).Hidden = False
    Else
    ' Rows(rownum).Hidden = True
    Rows(rownum).EntireRow.Delete
    End If
    Next
    End Sub

Maybe you are looking for

  • Slow load times on rented movies

    Recently we have been experiencing intermittent performance during streaming rented videos on our second generation Apple TV. For the second night in a row we would be watching a rented video when it would suddenly freeze and then say "Ready to play

  • OnPremise: Sharepoint Hosted App gives 401 unauthorized error while accessing UserProfile Rest Service

    Hi All, I have SharePoint hosted app deployed on On-Premise using(F5) which reads User Profile data consumes WCF(Hosted on same server) through REST API to insert data in to SQL DB(Different server). SharePoint hosted app was working as expected and

  • Airport Extreme and a Time Capsule - config recommendations?

    Hi! So I find myself (in a fortunate position?!) with a new Airport Extreme and a Time Capsule. I have very few requirements - I would like to be able to connect to the Internet wirelessly, and I'd like to be able to backup a couple of Macs using Tim

  • Configuring Fact sheet for CRM 2007

    Hi guys Went through best prcatice B08 and configured necessary steps for my factsheet Also checked previous topic discussions and found this subject header under this forum Configuring Fact sheet in IC CRM 2007 : Pls help I did exactly as said, fact

  • PP02 item category change

    Hi, when the system creates any PR against PP02 control key in order operation, it will have L item category, is it possible to change that to D type ?