table problem model clause / dual?

Hi all, just experiment with the model using clause:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

this:
with t as (select 1 num, 1 lvl from dual)
select num, f1
  from t
MODEL
   dimension by (lvl)
   measures (num f1, num f2)
   rules iterate(3)
       (f1[any] = f1[cv()] + f2[cv()]);
works very well

this:
with t as (select 1 num, 1 lvl from dual connect by level <= 1)
select num, f1
  from t
MODEL
   dimension by (lvl)
   measures (num f1, num f2)
   rules iterate(3)
       (f1[any] = f1[cv()] + f2[cv()]);
              
results in
ORA-32614: illegal MODEL SELECT expression
32614. 00000 -  "illegal MODEL SELECT expression"
*Cause:    An expression other than MODEL aliases, constants,
           or expressions of the two is specified in the
           MODEL SELECT clause.
*Action:   Reformulate the query, perhaps nesting inside another SELECT.
Error at Line: 2 Column: 7
What is going on?

Hello

In fact, the first query should have failed with the same error because the Digital projection is not defined anywhere in the TYPE clause (it defines only LVL, F1 and F2).

But what happens here is that the subquery of the DOUBLE is merged into the main and constant query are used instead.
This is confirmed by a 10053 trace:

Final query after transformations:******* UNPARSED QUERY IS *******
SELECT 1 "NUM","F1" "F1"
FROM "SYS"."DUAL" "DUAL"
MODEL
  DIMENSION BY (1 "LVL")
  MEASURES (1 "F1",1 "F2")
  UNIQUE  DIMENSION
  RULES  UPSERT  ITERATE (3)(
    UPDATE "F1"["LVL"IS ANY]=("F1"[( CURRENTV("LVL"))])+("F2"[( CURRENTV("LVL"))]))

(formatted)

Tags: Database

