DATE OF RETURN TO RQTABLEEVAL COLUMNS

Glad to have your contributions on this issue:

Work request:

Select * from table (rqTableEval)

cursor (select * from ORE_2254367518 ORDER BY heureDAY).

cursor (select "7" "numPeriods", 1 "ore.connect" of the DOUBLE),

' select CAST (number 1), CAST ("z" as VARCHAR (20)) heureDAY of the DOUBLE '.

"obiee. Forecast "))"

We return the as.character (heureDAY) in the code for R in obiee. Forecast

Output:

FORECAST, HEUREDAY

81578.14658, 31/12/2010

41887.31504, 01/01/2011

46520.18683, 02/01/2011

13436.88529, 03/01/2011

12547.63375, 04/01/2011

23576.50221, 05/01/2011

14007.20067, 06/01/2011

Request with the error:

Select * from table (rqTableEval)

cursor (select * from ORE_2254367518 ORDER BY heureDAY).

cursor (select "7" "numPeriods", 1 "ore.connect" of the DOUBLE),

"select CAST (number 1) forecast, TO_DATE(''2015-01-31'',''YYYY-MM-DD'') heureDAY of the DOUBLE."

"obiee. Forecast "))"

This same query-error if the heureDAY returned as.charcter () or as. Date() in the underlying code of R in obiee. Forecasts.

ORE does support the date data types back in data frames?

Thanks for your contributions

In the R code used (such as. Date(DF$timeDay), 'Y-% m-% d') to the col de heureDAY. The API format back to a character type. Using everything also. Date(DF$timeDay) has solved the problem and the result is obtained.

Thank you

Tags: Business Intelligence

