How to create relational views based on an xmltype table which included sev

Hello

I'm using oracle 11.2.0.1.0.
How to create a relational view based on a table xmltype including the content of the .xml files several different?

Thank you.


For examle:

SQL > SELECT OBJECT_VALUE FROM document;

Published by: cow on January 6, 2011 19:57

In general, you can use XMLTable to create these views...

You will need to create a view for each collection

The notice will contain the data of all documents...

Tags: Database

Similar Questions

  • How to model a view based on a function table

    Hello

    I want to model a view in SQL Developer Data Modeler which is based on a function of painting as:

    table (function (a, b))

    When the function is a function table in pipeline. How is that possible?

    DM 3.3.0.734 SQL version

    Best regards

    Joop

    Hello

    In the Properties dialog box of the view that is displayed when you create the view, you can select the Report Builder queries (on the general page) button.

    In the query designer, you can enter the query text in the box above the buttons OK and apply, cancel, for example
    SELECT * FROM TABLE (FUNCTION (a, b))

    David

  • How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    After talking to the Customer Service, I now get it. Thank you.

    That is to say: down arrow recorded a watermark image in the gallery without you buy. You can download an overview lores on your desktop for motorhomes with this same arrow, but it is unfortunately a watermark (unlike the DPC). You can also copy and send a link to the Gallery clients to review before you buy.

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to create a view?

    Hi all

    11.2.0.1


    I have tables EMP and DEP, and their structures are the ff:

    DEP (depno, depname)
    EMP (emp_id, depno)

    I want to create a view EMP_VIEW (emp_id, status).

    The status value is "Active" (if depno exists in DEP) or 'Inactive' (if depno is null or not depno corresponding to the DEP).

    How to create this view?

    Thank you very much

    zxy

    Check this box

    SQL> insert into emp(empno,ename) values (1234,'test');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> create or replace view emp_view as  select e.empno, nvl2( d.deptno,'Active','Inactive') Status from emp e left outer join dept d on e.deptno=d.deptno;
    
    View created.
    
    SQL> select * from emp_view;
    
         EMPNO STATUS
    ---------- --------
          7369 Active
          7499 Active
          7521 Active
          7566 Active
          7654 Active
          7698 Active
          7782 Active
          7788 Active
          7839 Active
          7844 Active
          7876 Active
          7900 Active
          7902 Active
          7934 Active
          1234 Inactive
    
    15 rows selected.
    
  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • How to create a view of many-to-many?

    Say that I a student, course and StudentCourses of entity objects and their objects in view.

    What other components do I need to create a workflow that allows a student to courses list/add/remove what (s) he takes?
    Below I list the objects that I know. Could you please add to it? Thank you very much.

    1-entity objects: student, course, StudentCourses.

    2 display items:
    + StudentView
    + GolfVoir
    + StudentCoursesView:
    SQL: select s.Name, c.Name StudentCourse sc, join student s class c where sc. StudentID = s.StudentId and sc. CourseId = c.CourseID
    If I add/change/remove info in this point of view, will be the sight of the persistent changes in all necessary tables?

    Module 3-application of the instances of all objects of view 3.

    4-task flow:
    + Course LOV
    + Student LOV
    + ...

    Published by: cody on February 4, 2011 09:08

    Hey Cody,.

    I think you are looking for a relationship between students master/detail / StudentCourses.

    Display object / see the installation link

    1. You have your items two view, student and student courses.

    2. Create a 1 to many association between entities of your student and StudentCourses.

    3. Create a view based on this association link.

    4. Put these two display objects in the data model of the Module of your Application.

    LOV

    1. You have your view object, racing View

    2. Go to your StudentCourses discovered the object, and select the attribute on which you want to place the LOV. It should be an option of LOV below where you can attach the view golfVoir (VO) like a LOV object.

    JSP

    1. Pull the top of your workflow adfc.config file.
    2. Drag a view of the workflow. Double-click the view to create a JSP page.

    3. Drag an expandable Panel on page layout for an overview.

    4. Your data controls, drag the StudentView to the superior facet (you may have to refresh to get your newly created data controls). Be sure to include the navigation controls/buttons.

    5. Your data controls, drag the StudentCourses to the Central facet.

    6. Surround with a collection of panels and put a toolbar in its side of the toolbar.

    7. Your data controls, drag a StudentCourses operation CreateInsert operation in your toolbar

    8. Your data controls, drag operations StudentCourses delete operation in your toolbar

    Who should do about it. If this isn't the case, you're close enough.

    Will be

    Published by: LovettWB on February 5, 2011 13:49

  • How to create a document based on the name of a file in the file system?

    Hello

    With lots of photos, I like to have a database to collect information on these photos.

    First question is how to generate a record based on a file in the file system?
    for example, the images are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg".
    now, I want to create folders with as one of the attributes of the name of the image (not the image itself). How to create these records (based on information from line-telephony). that is the number of records must be the same as the number of photos.

    any suggestions?
    any response will be appreciated.

    Leo

    Link to create the directory

    http://www.adp-GmbH.ch/ora/SQL/create_directory.html

    You can create a list of files in the directory and read the list of files in this directory.

    [Documentation UTL_FILE | http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]

    [Solution using Java | http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:439619916584]

    SS

  • How to create a report in excel for a table?

    How to create a report in excel for a table?

    Creating an excel report

    the forage value off markup html on spool on

    coil emp.xls

    Select * from noshow.

    spool off

    moved the markup html off the coast of the coil

  • create / relational view received the error

    Hi expert,

    I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
    SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

    I have an .xml file in a table of xmltype: 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" & gt;
    < root id = "5ca4e3cb-7298-4948-8cc2-58e71ad32694" / >
    < code = '51725-0' codeSystem = "2.16.840.1.113883.6.1" displayName = "REGISTRATION OF ESTABLISHMENTS" / >
    < effectiveTime value = "20100730" / >

    ........................................................
    < / contactParty >
    < / assignedOrganization >
    < performance >
    < actDefinition >
    < code = "C43360" codeSystem = "2.16.840.1.113883.3.26.1.1" displayName = "manufacturing" / >
    < / actDefinition >
    < / performance >
    < / assignedEntity >
    < / assignedOrganization >
    < / assignedEntity >
    < / representedOrganization >
    < / assignedEntity >
    < / author >
    < item >
    < structuredBody / >
    < / component >
    < / document >

    I tried to create a relational view using the code below.
    I got following error:
    ERROR on line 1:
    ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name:
    (author ='urn: hl7 - org:v3')

    y does it can someone help me.
    Thank you!

    Published by: cow on March 18, 2011 14:14

    Hello

    You have the wrong Xpath by passing the XML fragment to the 2nd XMLTable.

    SELECT master.registrationID, master.code, detail.*
    FROM DOCUMENT doc,
         XMLTable(
          XMLNamespaces(default 'urn:hl7-org:v3'),
          '/document'
          PASSING doc.OBJECT_VALUE
          COLUMNS
            registrationID VARCHAR2(50) PATH 'id/@root',
            code           VARCHAR2(10) PATH 'code/@code',
            orgID          NUMBER(10)   PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/id/@extension',
            orgROOT        VARCHAR2(15) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/id/@root',
            orgNAME        VARCHAR2(50) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/name',
            orgADDRstreet  VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/streetAddressLine',
            orgADDRcity    VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/city',
            orgADDRstate   VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/state',
            orgADDRzip     VARCHAR2(15) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/postalCode',
            orgADDRcountry VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/country',
            orgPHONE       VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/telecom[1]/@value',
            orgEMAIL       VARCHAR2(40) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/telecom[2]/@value',
            contactPerson  VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/contactPerson/name',
            assignedEntity XMLTYPE      PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/assignedEntity'
         ) master
       , XMLTable(
          XMLNamespaces(default 'urn:hl7-org:v3'),
          '/assignedEntity'
          PASSING master.assignedEntity
          COLUMNS
            RSN_XML_POS     FOR ORDINALITY,
            orgID2          NUMBER(10)   PATH 'assignedOrganization/id[1]/@extension',
            orgROOT2        VARCHAR2(15) PATH 'assignedOrganization/id[1]/@root',
            orgID2_d        NUMBER(10)   PATH 'assignedOrganization/id[2]/@extension',
            orgROOT2_d      VARCHAR2(20) PATH 'assignedOrganization/id[2]/@root',
            orgNAME2        VARCHAR2(50) PATH 'assignedOrganization/name',
            orgADDRstreet2  VARCHAR2(20) PATH 'assignedOrganization/addr/streetAddressLine',
            orgADDRcity2    VARCHAR2(20) PATH 'assignedOrganization/addr/city',
            orgADDRstate2   VARCHAR2(20) PATH 'assignedOrganization/addr/state',
            orgADDRzip2     VARCHAR2(15) PATH 'assignedOrganization/addr/postalCode',
            orgADDRcountry2 VARCHAR2(20) PATH 'assignedOrganization/addr/country',
            orgADDRstreet3  VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/streetAddressLine',
            orgADDRcity3    VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/city',
            orgADDRstate3   VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/state',
            orgADDRzip3     VARCHAR2(15) PATH 'assignedOrganization/contactParty/addr/postalCode',
            orgADDRcountry3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/country',
            orgPHONE3       VARCHAR2(20) PATH 'assignedOrganization/contactParty/telecom[1]/@value',
            orgEMAIL3       VARCHAR2(40) PATH 'assignedOrganization/contactParty/telecom[2]/@value',
            contactPerson3  VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name'
         ) detail
    ;
    
  • How to create a view with columns from multiple lines

    I posted this in the SQL/PSL forum, but I hope that experts from the database in this group can give me ideas also, the necessity is also BI reports.

    I have a table, for example, project_milestones, that has these columns in order:

    PROJ_ID, milestone_name, actual_end_date

    with data:
    PROJ_ID, milestone_name, actual_end_date
    ===== ================ ==============
    1001, key approval, 2009-10-02
    1001, final synopsis, 2009-10-07
    1001, approved final Protocol, 2009-10-15
    1001, FPFV, 2010-01-10
    1001, LPFV, 2010-03-12
    ...
    1002, key approval, 2008-12-02
    1002, final synopsis, 2009-01-07
    1002, approved final Protocol, 2009-01-12
    1002, FPFV, 2009-03-30
    1002, LPFV, 2009-10-04
    ...
    There are about 10 steps in each project.
    I need to create a view for dish these data at the project level, looks like this:

    PROJ_ID, key_element_date, final_synopsis_date, final_protocol_approved_date, FPFV_date, LPFV_date, key_element_to_final_synopsis_days, final_synopsis_final_protocol_days...

    How can I do this?

    Thank you

    user9175541 wrote:
    I posted this in the SQL/PSL forum, but I hope that experts from the database in this group can give me ideas also, the necessity is also BI reports.

    I have a table, for example, project_milestones, that has these columns in order:

    PROJ_ID, milestone_name, actual_end_date

    with data:
    PROJ_ID, milestone_name, actual_end_date
    ===== ================ ==============
    1001, key approval, 2009-10-02
    1001, final synopsis, 2009-10-07
    1001, approved final Protocol, 2009-10-15
    1001, FPFV, 2010-01-10
    1001, LPFV, 2010-03-12
    ...
    1002, key approval, 2008-12-02
    1002, final synopsis, 2009-01-07
    1002, approved final Protocol, 2009-01-12
    1002, FPFV, 2009-03-30
    1002, LPFV, 2009-10-04
    ...
    There are about 10 steps in each project.
    I need to create a view for dish these data at the project level, looks like this:

    PROJ_ID, key_element_date, final_synopsis_date, final_protocol_approved_date, FPFV_date, LPFV_date, key_element_to_final_synopsis_days, final_synopsis_final_protocol_days...

    How can I do this?

    Thank you

    Create a PivotTable and put "milestone_name" in the columns, under the labels section.
    Put 'actual_end_date' in the section of measures and to change the rule of the aggregation of 'Max '.
    The rest of the attributes keep in the lines section.

  • How to create a view in the DB table for some servers

    Hello

    We need create a country table which will contain data for countries.

    I want to create it in such a way that it will be common for all servers - but as a point of view. not the real table, only the data and views do not change.

    How can I do?

    Thanks in advance

    Are you sure you want to say 'tablespace '? A tablespace is a collection of data files. It has nothing to do with the privileges of the object, object namespaces, etc. I'm guessing that you mean that you have two schemas, OBITUARIESCS and ADVERTISEMENTCS. A schema is a collection of objects of database belonged to a particular user. A single table can exist in spaces of multiple tables (assuming it is partitioned). Different schemas can have an infinite number of tables with the same name in the same table. The database schema is the namespace for objects such as tables.

    Assuming that you have two schemas in your database, you can create a table of COUNTRIES in the OBITUARIESCS schema. You can then grant SELECT access on the table to another user, ADVERTISEMENTCS, i.e.

    GRANT SELECT ON country TO advertisementcs
    

    You can then ask questions (but not change) the COUNTRY code of the property of ADVERTISEMENTCS table

    SELECT *
      FROM advertisementcs.country
    

    If you want to be able to remove the prefix in the schema, you can create a synonym. In the ADVERTISEMENTCS schema

    CREATE SYNONYM country
      FOR advertisementcs.country
    

    and then when the code of the property of ADVERTISEMENTCS wants to query the countries table, it can just

    SELECT *
      FROM country
    

    Justin

  • How to create a view with "WITH CLAUSE"

    Hello

    I have one query with 'BY' ARTICLE, I need to create a view of this query. But I get the error message like

    ORA-32034: Unsupported sue clause.

    Please help me...!

    Please find below my request...!

    WITH RANGE
             AS (SELECT A.MASTERMACHINEID,
                        a.startdate,
                        a.enddate,
                        a.startdate - (1 / 3) + (lvl) * 1 / 3 SHIFT_ST_DT,
                        a.startdate + (lvl) * 1 / 3 AS SHIFT_END_DT,
                        a.quantity,
                        (LEAST ( enddate, TODATE) - GREATEST ( FROMDATE, startdate)) * 24 TOTAL_HRS,
                        (enddate - startdate) * 24 AVAIL,
                       todate,
                       fromdate
                  FROM OMP A,
                       (SELECT LEVEL lvl
                          FROM (SELECT MAX (enddate - startdate) AS diff FROM OMPWORKORDER)
                        CONNECT BY LEVEL <= (diff) * 3),
                       MASTER B
                 WHERE A.MASTERMACHINEID = B.MASTERMACHINEID 
                   AND lvl / 3 <=(enddate - startdate) + 1
                ORDER BY SHIFT_ST_DT)
       SELECT shift_date,
              shift_num,
              shift_hrs,
              DECODE (SIGN (SHUT_DWN_TIME), -1, 0, SHUT_DWN_TIME),
              8 - DECODE (SIGN (SHUT_DWN_TIME), -1, 0, SHUT_DWN_TIME) shift_avail_hrs,
              qty,
              total_qty
         FROM (SELECT TRUNC (SHIFT_ST_DT) shift_date,
                      ROW_NUMBER () OVER (PARTITION BY TRUNC (SHIFT_ST_DT) ORDER BY SHIFT_ST_DT) shift_num,
                      8 shift_hrs,
                      (LEAST ( SHIFT_END_DT, TODATE) - GREATEST ( FROMDATE, SHIFT_ST_DT)) * 24
                        SHUT_DWN_TIME,
                      quantity / (avail - TOTAL_HRS) qty,
                      round(((SHIFT_END_DT - SHIFT_ST_DT) * 24 - (LEAST (SHIFT_END_DT, TODATE) - GREATEST (FROMDATE, SHIFT_ST_DT)) * 24)  * QuantiTY / (AVAIL - TOTAL_HRS),2)
                         TOTAL_QTY
                 FROM RANGE A );
    Concerning
    KPR

    Published by: BluShadow on March 17, 2011 09:48
    addition of {noformat}
    {noformat} tags for readability                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Try to create the view on the next request, if it helps you:

    SELECT shift_date,
        shift_num,
        shift_hrs,
        decode(SIGN(shut_dwn_time),     -1,     0,     shut_dwn_time),
        8 -decode(SIGN(shut_dwn_time),     -1,     0,     shut_dwn_time) shift_avail_hrs,
        qty,
        total_qty
    FROM
        (
            SELECT TRUNC(shift_st_dt) shift_date,
                 row_number() over(PARTITION BY TRUNC(shift_st_dt)
             ORDER BY shift_st_dt) shift_num,
                 8 shift_hrs,
                (least(shift_end_dt,      todate) -greatest(fromdate,      shift_st_dt)) *24 shut_dwn_time,
                 quantity /(avail -total_hrs) qty,
                 ROUND(((shift_end_dt -shift_st_dt) *24 -(least(shift_end_dt,      todate) -greatest(fromdate,      shift_st_dt)) *24) *quantity /(avail -total_hrs),      2) total_qty
             FROM
             (
                  SELECT a.mastermachineid,
                     a.startdate,
                     a.enddate,
                     a.startdate -(1 / 3) +(lvl) *1 / 3 shift_st_dt,
                     a.startdate +(lvl) *1 / 3 AS
                 shift_end_dt,
                     a.quantity,
                    (least(enddate,      todate) -greatest(fromdate,      startdate)) *24 total_hrs,
                    (enddate -startdate) *24 avail,
                     todate,
                     fromdate
                 FROM omp a,
                        (SELECT LEVEL lvl
                     FROM
                        (SELECT MAX(enddate -startdate) AS
                        diff
                         FROM ompworkorder)
                    CONNECT BY LEVEL <=(diff) *3),
                     master b
                 WHERE a.mastermachineid = b.mastermachineid
                 AND lvl / 3 <=(enddate -startdate) + 1
                 ORDER BY shift_st_dt
             ) a
         )
    ;
    

    Kind regards
    Dipali.l

  • How to create the view in OBIEE

    I have "table 1" with columns, Attr1, Attr2, action 1, measure 2.I need to create the view in the table repository Attr1, Measure1 and new attribute with values like a flag 3 'Y' in it. ". What will be the SQL code of the new view. Please provide the exact syntax for the view.

    Thanks in advance

    Hi Hsekar,

    You are right, it is called a SELECT type.

    Regarding your second question I don't know what you mean. You are using an SQL Select statement in this area. The Alias of the columns must match the columns will place you in the RPD exactly. But in this process, you create a physical view DB object, so there is not need to name it. You just create the select statement that you would use to create a view and OBIEE refers to the statement.

    If you have found the correct answer please give points!

    Best regards

    -Joe

  • How to create a block of data to multiple tables

    If I try to use the wizard to create a new block of data and I choose to create it on a table or a view, the wizard asks me for the table create the form on. But if I want to create a form with two tables for example to join them, how can I do? Do I have to create a view on the database (very bad for me!) before joining the wtho tables can create the form to this point of view, or is it possible to create a form in two or more tables?

    Mark,
    Yes, you can base in fact of a block of shapes on a join of tables. Take a look at forms: how to build a block of data to a join of the table. You can also use a base query Clause From block. Basically, you base your block on a SQL statement. For more information on this option, take a look at forms: how to base a block on a FROM Clause query. Finally, you can also base your block on a procedure. This concept is illustrated in this article: forms: how a block of data based on a procedure.

    The fall down using one of these options, is that your block is not editable. If you need to update the data presented by these options, you should use the-Insert, triggers we set to and delete now write your own Insert/Update and Delete statements.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

Maybe you are looking for