Similar Questions

  • example of model clause

    I want to learn about the model clause, if everyone learned pls share your knowledge, it will be useful to everyone, the examples provided in the oracle documentation are really pathetic. pls share your knowledge with which any person can understand, as good examples

    What is a measure, and what it does?
    What is a size clause?
    What is the rules how to use and what it does.

    If oracle documentation is reading my post, hope that they will understand how it is difficult to understand the examples provided in the oracle documentation

    If you are familiar with the OOPS concepts, I think it will be very easy to understand the concept of MODEL... I would try to explain with a simple example.

    Think of a table, for example POPULATION_ARRAY, that allows to store the population for countries for different years. Means of the table are defined as

    POPULATION_ARRAY (number of people) indexed by [COUNTRY_ID, YEAR]

    Normally, we define the values as below for the tables...

    
        population_array[INDIA,2012].population := 130,000,000;
    

    The ID of the country and the YEAR here are the dimensions. The POPULATION is a MEASURE.

    Another element in the array will be

        population_array[CHINA,2012].population := 150,000,000;
    

    Now suppose I want to do a calculation to know the population on 2022 on an explanation that the population will double (!) for these countries in 2022.
    Will let you know how you can do this in EXCEL. Same thing can be done using the MODEL. (And much more...!)

    For simplicity we will fill all these data in a single table.

    SQL> create table country(country_id varchar2(30),
      2  year number,population number);
    
    Table created.
    
    SQL> insert into country values('INDIA',2012,130000000);
    
    1 row created.
    
    SQL> insert into country values('CHINA',2012,150000000);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from country;
    
    COUNTRY_ID                           YEAR POPULATION
    ------------------------------ ---------- ----------
    INDIA                                2012  130000000
    CHINA                                2012  150000000
    

    Here we do not have values for 2022.Now how to calculate and display the results using MODEL?

    As mentioned, the dimensions are COUNTRY_ID, YEAR. The fatc that interests us is the POPULATION.

    Thus, the application of the MODEL will be as follows, for INDIA

    SQL> select *
      2  from country
      3  model
      4   dimension by (country_id,year)
      5   measures(population)
      6    rules upsert all
      7     (
      8      population['INDIA',2022] = population['INDIA',2012]*2
      9     );
    
    COUNTRY_ID                           YEAR POPULATION
    ------------------------------ ---------- ----------
    CHINA                                2012  150000000
    INDIA                                2012  130000000
    INDIA                                2022  260000000
    

    So here we use MODEL as an EXCEL spreadsheet.

    You will notice that us hard coded name of the country here, which can be avoided using ANY keyword and cv (present value) function.

    SQL> select *
      2  from country
      3  model
      4   dimension by (country_id,year)
      5   measures(population)
      6    rules upsert all
      7     (
      8      population[ANY,2022] = population[cv(),2012]*2
      9     );
    
    COUNTRY_ID                           YEAR POPULATION
    ------------------------------ ---------- ----------
    INDIA                                2012  130000000
    CHINA                                2012  150000000
    CHINA                                2022  300000000
    INDIA                                2022  260000000
    

    Suppose now, I do not have the details of the USA for 2012. But I guess that the US population is half that of INDIA. That can be added as follows

    SQL> select *
      2  from country
      3  model
      4   dimension by (country_id,year)
      5   measures(population)
      6    rules upsert all
      7     (
      8      population['USA',ANY] = population['INDIA',cv()]/2,
      9      population[ANY,2022] = population[cv(),2012]*2
     10     );
    
    COUNTRY_ID                           YEAR POPULATION
    ------------------------------ ---------- ----------
    INDIA                                2012  130000000
    CHINA                                2012  150000000
    USA                                  2012   65000000
    CHINA                                2022  300000000
    INDIA                                2022  260000000
    USA                                  2022  130000000
    
    6 rows selected.
    

    With this basis, go gold http://docs.oracle.com/cd/B28359_01/server.111/b28313/sqlmodel.htm and ask any doubts...

    Published by: JAC on January 30, 2013 13:40
    Please note: this is a very simple example, which may not require the MODEL clause as such...

  • Changing aid necessary table problem

    Hello. I hope someone can help me with this problem.

    I have two tables, an and mv. Create the following script:

    create table (mv)
    the moduleId Char (2) CONSTRAINT ck_moduleId CHECK (moduleId in ("M1", "M2", "M3", "M4', 'M5', 'M6', 'M7', 'M8'")).
    credit ck_credits Number (2) CONSTRAINT CHECK (credits (10, 20, 40));
    constraint pk_mv primary key (moduleId)
    );

    create table (its)
    stuId Char (2) CONSTRAINT ck_stuId CHECK (stuId ('S1', 'S2', 'S3', 'S4', 'S5')),
    moduleId tank (2),
    primary key constraint (stuId, moduleId) pk_sa,
    constraint fk_moduleid foreign key (moduleId) references (moduleId) mv
    );

    And the scripts below is to insert data into the two:

    insert into VALUES mv ("M1", 20)
    /
    insert into VALUES mv ("M2", 20)
    /
    insert into VALUES mv ("M3", 20)
    /
    insert into VALUES mv ("M4", 20)
    /
    Insert in mv VALUES ('M5', 40)
    /
    insert into VALUES mv ("M6", 10)
    /
    insert into VALUES mv ("M7", 10)
    /
    Insert in mv VALUES ('M8', 20)
    /


    insert into a VALUES ('S1', 'M1')
    /
    insert into a VALUES ('S1', 'M2')
    /
    insert into a VALUES ('S1', 'M3')
    /
    insert into a VALUES ('S2', 'M2')
    /
    insert into a VALUES ('S2', 'M4')
    /
    insert into a VALUES ('S2', 'M5')
    /
    insert into a VALUES ('S3', 'M1')
    /
    insert into a VALUES ('S3', 'M6')
    /

    Now for the real problems.

    First of all, I need to try to overcome the problem of table mutation ensure that stuid = S1 in table its can not take the two moduleId M5 and M6.

    Just one or the other. I created a single trigger, but runs aground because of the changing table problem.

    The second problem that I need to overcome is that none of the stuids can have the ModuleID where total value of more than 120 credit credits. Credit value is stored in the table of mv.

    Thank you very much in advance for any help.

    Use a statement-level trigger:

    First of all, I need to try to overcome the problem of table mutation ensure that stuid = S1 in table its can not take the two moduleId M5 and M6.

    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
     10    if c > 1 then
     11       raise_application_error(-20001,'S1 on both M5 and M6!!');
     12    end if;
     13  end;
     14  /
    
    Trigger created.
    
    SQL> select * from sa;
    
    ST MO
    -- --
    S1 M1
    S1 M2
    S1 M3
    S2 M2
    S2 M4
    S2 M5
    S3 M1
    S3 M6
    
    8 rows selected.
    
    SQL> insert into sa values ('S1','M5');
    
    1 row created.
    
    SQL> insert into sa values ('S1','M6');
    insert into sa values ('S1','M6')
    *
    ERROR at line 1:
    ORA-20001: S1 on both M5 and M6!!
    ORA-06512: at "SCOTT.SA_TRG", line 9
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    

    The second problem that I need to overcome is that none of the stuids can have the ModuleID where total value of more than 120 credit credits. Credit value is stored in the table of mv

    SQL> create or replace trigger sa_trg
      2  after insert or update on sa
      3  declare
      4  c number;
      5  begin
      6    select count(distinct moduleId) into c
      7    from sa
      8    where stuid = 'S1'
      9    and moduleId in ('M5','M6');
     10    if c > 1 then
     11       raise_application_error(-20001,'S1 on both M5 and M6!!');
     12    end if;
     13
     14    select count(*) into c from (
     15    select stuid
     16    from mv, sa
     17    where sa.moduleid=mv.moduleid
     18    group by stuid
     19    having sum(credits)>120);
     20
     21    if c > 0 then
     22       raise_application_error(-20002,'A student cannot have more than 120 credits!!');
     23    end if;
     24
     25  end;
     26  /
    
    Trigger created.
    
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    
    ST SUM(CREDITS)
    -- ------------
    S3           30
    S2           80
    S1          100
    
    SQL> insert into sa
      2  values ('S1','M4');
    
    1 row created.
    
    SQL>   select stuid, sum(credits)
      2  from mv, sa
      3  where sa.moduleid=mv.moduleid
      4  group by stuid;
    
    ST SUM(CREDITS)
    -- ------------
    S3           30
    S2           80
    S1          120
    
    SQL> insert into sa
      2  values ('S1','M7');
    insert into sa
    *
    ERROR at line 1:
    ORA-20002: A student cannot have more than 120 credits!!
    ORA-06512: at "SCOTT.SA_TRG", line 20
    ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
    

    Max
    http://oracleitalia.WordPress.com

  • Join the table orders from clause

    Hi all

    Who is the effective way to join the tables in from clause. I have two tables first with 20 lakh records and second containing 10 lakh recods.
     
    QUERY 1:  SELECT T4.ID,T4.ISO_NAME  FROM T,T4 
    WHERE T4.ISO_NAME LIKE '%US%' AND T.ID=T4.ID;
    
    QUERY 2:  SELECT T4.ID,T4.ISO_NAME  FROM T4,T 
    WHERE T4.ID=T.ID AND  T4.ISO_NAME LIKE '%US%';
    
    T(ID IS PRIMARY KEY) 
    (20 lakh records)
    
    T4 (ID IS PRIMARY KEY ) 
    (10 lakh records)
    ---------------------
    ID     ISO_NAME
    100  US,UK,IN,BR
    101  UK,US,BR,IN
    102  BR,UK,US,IN
    
    
    Note: No index on ISO_NAME .
    Who is the effective query 1 or 2. Please suggest me if you have an idea to rewrite the query.



    Kind regards
    Rajasekhar

    Published by: SuNRiZz68 on January 29, 2009 04:22

    In practical terms, Alex is right. Sometimes it matter what table is selected first, but does the CBO generally a very good job of deciding what you need to select the first (assuming that your statistics are up to date) but this is the situation you are trying to avoid as much as possible.

    If you specify a table main command tables in the clause is not reliable and should be used - but think before using advice and don't do that when necessary.

    Which table to select depends firstly on the join method in the execution plan. Nested loops joins perform better by selecting in the smaller table first, make a loop on the largest table. Joins the smaller set hash table in memory first, and then go through the larger table, perform searches in memory. He can't make any difference, what table is read using first the merger joins and sort.

    Back to your original question. Using the cost-based optimizer, both queries will probably roll the same because newer versions of Oracle (9i, 10g) often transform queries for efficiency before the execution anyway. According to what do you or do not request should probably run a nested loop or hash join. With a small set of data creaing index and using a search of nested loops will probably be faster to avoid full table scans. the '%' in the LIKE clause leader would ignore an index on the ISO_NAME column in any case if a main column may be used in a composite index. All this is based on the approximation using the information provided; Tuning questions should always be tested to unexpected developments.

  • XMLType and model Clause

    Hello-

    We face a problem which I hope I can explain clearly and concisely.

    We have a relational Oracle table with an XMLType column. the relational table has some fields in addition to the profiling XMLType column.

    CREATE TABLE 'CLAIM_OUTPUT_XML '.

    (NUMBER OF 'SEQ_NUM',

    NUMBER OF "BATCH_ID."

    VARCHAR2 (BYTE 9) "MEMBER_ID"

    NUMBER OF "MBR_COB_SFX."

    NUMBER OF "CLAIM_NBR."

    VARCHAR2 (3 BYTE) "CLAIM_SFX."

    DATE OF THE "PRINT_DATE."

    VARCHAR2 (30 BYTE) "DOC_TYPE."

    "CLAIM_OUTPUT" 'SYS '. "" XMLTYPE.

    DATE OF THE "CRTD_DT."

    VARCHAR2 (30 BYTE) "CRTD_BY".

    );

    INSERT INTO CLAIM_OUTPUT_XML (SEQ_NUM

    BATCH_ID

    MEMBER_ID

    MBR_COB_SFX

    CLAIM_NBR

    CLAIM_SFX

    PRINT_DATE

    DOC_TYPE

    CLAIM_OUTPUT)

    VALUES (1

    2015072015

    , "ABCDEF123".

    0

    61773667

    null

    TRUNC (SYSDATE)

    , "EOB".

    XMLTYPE ("< claim >

    < ClaimInfo >

    < claim >

    < CLAIM_NBR > 61773667 < / CLAIM_NBR >

    < CLAIM_SFX / >

    < MEMBER_ID > ABCDEF123 < / SSN >

    < MBR_COB_SFX > 0 < / SSN_COB_SFX >

    < > 00 DEP < / DEP >

    MEMBER of < UD_PATIENT_TYPE > < / UD_PATIENT_TYPE >

    the PATIENT NAME < UD_PATIENT_NAME > < / UD_PATIENT_NAME >

    < DOCTOR_PFX > T < / DOCTOR_PFX >

    < DOCTOR_NBR > 123123123 < / DOCTOR_NBR >

    < DOCTOR_SFX > 0 < / DOCTOR_SFX >

    < GRP_NBR > GRP_NBR < / GRP_NBR >

    P < INSURER > < / INSURER >

    < ClaimDetails >

    < ClaimDetail >

    < CLAIM_NBR > 61773667 < / CLAIM_NBR >

    < CLAIM_SFX / >

    < CLAIM_LINE > 1 < / CLAIM_LINE >

    < MEMBER_ID > ABCDEF123 < / SSN >

    < MBR_COB_SFX > 0 < / SSN_COB_SFX >

    < > 00 DEP < / DEP >

    < GRP_NBR > GRP_NBR < / GRP_NBR >

    P < INSURER > < / INSURER >

    C < PLAN_TYPE > < / PLAN_TYPE >

    < DOCTOR_PFX > T < / DOCTOR_PFX >

    < DOCTOR_NBR > 123123123 < / DOCTOR_NBR >

    < DOCTOR_SFX > 0 < / DOCTOR_SFX >

    < DOC_FEES > 116 < / DOC_FEES >

    < SCH_FEE > 0 < / SCH_FEE >

    < COB_AMT > 0.00 < / COB_AMT >

    < COB_COMPANY / >

    < PTX_COPAY > 0 < / PTX_COPAY >

    < DEDUCT_AMT > 0.00 < / DEDUCT_AMT >

    < OVER_AMT > 0 < / OVER_AMT >

    < ALLOW_AMT > 0 < / ALLOW_AMT >

    < ENTERED_BY > N < / ENTERED_BY >

    < PAY_IND > N < / PAY_IND >

    < EXPLAIN_CODE1 > AF < / EXPLAIN_CODE1 >

    < EXPL1_DESC > ORTHODONTICS COVERAGE AVAILABLE ONLY IF there IS a SERIOUS MEDICAL CONDITION < / EXPL1_DESC >

    < EXPL1_DEN_DESC / >

    P8 < EXPLAIN_CODE2 > < / EXPLAIN_CODE2 >

    < EXPL2_DESC > SERVICE a TREATY BASED ON THE CLAIM FORM DESCRIPTION < / EXPL2_DESC >

    < EXPL2_DEN_DESC / >

    < EXPLAIN_CODE3 / >

    < EXPL3_DESC / >

    < EXPL3_DEN_DESC / >

    < SERVICE_DATE / >

    < ADA_CODE > 8670 < / ADA_CODE >

    a TREATMENT ORTHODONTIQUE PERIODICAL < ADA_DESC > < / ADA_DESC >

    BRACES < ADA_SHORT_DESC > < / ADA_SHORT_DESC >

    < HPLX_CODE > 8420 < / HPLX_CODE >

    < HPLX_DESC / >

    < UD_AGE_LIMITATION / >

    < TEETH / >

    < SURFACE / >

    < COB_RES_CRD > 0 < / COB_RES_CRD >

    < PTX_RESP > 116.00 < / PTX_RESP >

    < PAY_CODE_PRT > N < / PAY_CODE_PRT >

    < UD_SHOW_PTX_RESP_MSG > Y < / UD_SHOW_PTX_RESP_MSG >

    < / ClaimDetail >

    < / ClaimDetails >

    < / claim >

    < EOB_Specific >

    < SendToInfo >

    COPY of PROVIDER < UD_COPY_TO > < / UD_COPY_TO >

    < UD_COPY_TO_FULL > COPY PROVIDER - assigned doctor benefits < / UD_COPY_TO_FULL >

    < / SendToInfo >

    < / EOB_Specific >

    < / ClaimInfo >

    (< / request > ')

    );

    INSERT INTO CLAIM_OUTPUT_XML (SEQ_NUM

    BATCH_ID

    MEMBER_ID

    MBR_COB_SFX

    CLAIM_NBR

    CLAIM_SFX

    PRINT_DATE

    DOC_TYPE

    CLAIM_OUTPUT)

    VALUES (2

    2015072015

    , "ABCDEF123".

    0

    61773667

    null

    TRUNC (SYSDATE)

    , "EOB".

    XMLTYPE ("< claim >

    < ClaimInfo >

    < claim >

    < CLAIM_NBR > 61773667 < / CLAIM_NBR >

    < CLAIM_SFX / >

    < MEMBER_ID > ABCDEF123 < / SSN >

    < MBR_COB_SFX > 0 < / SSN_COB_SFX >

    < > 00 DEP < / DEP >

    MEMBER of < UD_PATIENT_TYPE > < / UD_PATIENT_TYPE >

    the PATIENT NAME < UD_PATIENT_NAME > < / UD_PATIENT_NAME >

    < DOCTOR_PFX > T < / DOCTOR_PFX >

    < DOCTOR_NBR > 123123123 < / DOCTOR_NBR >

    < DOCTOR_SFX > 0 < / DOCTOR_SFX >

    < GRP_NBR > GRP_NBR < / GRP_NBR >

    P < INSURER > < / INSURER >

    < ClaimDetails >

    < ClaimDetail >

    < CLAIM_NBR > 61773667 < / CLAIM_NBR >

    < CLAIM_SFX / >

    < CLAIM_LINE > 1 < / CLAIM_LINE >

    < MEMBER_ID > ABCDEF123 < / SSN >

    < MBR_COB_SFX > 0 < / SSN_COB_SFX >

    < > 00 DEP < / DEP >

    < GRP_NBR > GRP_NBR < / GRP_NBR >

    P < INSURER > < / INSURER >

    C < PLAN_TYPE > < / PLAN_TYPE >

    < DOCTOR_PFX > T < / DOCTOR_PFX >

    < DOCTOR_NBR > 123123123 < / DOCTOR_NBR >

    < DOCTOR_SFX > 0 < / DOCTOR_SFX >

    < DOC_FEES > 116 < / DOC_FEES >

    < SCH_FEE > 0 < / SCH_FEE >

    < COB_AMT > 0.00 < / COB_AMT >

    < COB_COMPANY / >

    < PTX_COPAY > 0 < / PTX_COPAY >

    < DEDUCT_AMT > 0.00 < / DEDUCT_AMT >

    < OVER_AMT > 0 < / OVER_AMT >

    < ALLOW_AMT > 0 < / ALLOW_AMT >

    < ENTERED_BY > N < / ENTERED_BY >

    < PAY_IND > N < / PAY_IND >

    < EXPLAIN_CODE1 > AF < / EXPLAIN_CODE1 >

    < EXPL1_DESC > ORTHODONTICS COVERAGE AVAILABLE ONLY IF there IS a SERIOUS MEDICAL CONDITION < / EXPL1_DESC >

    < EXPL1_DEN_DESC / >

    P8 < EXPLAIN_CODE2 > < / EXPLAIN_CODE2 >

    < EXPL2_DESC > SERVICE a TREATY BASED ON THE CLAIM FORM DESCRIPTION < / EXPL2_DESC >

    < EXPL2_DEN_DESC / >

    < EXPLAIN_CODE3 / >

    < EXPL3_DESC / >

    < EXPL3_DEN_DESC / >

    < SERVICE_DATE / >

    < ADA_CODE > 8670 < / ADA_CODE >

    a TREATMENT ORTHODONTIQUE PERIODICAL < ADA_DESC > < / ADA_DESC >

    BRACES < ADA_SHORT_DESC > < / ADA_SHORT_DESC >

    < HPLX_CODE > 8420 < / HPLX_CODE >

    < HPLX_DESC / >

    < UD_AGE_LIMITATION / >

    < TEETH / >

    < SURFACE / >

    < COB_RES_CRD > 0 < / COB_RES_CRD >

    < PTX_RESP > 116.00 < / PTX_RESP >

    < PAY_CODE_PRT > N < / PAY_CODE_PRT >

    < UD_SHOW_PTX_RESP_MSG > Y < / UD_SHOW_PTX_RESP_MSG >

    < / ClaimDetail >

    < / ClaimDetails >

    < / claim >

    < EOB_Specific >

    < SendToInfo >

    MEMBER COPY < UD_COPY_TO > < / UD_COPY_TO >

    < UD_COPY_TO_FULL > COPY MEMBER - benefits assigned to doctor < / UD_COPY_TO_FULL >

    < / SendToInfo >

    < / EOB_Specific >

    < / ClaimInfo >

    (< / request > ')

    );

    The generated XML is used to provide raw data to third-party documents generation software. Before send us the data to the third party software, we need to predetermine the number of documents that are part of a shipment (as part of the requirements for other third party software, we use). This is determined by the number of forms to be printed and how many services it has. The caution in our requirements is that, for example, if 3 members of the same family turn on the same doctor on the same day, we want to combine broadcast of each Member of the family. Each envelope can have up to 10 sheets of paper, then regroup according to this as well. I was able to design it by using the SQL type clause, but the problem that I am up against accessing values retrieved via XQuery.

    Here's a simple example of data extracted from XML is not not available. I can share the data file - I did not know how to attach to this issue.

    If I run this query:

    Select *.

    of claim_output_xml x 1

    , XMLTable (' for $z in/Claim/ClaimInfo)

    return $z '

    PASSAGE claim_output

    COLUMNS

    grp_id varchar2 (30) PATH "claim/GRP_NBR.

    , path of varchar2 (30) copy_To ' EOB_Specific/SendToInfo/UD_COPY_TO.

    ) y ;

    I see all the columns of x 1 as well as the columns that I extracted using xquery.

    SEQ_NUMBATCH_IDMEMBER_IDMBR_COB_SFXCLAIM_NBRCLAIM_SFXDOCTOR_NBRDOCTOR_PFXDOCTOR_SFXPRINT_DATEDOC_TYPECLAIM_OUTPUTCRTD_DTCRTD_BYCOPY_TOGRP_IDCOPY_TO_1
    18012015072015ABCDEF12306177366720 JULY 15EOB(XMLTYPE)GRP_NBRCOPY OF PROVIDER
    18022015072015ABCDEF12306177366720 JULY 15EOB(XMLTYPE)GRP_NBRMEMBER COPY

    If I now add the clause type (no rules applied) for the same query:

    Select *.

    of claim_output_xml x 1

    , XMLTable (' for $z in/Claim/ClaimInfo)

    return $z '

    PASSAGE claim_output

    COLUMNS

    grp_id varchar2 (30) PATH "claim/GRP_NBR.

    , path of varchar2 (30) copy_To ' EOB_Specific/SendToInfo/UD_COPY_TO.

    ) y

    model

    dimension (x1.seq_num)

    measures (cast (x 1. MEMBER_ID as varchar2 (30)) mbr_id

    y.copy_to)

    Rules();

    y.copy_to is null:

    SEQ_NUMMBR_IDCOPY_TO
    1801ABCDEF123
    1802ABCDEF123

    I also share the actual query, that we are working on. The query has a few clauses, which allows access to the XML xquery data. In one case, the extracted value of the XML is coming through, but I can't get the others to work.

    Version information:

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

    PL/SQL Release 11.2.0.3.0 - Production

    "CORE 11.2.0.3.0 Production."

    AMT for Solaris: 11.2.0.3.0 - Production Version

    NLSRTL Version 11.2.0.3.0 - Production

    Hello

    Your test scenario has not been 'tested '.

    Two examples of XML documents are not correct.

    On the real problem, it works:

    SQL> select *
      2  from (
      3    select /*+ no_merge */
      4           x1.seq_num
      5         , x1.member_id
      6         , y.copy_to
      7    from claim_output_xml x1
      8       , XMLTable(
      9           'for $z in /Claim/ClaimInfo return $z'
     10           PASSING claim_output
     11           COLUMNS
     12             grp_id  varchar2(30) PATH 'Claim/GRP_NBR'
     13           , copy_To varchar2(30) path 'EOB_Specific/SendToInfo/UD_COPY_TO'
     14         ) y
     15  )
     16  model
     17  dimension by (seq_num)
     18  measures(
     19    cast(MEMBER_ID as varchar2(30)) as mbr_id
     20  , copy_to
     21  )
     22  rules();
    
       SEQ_NUM MBR_ID                         COPY_TO
    ---------- ------------------------------ ------------------------------
             1 ABCDEF123                      PROVIDER COPY
             2 ABCDEF123                      MEMBER COPY
    

    In some cases, the CBO messes things.

    This is a recurring problem when the XMLTABLE projections are used in predicates or as the source for subsequent transformations.

    The workaround is to set mode of line no-that can be merged.

    That being said, maybe you can share your needs more explaining the logic (sample input/output required).

    There might be a way to avoid the MODEL - is not that I do not use it, but I usually prefer to pull out of my hat as a last resort.

  • Helps the model clause. Date field in the Dimension

    Hello, all.

    I'm having a problem with the clause type in my query. In my view, it may be a misunderstanding on my part, but I can't find any documentation that is opposed to the use of the date fields in the dimensions of my model.

    Given these data;
    LOGDATE               SHIFTNAME  BUILDING  UNIT  DOORNUMBER  INOUT    EVENTCOUNT
    2012-02-01 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-01 06:00:00      A        1800      R      Door 4     In          15
    2012-02-01 18:00:00      D        1800      R      Door 4     Out         17
    2012-02-01 18:00:00      D        1800      R      Door 4     In          19
    2012-02-02 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-02 06:00:00      A        1800      R      Door 4     In          14
    ...
    I write my SQL like this:
    SELECT logdate, shiftname, building, unit, doornumber, inout, eventcount
      FROM door_events
     WHERE building='1800' AND unit='R' AND doornumber=4
     MODEL DIMENSION BY (logdate, shiftname, building, unit, doornumber, inout)
           MEASURES (eventcount)
          RULES ()
    And I get the expected result. (The same table as above) But when I try to add rows using rules, I get no new line until the LOGDATE field is a date. For example, by using this code, I expect to get a new line, with a 100 EVENTCOUNT (and other fields as written) but I stiill get the same set of data (no line is added)
    SELECT logdate, shiftname, building, unit, doornumber, inout, eventcount
      FROM door_events
     WHERE building='1800' AND unit='R' AND doornumber=4
     MODEL DIMENSION BY (logdate, shiftname, building, unit, doornumber, inout)
           MEASURES (eventcount)
           RULES (eventcount[SYSDATE,'X','1800','R',4,'In'=100)
    However, when I turn the LOGDATE field in a CHAR data type (and make the SYSDATE a TANK in the same way) with the code below, all of a sudden I get the line I was expecting!
    SELECT TO_CHAR(logdate,'YYYY-MM-DD HH24:MI:SS') logdate, shiftname, building, unit, doornumber, inout, eventcount
      FROM door_events
     WHERE building='1800' AND unit='R' AND doornumber=4
     MODEL DIMENSION BY (logdate, shiftname, building, unit, doornumber, inout)
           MEASURES (eventcount)
           RULES (eventcount[TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS'),'X','1800','R',4,'In'=100)
    
    
    LOGDATE               SHIFTNAME  BUILDING  UNIT  DOORNUMBER  INOUT    EVENTCOUNT
    2012-02-01 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-01 06:00:00      A        1800      R      Door 4     In          15
    2012-02-01 18:00:00      D        1800      R      Door 4     Out         17
    2012-02-01 18:00:00      D        1800      R      Door 4     In          19
    2012-02-02 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-02 06:00:00      A        1800      R      Door 4     In          14
    ...
    2012-02-07 15:18:33      X        1800      R      Door 4     In          100
    Can someone explain this behavior? I intend to do some calculations on the LOGDATE dimension and I would like to keep it as a date. Thanks in advance for any help!

    I do not get the same result. When I use SYSDATE, I don't get the extra line. When I use TO_CHAR (SYDATE...) as you say, I still don't get the extra line.

    However, when I use a constant date, such as TO_DATE (' 2012/02/07 02:00 ',' YYYY-MM-DD HH24:MI:SS'), then I get the extra line.

    This behavior is described in http://docs.oracle.com/cd/E11882_01/server.112/e25554/sqlmodel.htm#BEIGGGFJ

    «Using UPSERT creates a new cell corresponding to that referenced on the left-hand side of the rule when the cell is absent, and the cell reference contains only positional references * qualified constants *.»

    Best regards, stew Ashton

    P.S. "Oracle Database 11g Enterprise Edition Release 11.2.0.2.0.

    Published by: stew Ashton on 7 February 2012 23:03

  • Using advanced MODEL clause

    I have a fairly complex series of calculations that my client wants done. I decided to use the TYPE clause as this data between the rows.

    Essentially, I need data as

    NAME of CC by year_ DT Meas value
    6K 29 300010 11 2008 1 1 12
    6K 29 300007 5 2008 1 1 1
    6K 29 300049 6 2008 1 1 300.58
    6K 29 300119 9 2008 1 1 - 120.67
    6K 29 300022 2 2008 1-1 - 53098.25
    6K 29 300008 2 2008 1 1 390.59
    6K 29 110310 3 2009 1 1 0
    6K 29 115020 5 2009 1 1 199.04
    6K 29 300022 2 2009 1-1 - 77706.88
    6K 29 300003 6 2009 1 1 23.90
    6K 29 300010 11 2009 1 1 10
    6K 29 300035 10 2009 1 1 0

    And turn them into
    NAME of CC by year_ DT Meas value
    6K 29 300010 11 2008 1 1 12
    6K 29 300007 5 2008 1 1 1
    6K 29 300049 6 2008 1 1 300.58
    6K 29 300119 9 2008 1 1 - 120.97
    6K 29 300022 2 2008 1-1 - 53098.25
    6K 29 300008 2 2008 1 1 390.59
    6K 29 110310 3 2009 1 1 0
    6K 29 115020 5 2009 1 1 199.04
    6K 29 300007 5 2009 1 1-1
    6K 29 300022 2 2009 1-1 - 77706.88
    6K 29 300003 6 2009 1 1 23.90
    6K 29 300049 6 2009 1 1 - 300.58
    6K 29 300010 11 2009 1 1 10
    6K 29 300035 10 2009 1 1 0
    6K 29 300119 9 2009 1 1 120.67
    6K 29 300008 2 2009 1 1 390.59

    As you can see there are now additional lines in 2009. I would then perform a calculation
    2008 2009. who is Annul_val = 2009_value - (2008_value(PER=13)/13). -which is why
    I want to use the TYPE clause.

    My problem is the new lines in 2009 (or for that matter, 2010, 2011 and so forth). This is just a small sample of the lines of 2 M table. So far I was only able to use a full as outer join...


    Select nvl (cc, T2, T1, cc) CC... nvl (T1.value, t2.value) of
    Join data complete external T1 T2 data on
    T1. CC = T2. CC and... T1.year_ = T2. Year-1 and T1.meas = T2.meas

    and then she sucks in the clause type... like this

    Select CC, name, per, year_, dt, soul, nval value of
    (select nvl (cc, T2, T1, cc) CC... nvl (T1.value, t2.value) of)
    Join data complete external T1 T2 data on
    T1. CC = T2. CC and... T1.year_ = T2. Year - 1 and T1.meas = T2.meas)
    model
    partition (CC, NAME, SOUL)
    dimension of (year_, by, dt)
    measures (val, nval 0 value) ignore nav
    rules)
    nVal [everything, everything, 1] = val [cv (year_), cv (period_id), 1]-(val [cv (year_)-1, 13, 1] / 13)
    );

    My question is how can I get the lines of a year in order to operate in the following years. While in this space of lines "fill" example 2008 2009, 2010 so on until 2015. And as for 2009 and other years. Is this possible with TEMPLATE rules? It does not seem possible from what I've read, but then I'm not a guru.

    Can it be done with analytical queries. My only other possibility I can think of is function in pipeline.

    Thanks, for any questions do not hesitate to ask...

    SAL

    chameeya S S wrote:
    Quite a nice solution.

    Indeed, but with two table scans... :-)

    Kind regards
    Rob.

  • Query OBIEE adding additional tables in from clause

    Hello

    I have a logic with multiple LTS in tables when trying to query form only one column this logic table adds a few additional tables in which the clause of the query. Could if it you please let me know what could be the reason behind this issue.

    Here, I would add the query should be and what query generates OBIEE.

    I have a logical table - T_SO_ACCRUAL_PRODUCTS with source table logic multi.

    tables is LTS - INV_PRODUCT_GROUP1, Inv_Accrual_Groups, Inv_Grade_Code, Inv_Item_Classes, Inv_Item_Codes, PS_DAILY_STANDING_DETAILS, T_So_Customer_Request, PS_DAILY_STANDING_DETAILS_FREZ, T_So_Request_Details, T_SO_ADJUSTED_QTY, T_SO_ACCRUAL_MASTER, T_SO_ACCRUAL_PRODUCTS

    Now I have an ITEM_NUMBER column in the Inv_Item_Codes table (which I added in forT_SO_ACCRUAL_PRODUCTS LTS).

    I select only that ITEM_NUMBER in analysis of BI to find only the ITEM_NUMBER in INV_ITEM_CODE, so that the query selection must be--

    Select 0 distinct as c1.

    D1. C1 C2

    Of

    (select distinct T2010613. ITEM_NUMBER C1

    Of

    SALES_E0. D1 INV_ITEM_CODES T2010613)

    But the query I get in the nqquery.log file.

    Select 0 distinct as c1.

    D1. C1 C2

    Of

    (select distinct T2010613. ITEM_NUMBER C1

    Of

    SALES_E0. INV_ITEM_CODES T2010613,

    SALES_E0.PS_DAILY_STANDING_DETAILS T2010846,

    SALES_E0.PS_DAILY_STANDING_DETAILS_FREZ T2010861,

    T_SO_CUSTOMER_REQUEST T2011274,

    T_SO_REQUEST_DETAILS T2011561,

    SALES_E0. T_SO_REQUEST_TRANSACTIONS T2011657

    where (T2010613. ITEM_NUMBER = T2010846. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2010861. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2011561. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2011657. ITEM_NUMBER and T2010846. CUSTOMER_NUMBER = T2011274. CUSTOMER_NUMBER and T2010861. CUSTOMER_NUMBER = T2011274. CUSTOMER_NUMBER and T2011274. REQUEST_NUMBER = T2011561. REQUEST_NUMBER and T2011561. ITEM_NUMBER = T2011657. ITEM_NUMBER and T2011561. LINE_NUMBER = T2011657. LINE_NUMBER and T2011561. REQUEST_NUMBER = T2011657. REQUEST_NUMBER)

    ) D1

    I don't understand, why is the addition of these additional tables that I select only one column of the INV_ITEM_CODES table.

    Does anyone have an idea about it, why he adds these additional tables in the query?

    Thank you in advance for your help!

    Gerard

    [nQSError: 43119] Query Failed: [nQSError: 14025] indeed no table exists at the level of detail required

    Possible reasons:

    (1) level of content is not defined in the layer MDB of the SPR to one of the measures or dimension

    Logical Table-> content-> logical level tab-> Fact1/Fact2/Dim1: Source

    (2) Admintool WARNING: logical dimension table [39008]... a... a source that do not adhere to any source of fact.

    -> to check business model (and by the way of physical model) diagram for: Fact1, Fact2, Dim1

    (3) lack of aggregation method the measurement made ('Aggregation' of the measurement column tab)

    -> set aggregation (perhaps ' amount') for measures

    Looks like you have a lot of tables, but put them as sources of logical table, when they could not logically be related ' ' it... If you want you can send me your SPR and I can watch what you are doing.

  • Iteration in a model clause...

    Hello
    I try a few tests using iterations in a clause of simple model...
    Here's one of them...
    select
      key ,
      m_1,
      itn
    from
      dual
    model
      ignore nav
      dimension by ( 0 as key )
      measures     ( 0 as m_1 ,
                     0 as itn)
      rules
        upsert
        sequential order
        iterate (10)
        (
          m_1[2]=ITERATION_NUMBER
          ,itn[iteration_number] =iteration_number
        )
    order by
      key
    ;

    The results are ...

            KEY     M_1     ITN
         0     0     0
         1          1
         2     9     2
         3          3
         4          4
         5          5
         6          6
         7          7
         8          8
         9          9
    I just can't justify the cell value to the value of dimension 2 (aka the value 9). Can you help me... ???

    Note: I use db 10g v.2
    Thank you
    SIM

    Hello

    sgalaxy wrote:
    As a matter of fact I rushed back upward to post this question... (sorry)...
    I realized the answer when I put:

    ......m_1[3]=ITERATION_NUMBER ....the result set is the same....!!!!
    

    Really? When I do the same change, in other words, if I change the line that says initially

    m_1[2]=ITERATION_NUMBER 
    

    TO

    m_1[3]=ITERATION_NUMBER 
    

    then the following 2 rows are different:

    `      KEY        M_1        ITN
    ---------- ---------- ----------
     ...
             2                     2
             3          9          3
    

    Look at your results and see if the 9 column m_1 is really on the same line.

  • Color table RTF model based on an attribute cell is retrning an error

    Hi all
    I try to create a report model that contains a table. The table should display data and color according to the data in the table. The cell color is also saved in the xml file, while I'm trying to set the background color using the code
    <xsl:attribute xdofo:ctx="block" name="background-color"><?c3color?></xsl:attribute>
    I get an error which is
    Font Dir: D:\Java\jre1.5.0_06\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\ReportTemplates\report1.xml
    FOProcessor setLocale: en-us
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
         at java.lang.String.charAt(Unknown Source)
         at oracle.apps.xdo.template.fo.datatype.Color.parseColorStr(Unknown Source)
         at oracle.apps.xdo.template.fo.datatype.ColorPool.getColor(Unknown Source)
         at oracle.apps.xdo.template.fo.datatype.Background.setBgColor(Unknown Source)
         at oracle.apps.xdo.template.fo.datatype.Background.init(Unknown Source)
         at oracle.apps.xdo.template.fo.datatype.Background.getBackground(Unknown Source)
         at oracle.apps.xdo.template.fo.area.BlockArea.<init>(Unknown Source)
         at oracle.apps.xdo.template.fo.area.BlockContainerArea.<init>(Unknown Source)
         at oracle.apps.xdo.template.fo.area.TableCell.<init>(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableCell.createAreaObject(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableCell.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableRow.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableBody.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableBody.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTable.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOFlow.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FormattingEngine.startLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FormattingEngine.run(Unknown Source)
         at oracle.apps.xdo.template.fo.FOHandler.endElement(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTMerger.startElement(Unknown Source)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
         at oracle.apps.xdo.template.fo.FOProcessingEngine.process(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:632)
         at RTF2PDF.runXDO(RTF2PDF.java:466)
         at RTF2PDF.main(RTF2PDF.java:254)
    but I can't put the cell background color to help
     <xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute>
    <xsl:attribute xdofo:ctx="block" name="background-color">#123456</xsl:attribute>
    the
    <?c3color?>
    Returns the hexadecimal values.

    pls help me solve this problem...




    Thanks in advance...
    Ranjith.

    Try the following scenario

    for example, you tag in rich text that contains the color value (say - #cc6600)
    so
    You can refer to as follows

    
    

    so
    for the conditional formatting

    
    
  • Pagebreak table problem

    Hi all

    I'm working on a project that takes the mif generated from framemaker (FM) file as input file and perform a top treatment to generate the required output file. one of the requirements of the output file is that it should be the same line number and pages that appear in the framemaker file.

    I am facing a problem when a table is divided into two pages in the framemaker. I convert the framemaker mif file. It doesn't generate any information related to a page break in the table of the mif file.

    Any help?

    Concerning

    Ather

    Hi Lucie...

    Each page (page frame) that contains a text stream will be a block of text it contains. I think that you will need to check for the first object in this block of text to the line you are looking for. Hand, I'm not sure that a line can be the 'first' object on a page... you might have to dig through some other items before we get to the line (it could be the first object... I am not able to look at that model right now so don't know).

    If you need further assistance FDK, you might consider joining the group Yahoo "frame_dev"...

    http://tech.groups.Yahoo.com/group/frame_dev

    See you soon,.

    .. .Scott

  • Spry dynamic dataset table problem

    We are running in a quirk of Spry that we can't seem to make it work.

    When we create a data set of an XML file on the web server, a Spry table using this dataset displays correctly and is as it should be. But when we create the same group of XML data from a php/asp script on the web server, the Spry table flashes the model for a fraction of a second, and then deletes them. Web pages that contain the data sets are identical except for the source used by Spry.Data.XMLDataSet. No matter where he gets to it, the XML is identical. The XML file that we use has been generated by recording the output of the php/ASP script. The XML source file works, but the source script does not work.

    Example code:
    XML source: (this is generated by st.php and saved in st.xml, model based on DW CS3 Spry documentation)

    <? XML version = "1.0" encoding = "utf-8"? >
    <>sets
    < Game >
    < user_id > ZZZZ < / user_id >
    < grp_id > ABCD < / grp_id >
    < / set >
    < Game >
    < user_id > ZZZZ < / user_id >
    < grp_id > EFGH < / grp_id >
    < / set >
    < / sets >

    HTML: (here, everything is generated as DW CS3 has created, starting a new html file)

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "" < html xmlns = " http://www.w3.org/1999/xhtml ' xmlns: spry ="http: /ns.adobe.com/spry">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >
    < script src = "SpryAssets/xpath.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryData.js" type = "text/javascript" > < / script > "
    < script type = "text/javascript" >
    var DS1 = new Spry.Data.XMLDataSet ("st.php", "sets/set");
    < /script >
    < / head >
    < body >
    < div spry: region = "ds1" >
    < table >
    < b >
    user_id < th > < /th >
    < th > grp_id < /th >
    < /tr >
    < tr spry: repeat = "ds1" >
    < td > {user_id} < table >
    < td > {grp_id} < table >
    < /tr >
    < /table >
    < / div >
    < / body >
    < / html >

    -note: the "xmlns: spry" in the code above has an extra space between the slashes - I added that because the preview kept adding tags additional head in the middle of this address...

    The above html code uses "st.php" as a source for the dataset, and the only difference between the two tests is to change the source to 'st.xml '. I tried to look in all the documents that I can find, and the CS3 code corresponds to all the examples for the use of XML or a set of data source php/asp. Documentation seems to assume that it should simply work little matter that I use as a source as long as it outputs xml, which is what I do. I can check if the output itself works well because it made when registering in a direct xml file. Also, if I try to build the dataset schema, DW correctly interprets the output of the php script, exactly as it does when generating the schema from the xml file.

    We get this behavior if use us IIS, Apache, php, or asp, IE or Firefox. Obviously we are doing something wrong somewhere, but I can't find others with this problem, I can't find any options that could correct. Anyone has any ideas what could be the problem?

    "FSchwalm" wrote in message
    News:f1cq7h$KGM$1@forums. Macromedia.com...
    > Get us this behavior, if we use THE IIS, Apache, php, or asp, or
    > Firefox.
    > Obviously we're doing something wrong somewhere, but I can't find
    > other
    > having this problem, I can't find any options that could correct.
    > Everyone

    > have any ideas of what could be the problem?

    You must use the ASP/PHP code to configure the mime type of the XML file as
    "application/xml".

    --
    ----------------------------
    Massimo Foti, programmer web-rental
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com
    ----------------------------

  • ORCL:lookup - table problem

    Hi all

    I try to use the orcl: lookup-table of a view, where I pass an id and return the model No.

    ORCL:lookup - table("CCS_DFLT_TEMP_BY_PERSON","emplid",ns0:EmplId,"UP_TEMPLATE_NO","JDBC/PersonStore")

    Problem is that the CCS_DFLT_TEMP_BY_PERSON is a view and not a table.

    Any ideas on how I can solve this problem. I have a collection of data and I loop data in my transformation and so why I need lookup table to work for a view.

    Thank you very much

    K

    You can also make use of xquery?
    http://download.Oracle.com/docs/CD/E13159_01/OSB/docs10gr3/Userguide/XQuery.html#wp1101433
    FN - bea: execute - sql)

  • manipulation of the table problem

    I'm using Labview 2009 and I have a problem with windows... I have to implement the following code in Labview (X and digital input boards):

    for (i = 0 to MAX (X)) {}

    If (X [i] > (X [i-1] + 1)) {}

    X.Add (X [i], X [i-1] + 1) / / add the value X [i-1] + 1 x [i] position of the X table

    Y [i] = 0

    }

    on the other

    Y [i] = Y [i]

    }

    If I try to add items in the original array Y with the function 'Replace subset of table', the output array is not changed by the VI. If I try to initialize and to build a new table, I get a matrix of zeros. Can someone help me?

    If you want to just add 0 to the index that does not exist in X [] then try this.

  • MS Office report Express VI and table problem

    Hi all

    I have a strange problem with MS Office report VI, which is included with the report generation tool. I created an Excel template that I linked, according to the preference "Custom template for Excel" and all the named ranges. However, two of the named ranges that I entered are 1 d arrays of doubles. Now the problem:

    When I entered the berries to their specific name range (it's only 6 values), instead of simply enter the values in the table in the cells he entries like this:

    A value of 0

    1 value

    2 the value

    ...

    6 value

    He pushes the 'value' to the column next to the beach of name because of 0-6.

    He does it with two tables so it screws to the top of all formulas. Anyone know how to remove the 0-6 and simply enter the values?

    Thank you all

    The Express VI are easy and convenient, but some costs. Since the Express VI can also accept a waveform entry, you have to accept that it will add a channel name.

    With the tool report generation (who are also its limits), it's easy to add only the data you want:

    Ben64

Maybe you are looking for