Similar Questions

  • Columns of folder: by default, how can return the first column 'Name' without having to move it manually every time?

    Something's happened awhile and when I create a folder which appears the first column is the column 'Date modified '. By default, how can return the first column 'Name' without having to move it manually every time?

    Hello

    I suggest you to visit these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders#section_4

    http://Windows.Microsoft.com/en-us/Windows-Vista/folders-frequently-asked-questions

    It will be useful.

  • Data tab returns data differently in different instances of SQL Developer

    On my instance of SQL Developer, when I click on the data tab, the data is returned immediately via a select * table query, but on one of the machines of my developer, when she clicks on the data tab, Developer SQL executes a select query * table... order in...

    The column it is order by is NOT indexed and the query takes a long time to return data.   We cannot understand where SQL Developer's store this particular query and associating it with the data on its instance SQL Developer tab.

    Anyone can shed some light?

    Right click on the grid, and then select "remove persisted settings...". »

  • SQL Developer: How to copy the data with the output grid column headers?

    Hello

    I use the 2.1.1.64 Version.

    I run a SQL query, down the results grid in the "Query result" window below. Say that I get 10 rows returned, with 5 columns.

    I want to copy this whole grid, as well as the names/column headers to the Clipboard. If I can stick under the original query to document the results of this query.

    I can't find any way to do this. I can copy/paste the results grid, but it does not copy the headers.

    The only way I think to do is to go through many steps to export in a TXT file, then paste that. Unfortunately, that's a lot of steps wasted if I need to do it again and again, and more, the output is pasted in an ugly format with double quotes, etc..

    It seems that the easiest feature is copy and paste the entire grid of the results, and of course, you could the headers. Why is it so difficult/impossible to do?

    (I think that the toad has the same problem. DBArtisan lets you copy and paste the results together, as well as headers, however.)

    Any help would be appreciated!

    Thank you
    John

    Shift-Ctrl-C will copy the headers of columns as well as the selected data.

  • QUESTION: SE 2012 data display returns to the time graph each time

    Hello

    I have SigExp 2012.

    If I try to add a data view and make a pledge of graphic style, thermometer, etc., as soon as I have the right up until it clicks, add my TC chain, the data view returns immediately to a graph time.

    In addition, even if I use the graph of time, once I added the signal, it only let me see the string in a table, a chart of time or a waveform graph.  Those are the only choices.

    If I use a graph of time or a band of waveform graph, it does not read the signal correctly, but I can not configure the data view, the way I want it.

    Is this a bug or I do something wrong?

    Thank you!

    This occurs when you try to change the display of a signal in its raw format "waveform".
    You must convert your signals in scalar format. To do this simply add an amplitude and levels step (under: analysis > measures Time-Domain). Drag this DC signal newly converted to a new chart and right click on the graph to change the display.

    Honestly, I'm not sure why raw waveform signals are inherently limiting viewing functionality, but in such cases, it is.

    You can also; According to the devices on which you use and the order in which you add to your DAQmx Acquire, some default signals step to scalar signals without having to convert.

    See the attached screenshot and you'll see how the icons are different between the waveforms and scalar signals.

    Hope that helps

  • hp has extended the date of return to the offer of the College?

    hp has extended the date of return to the offer of the College?

    You need to ask HP directly for more information about this.

    This is the support forum for the consumer and not a business unit of HP.

  • Use the Quick Date year section in the column header

    Version 11.1.1.7

    I have a dashboard command prompt which invites for a date.

    My analysis is filtered on this prompt.

    My data looks like this:

    Accounting_Date FY1_Data FY2_Data FY3_Data

    31 AUGUST 2014 200 300 400

    AUGUST 31, 2013 275 325 450

    My requirement is to display the exercise as the heading of column (as opposed to FY1_Data, FY2_Data, FY3_Data).

    FY1_Data is the year of the accounting Date - 2.

    FY2_Data is the year of the Date of accounting order - 1

    FY3_Data is the year of the accounting Date

    So, for the first record in my table example, the column headers must be (2012, FY2013, FY2014)

    For the second disc, the column headers must be (fiscal year 2011, 2012, FY2013).

    To do this, I have tried the following to the first column only:

    I put the column header to FY@{Year1}

    Then I put my dashboard accounting cut-off Date prompt to fill a variable presentation (ActPrdDt).

    Then I created another guest of 'Variable' dashboard with a year1 variable name.

    In this prompt, I used SQL results as the default selection:

    Select 'Date_Table '. "' Accounting_Date ' from 'MySubjectArea' where 'Date_Table '. "" Accounting_Date "= @{ActPrdDt}

    The problem is that the full date is displayed in the column header (AFA 08/31/2014).

    I tried to modify the sql statement in my second guest of dashboard for

    Select TO_CHAR ("Date_Table". "Accounting_Date", "YYYY")-2 of... "

    but the column header displays all values in the column, which is usually what it displays when there is an error in the sql statement.

    Is it possible to manipulate the sql statement to get only the year of the accounting Date and subtract 1 or 2 him?


    I changed the sql statement

    Of

    TO_CHAR ("Date_Table". "Accounting_Date", "YYYY")-2 "

    TO

    extract (year of "Date_Table". "Accounting_Date")-2 "

    This solved my problem.

  • Data loading Wizard loses the column mapping

    I created page APEX "Loading data" type pages They are currently used to complete the staging tables and worked great in my existing environment. However; I migrated to the DB using export and it imported in a new environment. Similarly, I have my APEX application exported and imported into the new environment. It seems that the second page of the wizard to load data has lost the table mapping, it loads in. On each column in the second page, the only option for the column name is "do not load". What do I need move above, so that my pages of the wizard to load data remembers the names of columns to the table, they have been mapped to in the old environment?

    Hi David,

    You don't mention what version of APEX you use. Their problem in 4.1 in the export file where the owner has not been updated:

    wwv_flow_api.create_load_table(
    p_id =>3570143708960669327+ wwv_flow_api.g_id_offset,
    p_flow_id => wwv_flow.g_flow_id,
    p_name =>'Load Employees',
    p_owner =>'PAUL',
    p_table_name =>'EMP',
    p_unique_column_1 =>'EMPNO',
    p_is_uk1_case_sensitive =>'N',
    p_unique_column_2 =>'',
    p_is_uk2_case_sensitive =>'N',
    p_unique_column_3 =>'',
    p_is_uk3_case_sensitive =>'N',
    p_wizard_page_ids =>'',
    p_comments =>'');
    

    Try changing the p_owner-online online "PAUL" in your export file and change the name of the schema of your import in.

    Thank you

    Paul

  • Date of maturity in AP column

    Hello friends,

    In my report in the date field, I printed payment date, but my client wants the date of maturity in this area

    could you please tell me difference between the due date and the payment date

    and in which table, we can find the date of maturity in AP column

    Now, I took AP_INV_SELECTION_CRITERIA_ALL check_date... I need to replace that with due date

    Please guide me

    Thank you
    Durga

    Published by: 805567 on December 10, 2010 05:40

    Due date is also called the future dated payment.

    Try AP_CHECKS_ALL. FUTURE_PAY_DUE_DATE or APFV_PAYMENT_SCHEDULES. FUTURE_PAY_DUE_DATE or the FUTURE_PAY_DUE_DATE column in the tables below
    AP_SELECTED_INVOICES_ALL
    AP_PAYMENT_SCHEDULES_ALL
    AP_SELECTED_INVOICE_CHECKS_ALL

    Payment date is the date on which the payment is made. Sometimes you create a payment but you want the Bank to perform the payment at a later date. This later date is called deadline.

    Hope that answers your question,
    Sandeep Gandhi

  • Show data as a percentage of column with a static table

    Hello
    I have a problem of calculating one percent in a table. I have two columns in the criteria tab:

    Departments and degree

    I need an extra column % calc total departments for each Department. I know that I can do with PivotTable, create a new column and put: view-> data as per cent of-> column but I do with the static table.

    Is possible to do?

    Thank you!!!

    Alex,

    You can try the following example here:

    http://www.biconsultinggroup.com/knowledgebase.asp?CategoryID=198&SubCategoryID=364

    by using the sum (measure of the size attribute)

    This should give you access total general in the report in a column, you can drift % of.

    HTH, if it is correct, please mark answered / reward points, as you see fit to do!
    Alastair

  • Giving date based return number interval

    Here is an example of what I am trying to accomplish. The setting I will use is which days are available for work in the format of (0,1,1,1,1,1,0).

    The first digit represents the Sunday and the last is Saturday. If the day was 0 you have to jump that date, but if the date has a 1 you can use this date. So if the data contained an 0 for Monday if will have to jump Monday when days are added. I can find a way to put the SQL set to skip the Saturday and Sunday, but may not know how to use the format (0,1,1,1,1,1,0) to determine if the work is authorized.

    Here's the SQL I use as a concept I need help on how to incorporate it.

    ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
    CREATE or REPLACE function custom_add_days
    (start_date_in date, number of days_in)
    date of return
    IS
    number of v_counter;
    date of v_new_date;
    number of v_day_number;
    BEGIN

    / * This routine adds a specified number of days (ie: days_in) at a date (ie: start_date). */
    / * It will ignore all weekend days - Saturday and Sunday * /.
    v_counter: = 1;
    v_new_date: = start_date_in;

    / * Loop to determine how many days to add * /.
    all in v_counter < = days_in
    loop
    / * Add a day * /.
    v_new_date: = v_new_date + 1;
    v_day_number: = to_char (v_new_date, 'd');

    / * Increment counter if day falls between Monday to Friday * /.
    If v_day_number > = 2 and v_day_number < = 6 then
    v_counter: = v_counter + 1;
    end if;

    end loop;

    RETURN v_new_date;

    Sorry did not see your last post.

    Maybe something like that (changed your function a bit):

    SQL> CREATE OR REPLACE FUNCTION custom_add_days (
      2     start_date_in   DATE,
      3     work_days       VARCHAR2,
      4     days_in         NUMBER
      5  )
      6     RETURN DATE
      7  IS
      8     v_counter          NUMBER;
      9     v_new_date         DATE;
     10     v_day_number       NUMBER;
     11     v_loop_counter     NUMBER := 0;
     12     work_days_status   NUMBER;
     13  BEGIN
     14  /* This routine will add a specified number of days (ie: days_in) to a date (ie: start_date). *
    /
     15  /* It will skip all weekend days - Saturdays and Sundays */
     16     v_counter := 1;
     17     v_new_date := start_date_in;
     18
     19  /* Loop to determine how many days to add */
     20     WHILE v_counter <= days_in
     21     LOOP
     22  /* Add a day */
     23        v_new_date := v_new_date + 1;
     24        v_day_number := TO_NUMBER(TO_CHAR (v_new_date, 'd'));
     25        v_loop_counter := v_loop_counter + 1;
     26        work_days_status :=
     27           TO_NUMBER (SUBSTR (REPLACE (work_days, ','),
     28                              CASE
     29                                 WHEN MOD (v_loop_counter, 7) = 0
     30                                    THEN 7
     31                                 ELSE MOD (v_loop_counter, 7)
     32                              END,
     33                              1
     34                             )
     35                     );
     36
     37  /* Increment counter if day falls between Monday to Friday */
     38        IF  work_days_status = 1
     39        THEN
     40           v_counter := v_counter + 1;
     41        END IF;
     42     END LOOP;
     43
     44     RETURN v_new_date;
     45  END;
     46  /
    
    Function created.
    
    SQL> show errors
    No errors.
    SQL> SELECT sysdate FROM Dual
      2  /
    
    SYSDATE
    ---------
    01-JUL-09
    
    1 row selected.
    
    SQL> SELECT CUSTOM_ADD_DAYS(sysdate, '1,0,1,1,1,0,1', 3) FROM Dual
      2  /
    
    CUSTOM_AD
    ---------
    05-JUL-09
    
    1 row selected.
    
    SQL> 
    

    Kind regards
    JO

    Published by: Joice John July 1, 2009 06:08

  • Search for value in the subset of data and returns a single line.

    Hello

    I wonder if you can help me with a query.

    I want to return a single line of data below

    where the Rno = 1 but also include a column to indicate a code of T555 tran was found in the subset (based on customer no)

    I used an analytic function (row_number) to enter the data in the following order and wonder if there is something similar for helping me understand the transaction code.

    Customer without Tran Code TranDate NWR

    1 T345 01/01/2001 1

    1 B455 01/01/1999 2

    1 T555 01/01/1998 3

    1 R433 01/01/1997 4

    1 "T543" 01/01/1996 5

    Thank you


    SQL> with t
      2  as
      3  (
      4  select 1 client_no, 'T345' tran_code, to_date('01/01/2001', 'dd/mm/yyyy') trandate, 1 rno
      5    from dual union all
      6  select 1 client_no, 'B455' tran_code, to_date('01/01/1999', 'dd/mm/yyyy') trandate, 2 rno
      7    from dual union all
      8  select 1 client_no, 'T555' tran_code, to_date('01/01/1998', 'dd/mm/yyyy') trandate, 3 rno
      9    from dual union all
     10  select 1 client_no, 'R433' tran_code, to_date('01/01/1997', 'dd/mm/yyyy') trandate, 4 rno
     11    from dual union all
     12  select 1 client_no, 'T543' tran_code, to_date('01/01/1996', 'dd/mm/yyyy') trandate, 5 rno
     13    from dual
     14  )
     15  select client_no
     16       , tran_code
     17       , trandate
     18       , rno
     19       , case when t555_cnt > 0 then 'YES' else 'NO' end t555
     20    from (
     21            select t.*
     22                 , count(decode(tran_code, 'T555', 1)) over() t555_cnt
     23              from t
     24             where client_no = 1
     25         )
     26   where rno = 1;
    
     CLIENT_NO TRAN TRANDATE         RNO T55
    ---------- ---- --------- ---------- ---
             1 T345 01-JAN-01          1 YES
    
    SQL>
    
  • Fill in the data in terms of different columns no lines?

    Hello world

    My version of DB is

    BANNER

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

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    Now, if I want to see number of carpenters in a month individual per year on the emp table and then

    Select to_char(hiredate,'MON/YY') as MONTH_YEAR, count (*) as no_of_joiners of the emp by to_char(hiredate,'MON/YY') group.

    No it will return the month/year and not carpenters during this period.

    But I want to fill the same data that "each month will be a separate column and no value of carpenters will appear in the relevant month/year column»

    How can I do?

    Kind regards

    BS2012.

    Hi Frank,.

    I have it. Please check on the following query. Hoooooaaaaaa

    SELECT count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "JAN/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JAN/81 ' ") END) AS"JAN/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "FEB/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' FEB/81 ' ") END) AS"FEB/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' MAR/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' MAR/81 ' ") END) AS"MAR/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' APR/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' APR/81 ' ") END) AS"APR/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' CAN / 81'

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' CAN / 81') END) AS "CAN / 81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "JUN/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JUN/81 ' ") END) AS"JUN/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "JUL/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JUL/81 ' ") END) AS"JUL/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "AUG/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' AUG/81 ' ") END) AS"AUG/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' MS/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' MS/81 ' ") END) AS THE"SEP/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "OCT/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' OCT/81 ' ") END) AS"OCT/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "NOV/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' NOV/81 ' ") END) AS"NOV/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "DEC/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' DEC/81 ' ") END) AS"DEC/81 ".

    FROM EMP;

  • Dynamically find the Integer and the Data Type of a Decimal column

    Table: test (INTE number, DECISION number (7.2)) of the

    Try to dynamically determine the type of column.

    Use select user_tab_columns data_type. It returns only the NUMBER that does not indicate whether the column is an integer or a decimal data type.

    Is there a way to dynamically determine whether a column is around or type decimal?

    Thank you

    create table test (INTE, DECI number number (7.2));

    Select column_name, data_type, data_precision from dba_tab_columns where table_name = 'TEST '.

    COLUMN_NAME DATA_TYPE DATA_PRECISION
    ------------------------------ ---------------------------------------------------------------------------------------------------------- --------------
    NUMBER OF INTE
    DECI, NUMBER 7

  • xmlns causes data not returned?

    I began reading on XQuery and tried to query the service from Amazon.

    I get all the data from the query. It seems that it is because of the xmlns property. In other words, the following returns "no selected lines.
    SELECT
         *
    FROM
         XMLTABLE
         (
          'ItemSearchResponse'
          PASSING
              XMLTYPE('<ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">A</ItemSearchResponse>')
         );
    However, removing xmlns returns: < ItemSearchResponse > is < / ItemSearchResponse >
    SELECT
         *
    FROM
         XMLTABLE
         (
          'ItemSearchResponse'
          PASSING
              XMLTYPE('<ItemSearchResponse>A</ItemSearchResponse>')
         );
    I ignore the xmlns somehow?

    I ignore the xmlns somehow?

    No, you must declare:

    SQL> SELECT *
      2  FROM XMLTable(
      3         XMLNamespaces(default 'http://webservices.amazon.com/AWSECommerceService/2011-08-01')
      4           , '/ItemSearchResponse'
      5             PASSING     XMLTYPE('A')
      6         COLUMNS content_val varchar2(30) PATH '.'
      7       );
    
    CONTENT_VAL
    ------------------------------
    A
     
    

    It is all documented in the DB XML Dev Guide:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb_xquery.htm#CBAGCBGJ

