Create Relational View in AW

Hi Everyone,
I am currently trying to create a relational view in the awm to use in the administration tool in BIEE. However, everytime i click on the plug in- create relational view all my dimension is greyed out except measures. and when i click on the create view button i get the following error,
MAY-01-2008 10:25:09: ** ERROR: Unable to create view over cube FINSTMNT_REP_CUBE6428.
MAY-01-2008 10:25:09: User-Defined Exception
has anyone encounted this problem please let me know when you can
regard
cbeins

Hi Everyone,
I am currently trying to create a relational view in the awm to use in the administration tool in BIEE. However, everytime i click on the plug in- create relational view all my dimension is greyed out except measures. and when i click on the create view button i get the following error,
MAY-01-2008 10:25:09: ** ERROR: Unable to create view over cube FINSTMNT_REP_CUBE6428.
MAY-01-2008 10:25:09: User-Defined Exception
has anyone encounted this problem please let me know when you can
regard
cbeins

Similar Messages

  • Is it possible to create relational view on Analytic Workspace in Oracle 9i Release1

    Hi All,
    We are in the initial stages of Oracle 9i OLAP prototype. Since the current version of BIBeans 2.5 does not work with Release 2 of Oracle 9i OLAP, we are planning to use Oracle 9i OLAP Release 1. So can you please answer the following questions.
    1. Is it possible to create relational view on Analytic Workspace(like in Release 2) and populate the OLAP catalog, if so can you give me guidance to get the appropriate user guide. The OLAP DML guide in Release 1 talks about creating OLAP catalog metadata for Analytic Workspace using a metadata locator object.
    2, Is it advisable to use Oralce 9i OLAP Release 1? Does the Analytic Workspace and the corresponding BIBeans work in Release 1?
    Thank you,
    Senthil

    Analytic Workspaces (Express/multidimensional data objects and procedures written in
    the OLAP DML) are new to Oracle9i OLAP Release 2, you cannot find them in Release 1.
    BI Beans will soon (within a week) introduce a version on OTN that will work with Oracle9i OLAP Release 2.

  • Create Relational View got error: ORA-19276: XPST0005 - XPath step specifie

    Hi expert,
    I am using Oracle 11.2.0.1.0 XML DB.
    I am successfully registered schema and generated a table DOCUMENT.
    I have succfully inserted 12 .xml files to this table.
    SQL> SELECT OBJECT_VALUE FROM document;
    OBJECT_VALUE
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
    <document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd">
    <id root="03d6a2cd-fdda-4fe1-865d-da0db9212f34"/>
    <code code="51725-0" codeSystem="2.16.840.1.113883.6.1" displayName="ESTABLISHMENT REGISTRATION"/>
    </component>
    </document>
    then I tried to create a create Relational View base on one inserted .xml file I got error:
    ERROR at line 3:
    ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name: (document)
    is there anyone know what was wrong?
    Thanks a lot!
    Cow
    Edited by: Cow on Feb 15, 2011 8:58 PM
    Edited by: Cow on Feb 21, 2011 6:59 AM

    These kinds of issues, you will have to solve by joining multiple resultsets or passing fragments to the next XMLTABLE statement and building redundancy via the ORDINALITY clause (which results a NUMBER datatype)
    For example
    A "transaction" can have multiple "status"ses which can have multiple "reason"s
    WITH XTABLE
    AS
      (SELECT xmltype('<TRANSACTION>
                        <PFL_ID>123456789</PFL_ID>
                        <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
                        <ID>1</ID>
                        <INSTR_ID>MARCO_003</INSTR_ID>
                        <E_TO_E_ID>MARCO_004</E_TO_E_ID>
                        <INSTD_AMT>10</INSTD_AMT>
                        <INSTD_AMT_CCY>EUR</INSTD_AMT_CCY>
                        <STATUS>
                            <PFL_ID>123456789</PFL_ID>
                            <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
                            <TXI_ID>1</TXI_ID>
                            <ID>1</ID>
                            <PMT_TX_STS_UTC_DT>2011-02-15</PMT_TX_STS_UTC_DT>
                               <REASON>
                                  <ID>1000</ID>
                                  <STS_RSN_PRTRY>MG001</STS_RSN_PRTRY>
                               </REASON>
                               <REASON>
                                  <ID>2000</ID>
                                  <STS_RSN_PRTRY>IS000</STS_RSN_PRTRY>
                               </REASON>
                         </STATUS>
                      </TRANSACTION>') as XMLCOLUMN
      FROM DUAL
    SELECT STS_ID             as STATUS_ID,
           STS_PFL_ID,
           STS_PMI_ID,
           STS_TXI_ID,
           RSN_ID             as REASON_ID,
           RSN_STS_RSN_PRTRY,
           RSN_XML_POS        as POSITION
    FROM  XTABLE
    ,     XMLTABLE ('/TRANSACTION/STATUS'
                    PASSING XMLCOLUMN
                    COLUMNS
                        STS_PFL_ID         NUMBER(10)    path 'PFL_ID'
                      , STS_PMI_ID         NUMBER(10)    path 'PMI_ID'
                      , STS_TXI_ID         NUMBER(10)    path 'TXI_ID'
                      , STS_ID             VARCHAR2(10)  path 'ID'
                      , XML_REASONS        XMLTYPE       path 'REASON'
                      ) sts
    ,     XMLTABLE ('/REASON'
                    PASSING sts.XML_REASONS
                    COLUMNS
                        RSN_XML_POS        FOR ORDINALITY
                      , RSN_ID             VARCHAR2(10)  path 'ID'
                      , RSN_STS_RSN_PRTRY  VARCHAR2(10)  path 'STS_RSN_PRTRY'
                      ) rsnWill give you the following output (in your case DON"T forget to buildin the namespace references)
    SQL> WITH XTABLE
      2  AS
      3   (SELECT xmltype('<TRANSACTION>
      4             <PFL_ID>123456789</PFL_ID>
      5             <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
      6             <ID>1</ID>
      7             <INSTR_ID>MARCO_003</INSTR_ID>
      8             <E_TO_E_ID>MARCO_004</E_TO_E_ID>
      9             <INSTD_AMT>10</INSTD_AMT>
    10             <INSTD_AMT_CCY>EUR</INSTD_AMT_CCY>
    11            <STATUS>
    12              <PFL_ID>123456789</PFL_ID>
    13              <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
    14              <TXI_ID>1</TXI_ID>
    15              <ID>1</ID>
    16              <PMT_TX_STS_UTC_DT>2011-02-15</PMT_TX_STS_UTC_DT>
    17                <REASON>
    18                  <ID>1000</ID>
    19                  <STS_RSN_PRTRY>MG001</STS_RSN_PRTRY>
    20                </REASON>
    21                <REASON>
    22                   <ID>2000</ID>
    23                   <STS_RSN_PRTRY>IS000</STS_RSN_PRTRY>
    24                </REASON>
    25              </STATUS>
    26           </TRANSACTION>') as XMLCOLUMN
    27   FROM DUAL
    28   )
    29  SELECT STS_ID             as STATUS_ID,
    30         STS_PFL_ID,
    31         STS_PMI_ID,
    32         STS_TXI_ID,
    33         RSN_ID             as REASON_ID,
    34         RSN_STS_RSN_PRTRY,
    35         RSN_XML_POS        as POSITION
    36  FROM  XTABLE
    37  ,     XMLTABLE ('/TRANSACTION/STATUS'
    38                  PASSING XMLCOLUMN
    39              COLUMNS
    40                  STS_PFL_ID         NUMBER(10)    path 'PFL_ID'
    41                , STS_PMI_ID         NUMBER(10)    path 'PMI_ID'
    42                , STS_TXI_ID         NUMBER(10)    path 'TXI_ID'
    43                , STS_ID             VARCHAR2(10)  path 'ID'
    44                , XML_REASONS        XMLTYPE       path 'REASON'
    45            ) sts
    46  ,     XMLTABLE ('/REASON'
    47                  PASSING sts.XML_REASONS
    48              COLUMNS
    49                  RSN_XML_POS        FOR ORDINALITY
    50                , RSN_ID             VARCHAR2(10)  path 'ID'
    51                , RSN_STS_RSN_PRTRY  VARCHAR2(10)  path 'STS_RSN_PRTRY'
    52            ) rsn
    53 ;
    STATUS_ID  STS_PFL_ID STS_PMI_ID STS_TXI_ID REASON_ID  RSN_STS_RS   POSITION
    1           123456789          1          1 1000       MG001               1
    1           123456789          1          1 2000       IS000               2
    2 rows selected.If I wouldn't have done that then I would have got your result which fails with your error:
    - ORA-19279 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
    SQL> WITH XTABLE
      2  AS
      3   (SELECT xmltype('<TRANSACTION>
      4             <PFL_ID>123456789</PFL_ID>
      5             <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
      6             <ID>1</ID>
      7             <INSTR_ID>MARCO_003</INSTR_ID>
      8             <E_TO_E_ID>MARCO_004</E_TO_E_ID>
      9             <INSTD_AMT>10</INSTD_AMT>
    10             <INSTD_AMT_CCY>EUR</INSTD_AMT_CCY>
    11            <STATUS>
    12              <PFL_ID>123456789</PFL_ID>
    13              <PMI_ID>1</PMI_ID><PII_ID>1</PII_ID>
    14              <TXI_ID>1</TXI_ID>
    15              <ID>1</ID>
    16              <PMT_TX_STS_UTC_DT>2011-02-15</PMT_TX_STS_UTC_DT>
    17                <REASON>
    18                  <ID>1000</ID>
    19                  <STS_RSN_PRTRY>MG001</STS_RSN_PRTRY>
    20                </REASON>
    21                <REASON>
    22                   <ID>2000</ID>
    23                   <STS_RSN_PRTRY>IS000</STS_RSN_PRTRY>
    24                </REASON>
    25              </STATUS>
    26           </TRANSACTION>') as XMLCOLUMN
    27   FROM DUAL
    28   )
    29  SELECT STS_ID             as STATUS_ID,
    30         STS_PFL_ID,
    31         STS_PMI_ID,
    32         STS_TXI_ID,
    33         RSN_ID             as REASON_ID,
    34         RSN_STS_RSN_PRTRY
    35  FROM  XTABLE
    36  ,     XMLTABLE ('/TRANSACTION/STATUS'
    37                  PASSING XMLCOLUMN
    38              COLUMNS
    39                  STS_PFL_ID         NUMBER(10)    path 'PFL_ID'
    40                , STS_PMI_ID         NUMBER(10)    path 'PMI_ID'
    41                , STS_TXI_ID         NUMBER(10)    path 'TXI_ID'
    42                , STS_ID             VARCHAR2(10)  path 'ID'
    43                , RSN_ID             VARCHAR2(10)  path 'REASON/ID'
    44                , RSN_STS_RSN_PRTRY  VARCHAR2(10)  path 'REASON/STS_RSN_PRTRY'
    45           ) rsn;
                  </REASON>
    ERROR at line 24:
    ORA-19279: XQuery dynamic type mismatch: expected singleton sequence - got
    multi-item sequenceHTH
    Edited by: Marco Gralike on Feb 16, 2011 12:12 PM

  • BIEE ERROR when creating Relational View

    Hi Everyone,
    I am using the OTN Relational View Creator from the oracle website to create my relational views. However, all my dimension are grayed out and i am unable to select my attributes and hierarchies. Would anyone know what I am doing wrong or is the data that was created not setup properly.
    Regards,
    Cbeins

    Guys,
    I got it. The name of the view was not named starting with 'Z'. So I renamed it as 'ZREQ_DAT' and it works now.
    Thanks,
    Sirish.

  • AWM Create Relational View for BIEE

    Hi Sir/Madam,
    I am having trouble trying to create my relation view in the analytical workspace manager. Every time I try and create it, it gives me all this error. The error is as follow;
    ####ERROR LOG#####
    APR-24-2008 03:49:33: **
    APR-24-2008 03:49:33: ** ERROR: Unable to create view over cube R_UT_CUBE6428.
    APR-24-2008 03:49:33: User-Defined Exception
    Regrads,
    cbeins

    so how we can do with that?You tell us :)
    1- Do you want to extract each performance element into separate rows (through a third XMLTable)?
    2- Do you want to keep only one of them?
    3- Other?
    For 1 :
      contactPerson3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name',
      performance    XMLTYPE      PATH 'performance'
    ) detail
    , XMLTable(
        XMLNamespaces(default 'urn:hl7-org:v3'),
        '/performance'
        PASSING detail.performance
        COLUMNS
          code3       VARCHAR2(10) PATH 'actDefinition/code/@code',
          codeSystem  VARCHAR2(30) PATH 'actDefinition/code/@codeSystem',
          displayName VARCHAR2(20) PATH 'actDefinition/code/@displayName'
      ) perf
    ...For 2 :
       contactPerson3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name',
       code3          VARCHAR2(10) PATH 'performance[1]/actDefinition/code/@code',
       codeSystem     VARCHAR2(30) PATH 'performance[1]/actDefinition/code/@codeSystem',
       displayName    VARCHAR2(20) PATH 'performance[1]/actDefinition/code/@displayName'
    ) detail
    ...

  • Creating relational view for an ODBC result set?

    Hello,
    I'm trying to create a view for the data available from the Siebel Analytics server (SAS) query's result set by executing pass through sql. SAS reads from files and multiple other databases to provide the result set.
    The query sent to pass has its own properitary syntax and is not SQL.
    ie, I'm trying to achieve something like this :
    create view analytics_wrapper_view as
    select * from
    <
    dbms_hs_passthrough('my custom sql understood by SAS')
    dbms_hs_passthrough.fetch_rows
    >
    Cant use a function selecting from dual as there could be several rows returned from this operation. If I retain it as a view, I can avoid data duplication. If this is not possible, a table approach could be considered.
    Any thoughts or inputs on this would be highly appreciated.

    On your server..
    - On the FCS server go to OSX Workgroup Manager.
    - Create a group and name it something cool
    - save and exit
    Final Cut Server Client...
    (Logged in as admin)
    - select Administration in the client.
    - Go to Group Permissions
    - click Create New Group and then select cool new group name
    and select BROWSER from the PERMISSION SET list
    - save and go back to OSX
    Back in OSX Workgroup Manager...
    - create users and assign them to your cool group
    DONE!

  • Inserting data into relational views of object tables

    I hope someone could help me to solve the following problem:
    I would like to design an object-relational database in O8i. Unfortunatly the client-software (GIS) can only understand relational data (except the object type 'geometry'). So I created relational views on my object tables. But now it is not possible to insert data in those views. Do I have to create triggers on those views for inserting data ???
    Nevertheless: Updating data in views makes no problems.
    Thank you for reading this and I look foreward to hearing from you soon.
    Christian Heil

    Hi Mohammed,
    I guess following is your requirement
    List1 tile is attached to "BOList1". On button press you wanted the data to be persisted to Business object "BOList1History"
    I assume that you have created "BOLIst1History" properly by associating a write Bdoc etc etc.
    Write a method in Business object "BOList" called ZUpdateHistory. This new method should contain code for creating an instance of "BOLIST1History" and fill the property values as per your requirement. Call this method from the Button press event as follows
    anchor.bo.ZUpdateHistory
    Hope this helps
    Regards
    Ganesh Datta

  • How to create a relational view base on an xmltype table which included sev

    Hi,
    I am using oracle 11.2.0.1.0.
    how to create a relational view base on an xmltype table which content several different .xml files?
    Thanks.
    for examle:
    SQL> SELECT OBJECT_VALUE FROM document;
    Edited by: Cow on Jan 6, 2011 7:57 PM

    For example I already have these three xml files inserted into the document xmltype table.
    These xml files have same schemas. I have attached below.
    I want to show all elements/attribute values in xml files to relational view.
    Is this possible to create one big relational view to show everything
    or I have to create three separate relation views then use UNION to put together? Thanks a lot. Cow
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
    <document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd">
    <id root="5ca4e3cb-7298-4948-8cc2-58e71ad32694"/>
    </component>
    </document>
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
    <document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd">
    </component>
    </document>
    Edited by: Cow on Jan 4, 2011 9:51 AM

  • How to create a view consisting of data from tables in2 different databases

    Using Oracle 10.2g
    I have 2 databases Gus and haggis on Comqdhb schema.
    glink indicates a databse link between Haggis and Gus
    In Gus there are tables student,subject,grade,school containing columns like upn...
    STUDENT
    upn
    academicYear
    SUBJECT
    subject
    GRADE
    examlevel
    grade
    SCHOOL
    sn
    In HAGGIS there are tables student,grade,teacher containing columns upn...desc below.
    STUDENT
    upn
    GRADE
    grade
    upn
    academicyear
    level
    Create view in your HAGGIS database which will join all of the exam grades together. You should have one view which will produce the following relation :
    examGrade(upn, subject, examlevel, sn, grade,academicYear)
    so I need to create a view which gets the data from both the tables in both the databases.
    create view as examGrade(upn, subject, examlevel, sn, grade,academicYear) as select s.upn
    But i am not getting how to select a column from 2 tables in different databases
    I mean if i said
    select upn from comqdhb.student@glink,comqdhb.student;
    select upn from comqdhb.student@glink,comqdhb.student
    ERROR at line 1:
    ORA-00918: column ambiguously defined
    help me out,Thank you.

    Thank you for the reply will follow up the code format
    Create views in your HAGGIS schema database which will join all of the exam grades together. You should have one view which will produce the following relation :
    examGrade(upn, subject, examlevel, sn, grade,academicYear)
    I understand that there wont be duplication when we use conditions
    If i query
    select count(upn)
    from   comqdhb.student@glink I get 9000
    but after the union
    create view examGrade(upn, subject, examlevel, sn, grade,academicYear)
    as
    select distinct s.upn as upn
    ,                  g.subject as subject
    ,                  g."LEVEL" as examlevel
    ,                  g.grade as grades
    ,                  '9364097'
    ,                  to_number(g.academicyear) as academicyear
    from             comqdhb.student s
    ,                   comqdhb.grade g
    where           s.upn=g.upn
    union
    select            s.upn
    ,                   sb.subject
    ,                   g.elevel
    ,                   g.grade
    ,                   s.acyr
    ,                   sc.sn
    from              comqdhb.subject@glink sb
    ,                   comqdhb.student@glink s
    ,                    comqdhb.gradevalues@glink g
    ,                    comqdhb.school@glink sc,
    ,                    comqdhb.studentingroup@glink sg
    ,                    comqdhb.teachinggroup@glink tg
    where            sb.sid=tg.sid
    and                tg.gid=sg.gid
    and                sg.upn=s.upn
    and                g."LEVEL"=tg.elevel
    and                s.school=sc.id
    and                sc.id=tg.id; returns
    count(upn) from exam gradeIt gets stuck actually sometimes it returns
    932002 some results.
    2:
    Another problem i am having which i am trying to solve and written up my ideas but haven't been getting the expected results.Hope you can help.Thank you.
    Information:
    =======
    All children take exams at the age of 16 called a General Certificate of SecondaryEducation (GCSE).
    They have to study and take exams in Mathematics, English and Science, and can take other subjects such as History, French, Art etc. Most students will study between 5 and 10 different subjects before taking their GCSEs.
    For each exam, a student is awarded a grade from A*, A, B,C,D,E,F,G,U,X An A* grade is the best grade achievable and an X is the worst grade.
    In order to analyze how students have performed, each grade is mapped to a numeric value as follows:
    Grade Numerical score
    A* 8
    A 7
    B 6
    C 5
    D 4
    E 3
    F 2
    G 1
    U 0
    X 0
    Now why i need this avgGCSE is because i have to create a view containing avgGCSE of the students it is used in the next question where a condition is avgGCSE is between 6.5 and 7
    In order to calculate the avgGCSE the idea is to calculate the grades of the students and map the grades to their corresponding scores/values
    add them all up and div by the total no of grades to get the avg.
    desc comqdhb.STUDENT@glink;
    STUDENT
    =======
    UPN
    FNAME
    CNAME
    DOB
    GENDER
    PREVIOUSSCHOOL
    XGCSE
    SCHOOL
    ACYR
    STUDENTINGROUP
    =============
    UPN
    GID
    STARTDATE
    ENDDATE
    GRADE
    GRADEVALUES
    ===========
    GRADE
    LEVEL
    VALUE
    I have a opinion that xgcse in STUDENT table refers to the avgGCSE which i want to calculate as when i asked my professor as to what xgcse he said that he forgot to take it out of the table and it is not necessary while creating avggcse.
    select *
    from comqdhb.student@glink
    where xgcse<6.5; Displaying a result
    returns:
    UPN FAMILYNAME COMMONNAME DATEOFBIR GENDER PREVIOUSSCHOOL XGCSE SCHOOL ACYR
    ===========================================================================
    1011 KIMBERLY ABBOT 07-JUL-79 f none 3.93500948 2 2
    select *
    from comqdhb.student@glink
    where xgcse between 6.5 and 7 and upn = 1386; Displaying a result
    returns:
    UPN FAMILYNAME COMMONNAME DATEOFBIR GENDER PREVIOUSSCHOOL XGCSE SCHOOL ACYR
    ===========================================================================
    1386 STEPHANIE AANNESSON 15-JAN-79 f none 6.88873 2 2 so if xgcse is the avgGCSE then upn 1011 has avggcse<6.5 and 1386 has avggcse >6.5
    my idea was backward strategy like so now if we find out upn 1368 has suppose xgcse(avggcse)>6.5 how to extract the avggcse for the particular upn We need to map grades from GRADEVALUES to grade in STUDENTINGROUP and map upn from studentingroup to upn in student to output the values for the corresponding grades from GRADEVALUES
    select grade
    from comqdhb.studentingroup@glink
    where upn = 1011;
    Result:
    GRADE
    =====
    D
    F
    B
    E
    C
    E
    E
    B
    8 rows selected. Mapping each grade to the corresponding value and calculating we get
    32/8=4 total(values to corresponding grades)/no of grades.
    But the xgcse for upn 1011 is 3.935 and i am getting 4!! maybe xgcse isn't avggrade but ? is the procedure by me correct for calculating avggcse
    select grade
    from comqdhb.studentingroup@glink
    where upn = 1386;
    Result:
    GRADE
    ======
    A*
    A*
    A*
    A*
    B
    A*
    A*
    A
    B
    B
    B
    11 rows selected. grade to the corresponding value and calculating we get
    79/11=7.12 total(values to corresponding grades)/no of grades.
    But the xgcse for upn 1011 is 6.88... and i am getting 7.12!!
    But another problem
    when i say
    select   g.value,g.grade
    from     comqdhb.gradevalues@glink g
    ,        comqdhb.studentingroup@glink sg
    where    g.grade=sg.grade
    and      sg.upn=1011;
    result:
    ======
    VALUE GRADE
    ===========
      100 B
      100 B
       80 C
       60 D
       40 E
       40 E
       40 E
       20 F
        6 B
        6 B
        5 C
    VALUE GRADE
    =============
        4 D
        3 E
        3 E
        3 E
        2 F
    16 rows selected.
    select   distinct g.value,g.grade
    from     comqdhb.gradevalues@glink g
    ,        comqdhb.studentingroup@glink sg
    where    g.grade=sg.grade
    and      sg.upn=1011;
    result:
    ======
    VALUE GRADE
    ============
         2 F
       100 B
         6 B
         3 E
        60 D
         5 C
         4 D
        80 C
        40 E
        20 F
    10 rows selected. I am getting only 8 for the query
    select grade
    from comqdhb.studentingroup@glink
    where upn = 1386; here its becomming 10 and also its displaying values as 100 and ...
    select distinct *
    from   comqdhb.gradevalues@glink;
    GRADEVALUES
    ===========
    LEVEL      GRADE           VALUE
    ================================
    a          A                 120
    a          B                 100
    a          C                  80
    a          D                  60
    a          E                  40
    a          F                  20
    a          U                   0
    a          X                   0
    g          A                   7
    g          A*                  8
    g          B                   6
    LEVEL      GRADE           VALUE
    ================================
    g          C                   5
    g          D                   4
    g          E                   3
    g          F                   2
    g          G                   1
    g          U                   0
    g          X                   0
    18 rows selected. I was hoping if i could map the grades and get the values and calculate avggrade by total(values)/count(values)that would be it but here there are values like 100...
    select  sum(g.value)/count(g.grade) as avggrade
    from    comqdhb.gradevalues@glink g
    ,         comqdhb.studentingroup@glink sg
    where  g.grade=sg.grade
    and     sg.upn=1386;
    avggrade
    ========
    37.4375 the avggrade cant be this big and when i map each grade i obtained for 1368 like a to 7+b to 6 so on i get avggrade 7.12
    kindly help.
    Edited by: Trooper on Dec 15, 2008 4:49 AM

  • [ADF Help] How to create a view for multiple tables

    Hi,
    I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
    ex:
    Table A has these fields: ID, Name
    Table B has these fields: ID, Address
    A.ID and B.ID are primary keys.
    B.ID has FK relationship with A.ID
    (basically, these tables have one-to-one relation)
    I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
    So I can execute C,R,U,D for both tables.
    I create these tables in DB, and create entity objects for these tables.
    So there are 2 entity objects and 1 association.
    Then I create a view object based on B and add fields of A into the view:
    If the association is not a "Composition Association",
    when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
    If the association is a "Composition Association", and click the insert button, I will get
    "oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
    If I create a view object based on A and add filed of B into the view:
    When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
    So... how can I create a view for multiple tables correctly?
    Thanks for any advices!
    Here are some pictures about my problem, if there is any unclear point, please let me know.
    http://leonjava.blogspot.com/2009_10_01_archive.html
    (A is Prod, B is CpuSocket)
    Edited by: user8093176 on Oct 25, 2009 12:29 AM

    Hi Branislav,
    Thanks, but the result is same ....
    In the step 2 of creating view object, I can select entity objects to be added in to the view.
    If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
    When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
    If I select B first, and then select A in crating view object, the result is similar ...
    Thanks for any further suggestion.
    Leon

  • How to create a view for all Service Requests that are not approved by reviewer

    Hallo,
    I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
    I couldn't find this when creating the view. Thank you.

    So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not? 
    As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar: 
    <QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
    <Criteria>
    <FreeformCriteria>
    <Freeform>
    <Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
    <Expression>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    </And>
    </Expression>
    </Criteria>
    </Freeform>
    </FreeformCriteria>
    </Criteria>
    </QueryCriteria>
    This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
    Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
    for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$). 
    You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
    Anton's Advanced View Editor (or
    the free version) to do the criteria adjustment. 

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • MVC: Create a view which populates two (or more) joined tables in a single view table

    I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
    I have two tables:
    1 - Bloggers: - bloggerID (int);
                        - bloggerName (string)
    2 - Blogs: - blogID (int);
    bloggerID (int);
                    - blogTitle (string);
                    - blogImage (string)
    A blogger can have one or more blogs while one blog must be related to only one blogger.
    I would like to have a view table on my webpage as the following:
    Blogger Name
    Blog Title
    Blog Image
    Noris Gang
    Virus
    virus.jpg
    Noris Gang
    Desktops
    desktop.jpg
    Gauthier
    Books
    books.png
    John Leon
    NNNMHJhjdhj
    Nmbj.jpg
    I'm using MVC 4 (or at least 3).
    Thanks for your help.

    Hello,
    From your description, it is not very clear that what you mean about the View, if it means the View concept in database as SQL Server, your required view should be as below:
    Create view
    as
    Select Bloggers.bloggerName, Bloggers.blogTitle, Bloggers.blogImage
    From Bloggers join Blogs on Bloggers.bloggerID = Blogs. bloggerID
    If it means the UI view in MVC concept, I suggest you could ask it on the MVC forum:
    http://forums.asp.net/1146.aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem in  Creating a view using infotypes PA0001,PA0002,...

    Hi,
    Can anybody please help me how to create a Maintainence view using PA0001,PA0002,PA0003,PA0006,PA0032.
    I tried to create it using se54.
    when i use PA0003 as check table, i am not able to create relations with PA0001,PA0002,PA0032,PA0006.
    Thanks in Advance.
    Vinay.BR

    You can create a view using SE11 as mentioned in the previous answer. Once you created, you can use SE16 to display the content of the view table. However, this does not serve much because you can also see the original table using SE16. Unless you want to generate screen dialog so that the view table can be used in SM30. This method can be done while editing the table in SE11. Click on Utilities->Table maintenance generator. However, this will be considered as a repair (modification to SAP standard) and you need repair key.

  • Include or create a view in the database and use this view?

    Well, I need to get related data of the main table from another related tables, so one way to do that is to use the Include method in Entity Framework to get this related data.
    However, I am thinking in another option, create a view in the database and use this view in entity framework. In this way, I avoid the needed of the include, because I think that is expensive in resources. But I am no very sure about that.
    I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    For example, if I use the include I have the advantage that I get only one the main record and all the related data I have in the navigation properties, so the info is more shorted.
    Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    Thank so much.

    Hello ComptonAlvaro,
    >>I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    If your view would use a Join syntax to query master-child relationship tables, it actually is similar with the Include() method which actually results a duplicate records from master table, you could check this
    link for detail description.
    >>Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    One visible difference is that records from Views are not editable by default(if you want edit them, you could refer to this
    blog).
    In your case, my suggestion that you could use the lazying load which will load the matter table once and disable the trace if you only need to display data.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • MacBook (white) to MacBook (aluminum)

    I bought the white, plastic version of the MacBook in July. Now that they've come out with a much better model - at least concerning the 3D rendering that I do for school - what is the best way to seek an upgrade? I was hoping Apple would offer some

  • Scheduling Export Job - 10g R2

    Hi, We would like to have our export run on a daily basis. However, the export dump file should be overwritten and not newly created. Does somebody have a suggestion or script that creates this job? This is independent from our regular backups. Thank

  • Amount conversion in smartform

    HI all, I have an amount of 1,80,000 as total amount in the smartform . I called a function module to display the amount in words ,but its showing as one hundred and eighty thousand and zero. How to display it as one lakh and eighty thousand and zero

  • I can't download Safari 5 or anything more recent then iTunes 3

    I can't download Safari 5 or any of the iTunes updates. It says there is an error and it can't install.

  • Service Agreements in Esourcing

    Hi Expert, Could you please guide me how to enable service agreements and replicate to back end system as a service contract with service lines. Thanks, Ratan