Maybe you are looking for

  • my emails are going to wrong address

    Hello This morning, I sent an email to my e-mail at end of test, but I don't have this email in my Inbox. After a while, someone sent to me by e-mail and has indicated it is getting my emails in his email inbox. Here is the content of this e-mail guy

  • Disk is too slow or overloaded system

    In one of my projects, every time, he gets at the helm of the 9 it still gives me the "disk is too slow or overloaded system' warning. I have 24 GB of RAM, 6 core 3.33 ghz processor, my project running on an external hard drive, and I froze all my tr

  • Computer laptop AUTO Detection - your product is not supported by this site

    I reinstalled Windows 7 successfully and decided to see if there were updates of Toshiba. The above message has been received. It's never happened before.I have aToshiba Satellite L350-277. PSLD4E-00E004MDWIndows 7 Edition Home Premium. I tried AUTO

  • Can not install the latest version of Skype: error 1603

    Hi, I get the error code 1603 spype failed while it cannot remove 6.18 version of Skype. I am currently using version 6.11, any ideas how to do to install the new version? Unable to connect. Thank you.

  • 8 hours battery, rubbish

    My Acer laptop has to have eight hours of talk time. However, each time I reload completely, then ONLY SURF THE INTERNET USING A ADAPTER WIFI which is connected via USB (NOT WATCH ANY VIDEO, NO AUDIO... Everything SIMPLY SURF the WEB), how is it, my