Views with multiple associations

How is it possible to tell JDeveloper 3.0 which associtations to
use in views when there are multiple associations defined
between two tables?
I try to define (part of) a view by:
- Add table 1
- Add table 2 with alias name a
- Add table 2 with alias name b
I can see from the generated XML file that JDeveloper uses the
same association for the two definitions of table 2 (2a and 2b)
in stead of two different associations (as I want).
How can I tell JDeveloper which assoctioans to use? (If I try to
edit the XML file, JDeveloper protests.)
null

A small subset of my datamodel is:
Orders table:
- OrderId
- CustomerIdSender (foreign key to Customers)
- CustomerIdReceiver (foreign key to Customers)
Customer table:
- CustomerId (primary key)
- CustomerName
I try to make a view that gives me:
- OrderId
- CustomerIdSender
- CustomerIdReceiver
- CustomerNameSender (from Customers)
- CustomerNameReceiver (from Customers)
Procedure:
- ....new view OrderWithLookupvaluesView
- Choose table orders
- Choose table customers with alias CustomersSender
- Choose table customers with alias CustomersReceiver
I have to associations:
- OrderCustomerSend (defining foreign key constraint for
CustomerIdSender in orders)
- OrderCustomerRec (defining foreign key constraint for
CustomerIdReceiver in orders)
In the generated xml file for OrderWithLookupvaluesView i can
see that the definitions for CustomersSender and
CustomersReceiver both refer to the same association
OrderCustomerSend. The result of this is that the generated SQL
is wrong and that the lookup of the CustomerName is wrong.
How can i make JDeveloper understand that CustomerReceiver
should refer to associtation OrderCustomerReceiver and
CustomerSend to assoctiation OrderCustomerSend?
JDeveloper Team (guest) wrote:
: Henning,
: I am not sure what you are trying to do or why.
: The associations between tables are automatically picked
: up from the DB and an association object created.
: I am not sure why you need to over-ride this, but to
: change it in any way, simply right click on the association
: and select Edit.
: As far as editing XML files, you can edit XML files externally
: to JDeveloper, but to have JDeveloper use the update
definitions,
: you need to have JDeveloper reload your workspace
: (either switch workspaces or exit JDeveloper and re-enter).
: I believe you are possibly doing things in a way which is
: not correct, but without additional details of
: What you are trying to do, I can not state un-ambiguously.
: -JDeveloper Team
: henning (guest) wrote:
: : How is it possible to tell JDeveloper 3.0 which
associtations
: to
: : use in views when there are multiple associations defined
: : between two tables?
: : I try to define (part of) a view by:
: : - Add table 1
: : - Add table 2 with alias name a
: : - Add table 2 with alias name b
: : I can see from the generated XML file that JDeveloper uses
the
: : same association for the two definitions of table 2 (2a and
2b)
: : in stead of two different associations (as I want).
: : How can I tell JDeveloper which assoctioans to use? (If I
try
: to
: : edit the XML file, JDeveloper protests.)
null

Similar Messages

  • OLAP on 11g and Materialised Views with Multiple Value-Based Hierarchies

    Hello OLAPians
    I am trying to setup Orable BIEE to report on an OLAP cube with pre-aggregated data. As OBIEE is not able to hook into the OLAP directly i have to create an SQL cubeview.
    Currently i am on a 10g OLAP environment and am using the oracle sample SQL cubeview generator to create an SQLview of my cube.
    The cube itself has multiple dimensions and these dimensions have multiple VALUE-based (ragged) hierarchies and dimension members can be shared across hierarchies also.
    Initially i had a problem running the view generator plugin because there is a bug within it that does not finish if there are multiple value-based hierarchies present. I was able to get around this by manually editing the limitmap for the cubeview and manually creating the SQL view.
    The question that i want to ask is how robust is the 11g materialised views with multiple value-based hierarchies and the sharing of dimension members across different hierarchies?
    Has anyone successfully been able to create a cubeview and import it into OBIEE without the hassle of manually editing the limitmap?
    A problem arises with the value-based setup whereby if the client creates a newer depth in the ragged hierarchy, i need to manually create the limitmap and the cube-view over again, and then re-map the BI Administration mappings.

    The simple answer to your question,
    how robust is the 11g materialised views with multiple value-based hierarchies...?is that materialized views are not supported on top of value-based hierarchies in 11g. The reason is that it is not possible to write a reasonable SQL statement that aggregates a fact over a value-based hierarchy. Such a SQL statement is necessary if we want to create a rewritable MV on top of the cube.
    But I suspect this is not what you are really asking. If you are trying to set up OBIEE on top of the cube in 10g using the view generator, then you will probably want to use the "ET VIEWS" that are generated automatically in 11g. These are generated whether or not you enable materialized views on top of your cube. I am not aware of any issues with the generated value-based hierarchy view support in 11g. Members may be shared between value hierarchies and you will not need to generate or modify limit maps.

  • Ability to query on all columns from a view with multiple tables

    I have view with 4 tables. view has about 50 columns.
    hypothetically, I want to build a form to give the user an ability to query on any of those 50 columns. user can search on one or more fields.
    what is the best way to write the query to retrieve the results without performance impact.
    please let me know if the question is not clear.

    If you want to permit them to query any of 10 fields with no restrictions, you could create 10 separate single-column indexes. The optimizer would have to try to pick the best of these indexes if you specified multiple search criteria. But since you have a view which presumably means that you've got multiple other indexes involved for the underlying join conditions, you'd probably want/need to combine the column lists of the indexes you're adding for searches with the indexes you've created for joins, which requires looking at the text of the view and figuring out the best way to optimize the 10 single-column searches. Of course, it is possible that the optimizer could chose to do something like a b-tree to bitmap conversion on multiple indexes which could allow it to use multiple independent indexes for your queries, but that's generally not ideal performance-wise.
    All this is a fancy way of saying that there probably isn't a cut and dried answer to your question. You need to figure out the queries you're trying to optimize (say, the 10 single-condition queries) and you need to figure out what set of indexes on the various underlying tables provides the best performance weighing those benefits against the cost on other side of maintenance during DML. Which is going to depend on the text of the view, the underlying tables, the existing indexes, etc.
    Justin

  • Table View with Multiple Context Nodes

    I want to create a table-view consisting of an object composition, e.g. multiple business objects. The chtml:configCellerator -tag supports just one context node which corresponds to just one business object.
    How do you create a table composed by different objects, i.e. BTAdminH and BTAdminI ?
    Edited by: romanglass on May 18, 2010 4:07 PM

    Hi,
    I would suggest to create a new component and not to disturb the standard ones. Because the super class of the header context node (BTAdminH in your case) must be inherited from CL_BSP_WD_CONTEXT_NODE_DTV - Deep table view.
    The dependent nodes must be passed to return parameter rt_result of method GET_SUB_CNODE_DEFINITIONS.
    This cant be done via wizard. I just tried to replicate your scenario. Below are the steps,
    1. create a view with context node BTADMINH as tableview. Then change the super class of the context node to   CL_BSP_WD_CONTEXT_NODE_DTV.
    2. Add another context node BTADMINI and mark it as dependent to BTADMINH.
    3. Now change the super class of context node BTADMINI to CL_BSP_WD_CONTEXT_NODE_TV  (Table View).
    4. Redefine method GET_SUB_CNODE_DEFINITIONS in context node BTADMINH.
    In the view layout you should use cellerator and pass an iterator with interface IF_THTMLB_CELLERATOR_ITERATOR. The interface has a method RENDER_DEPENDANT_OBJECTS which returns the table of dependant objects.
    Regards,
    Arun
    Edited by: Arun Kumar on May 19, 2010 1:01 PM

  • SOLVED: Limit default view with Multiple non-destructive filters mode

    This was solved:
    I deleted the { subPaths: "word" } within my dataset. The dataset was pulling and displaying the subpath content which I don't need.
    ==================================================================
    Hi,
    I’m using the Multiple Filters Mode Sample to filter headlines in my xml file by the keywords associated with them.
    My question is, with no filters selected, how do you display only one headline for the default view? So, instead of the <headline> node repeating itself for every keyword within that node, it just displays one headline. I just want to display only one headline instead of repeating the headline based on the amount of keywords associated with it.
    If you view the donut example given a donut is displayed for every topping associated with it.
    I’m not as experienced with JS but I thought that if I create an array of all the possible keyword combinations and then use an if-then to display just one combination then it might work. The problem is that the amount of keywords will grow with time. I might amass 15-20 keywords in the next month, so an array might not be practical.
    Also, my “Remove All Filters” doesn’t work. The debugger is giving me an error that states: ‘documents.forms.0.noneCB’ is null or not an object -This would mean that the checkbox has not been selected is this correct?
    I’ve included the code and my xml data below. Any assistance would be greatly appreciated!
    <html>
    <head>
    <script language="JavaScript" type="text/javascript" src="/SpryAssets/xpath.js"></script>
    <script language="JavaScript" type="text/javascript" src="/SpryAssets/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript" src="/SpryAssets/SpryDataExtensions.js"></script>
    <script type="text/javascript">
    <!--
    var dsHeadlines = new Spry.Data.XMLDataSet("headlines_test.xml", "/headlines/headline", { subPaths: "word" });
    function ffNone(ds, row, index){ return (row.word == "None") ? row : null; };
    function ffJudicial(ds, row, index){ return (row.word == "Judicial leadership") ? row : null; };
    function ffProBono(ds, row, index){ return (row.word == "Pro bono") ? row : null; };
    function ffHearings(ds, row, index){ return (row.word == "ATJ hearings and events") ? row : null; };
    function ffCreation(ds, row, index){ return (row.word == "ATJ entities creation and structure") ? row : null; };
    function ToggleFilter(enable, f)
                if (enable)
                            dsHeadlines.addFilter(f, true);
                else
                            dsHeadlines.removeFilter(f, true);
    function RemoveAllFilters()
                document.forms[0]["noneCB"].checked = false;
                document.forms[0]["judicialCB"].checked = false;
                document.forms[0]["probonoCB"].checked = false;
                document.forms[0]["hearingsCB"].checked = false;
                document.forms[0]["creationCB"].checked = false;
                dsHeadlines.removeAllFilters(true);
    -->
    </script>
    </head>
    <body>
                <div class="liveSample" style="float: left; margin-bottom: 4px;">
                <form action="">
                <p>Select any of the following:</p>
                <ul style="list-style:none">
                    <li><label><input name="noneCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffNone);" />None</label></li>
                    <li><label><input name="judicialCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffJudicial);" />Judicial leadership</label></li>
                    <li><label><input name="probonoCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffProBono);" />Pro Bono</label></li>
                    <li><label><input name="hearingsCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffHearings);" />ATJ hearings/events</label></li>
                    <li><label><input name="creationCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffCreation);" />ATJ entities: creation and structure</label></li>
    </ul>
                <p><label>Filter Mode: <select onchange="dsHeadlines.setFilterMode(this.value, true);"><option value="and" selected="selected">-- AND --</option><option value="or">-- OR --</option></select></label>
                <input type="button" value="Remove All Filters" onclick="RemoveAllFilters();" /></p>
                </form>
                </div>
                <div spry:region="dsHeadlines">
                    <table>
                        <tr><th>Title</th><th>Date</th><th>State</th></tr>
                        <tr spry:repeat="dsHeadlines"><td valign="top"><a href="{hyperlink}">{title}</a><p></p></td><td valign="top">{date}</td><td valign="top">{state}</td></tr>
                    </table>
                </div>
    </body>
    </html>
    <?xml version="1.0" encoding="UTF-8"?>
    <headlines>
      <headline>
        <id>1</id>
        <title>
          <![CDATA[Save the date! 2009 National Meeting of State Access to Justice Chairs will take place in Orlando in Saturday, May 16, 2009. Invitations will be mailed out in late January.]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.abanet.org/legalservices/sclaid/atjresourcecenter/annualmeeting.html]]>
        </hyperlink>
        <state>FL</state>
        <date>20090516</date>
        <word id="0001">None</word>
      </headline>
      <headline>
        <id>2</id>
        <title>
          <![CDATA[ABA Day in Washington. ABA Day legislative visits on April 21-22 will focus solely on access to justice issues. Register and receive materials, training, and schedule of events free before March 14 at: http://www.abanet.org/poladv/abaday09/.]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.abanet.org/poladv/abaday09/]]>
        </hyperlink>
        <state>DC</state>
        <date>20090421</date>
        <word id="0002">Pro bono</word>
        <word id="0004">ATJ hearings and events</word>
        <word id="0005">Judicial leadership</word>
      </headline>
      <headline>
        <id>3</id>
        <title>
          <![CDATA[North Carolina Bar Association and North Carolina Bar Association Foundation host second annual 4ALL Statewide Service Day ask-a-lawyer event at five call centers around the state. (3/6/2009)]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.4allnc.org/]]>
        </hyperlink>
        <state>NC</state>
        <date>20090306</date>
        <word id="0002">Pro bono</word>
      </headline>
      <headline>
        <id>4</id>
        <title>
          <![CDATA[Wyoming Access to Justice Commission holds its first meeting. (2/27/2009)]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.nlada.org/DMS/Documents/1236184561.24/AJC%20Appointing%20Order%202009.pdf]]>
        </hyperlink>
        <state>WY</state>
        <date>20090227</date>
        <word id="0003">ATJ entities creation and structure</word>
      </headline>
      <headline>
        <id>5</id>
        <title>
          <![CDATA[Tennessee’s Supreme Court launches Access to Justice Campaign with the first in a series of public hearings. (2/26/2009)]]>
        </title>
        <state>TN</state>
        <date>20090226</date>
        <word id="0003">ATJ entities creation and structure</word>
        <word id="0004">ATJ hearings and events</word>
        <word id="0005">Judicial leadership</word>
      </headline>
    </headlines>

    1) I deleted bridge-utils, netcfg
    2) I edited /etc/hostapd/hostapd.conf:
    interface=wlan0
    #bridge=br0
    edited /etc/dnsmasq.conf:
    interface=wlan0
    dhcp-range=192.168.0.2,192.168.0.255,255.255.255.0,24h
    and edited /etc/rc.local:
    ifconfig wlan0 192.168.0.1 netmask 255.255.255.0
    ifconfig wlan0 up
    3) I added in autostart these daemons: hostapd, dnsmasq and iptables.
    Profit!

  • Synchronizing Iterators for master view with multiple detail - how to ?

    New to JDeveloper (from Forms) and after an introduction a week or so back, one question I have not yet answered with the ADF framework is how to synchronize iterators. Maybe I missed something simple, but if I have master table A with FK relations from detail tables B and C expressed as view objects and view links in the Model tier, when I package these up into the Application Module / Data Controls it seems I have 2 iterators for table A - one for it and it's detail set B, and another for it and it's detail set C.
    So then, if I drag & drop one of the A data controls onto a page (say from the A-B link) as a read-only-table, my PPR actions from this table work on components derived from this same data control hierarchy - ie: on detail B. But to effect a change in the other detail relationship A-C, and components based on C, seems to mean moving this second iterator on A programmatically.
    How is this generally achieved using the ADF ? I've seen content about chaining master-detail-detail, but this is really master-detail(xN). View links only ever specify 2 tables. It seems I need to put some code in somewhere to move associated iterators when another iterator is moved.
    Also, is there an equivalent java code-point for the when-new-record-instance - ie: when an iterator moves to a different record, whether that be new or not. Not being able to find it thus far, I've put code in the executeQuery of the detail VO which fires when I need it, but there must be a better place.
    Thanks for the help.
    Edited by: litch on Jul 29, 2009 11:20 AM

    You can manipulate your AM Data Model so both details will be under the same master (as long as there are viewLinks from the master to both).
    Then you can drag them to the page and add PPR as described here:
    http://blogs.oracle.com/shay/2008/05/master_with_two_details_on_the.html

  • Adobe Content Viewer with multiple Adobe-IDs

    Hi guys,
    i am having a problem with the Adobe Content Viewer.
    Because we work on several projects for different customers we have different Adobe-IDs for each of them.
    So I used to sign-in and sign-out in the Content Viewer to download the different folios. It used to work this way. Once downloaded I could open every folio, independently from the according Adobe-ID.
    Since - I think - the last Update of the Viewer, folios are going to be deleted, if I log out. There is no thumbnail of the folios any more: only the ones belonging to the Adobe-ID, which I am currently singed-in with.
    Does anyone else have this problem? Is there a work around
    Greetings
    Michaela

    Do the ones already downloaded vanish? Or the ones that are on the server?
    —Johannes
    (mobil gesendet)

  • Create edit form based on view with multiple column key

    Hi
    I have a requirement to create a form to update some tables columns based on a view.
    The problem is that the view has a primary key of 4 columns.
    I have tried to create a rowid key based on one underlying table but this does not work.
    I am calling the form from an interactive report but can only pass 3 keys to the form, so only get 3 fields populated.
    Is there some way i can create the form manually as the wizards cannot cope with this requirement?
    My view is here:
    CREATE OR REPLACE FORCE VIEW "DMOADMIN"."MO_STATUS_LOG_VIEW" ("MONEY_ORD_NO", "STATUS_CODE", "DESCRIP", "STATUS_DATE_TIME", "TXN_DATE_TIME", "LLOG_ID", "LINE_SEQ_NO", "CANCEL_IND", "PROCESS_ID", "PBU_ID", "TXN_SEQ_NO", "CANCEL_REASON", "CONDITION_ID", "ADMIN_DATE_TIME", "ADMIN_LLOG_ID") AS
    SELECT a.money_ord_no,
    b.status_code,
    b.descrip,
    a.status_date_time,
    c.txn_date_time,
    c.llog_id,
    c.line_seq_no,
    c.cancel_ind,
    c.process_id,
    c.pbu_id,
    c.txn_seq_no,
    c.cancel_reason,
    c.condition_id,
    d.txn_date_time admin_date_time,
    d.llog_id admin_llog_id
    FROM mo_status a,
    mo_status_desc b,
    host_txn_log c,
    host_admin_log d
    WHERE a.status_desc_id = b.id
    AND a.money_ord_no = c.money_ord_no(+)
    AND a.status_date_time = c.txn_date_time(+)
    AND a.money_ord_no = d.money_ord_no(+)
    AND a.status_date_time = d.txn_date_time(+)
    WITH CHECK OPTION;
    I have tried to populate the data using with an on load process using a plsql query but it is not working. I get no data found error message. Help!

    Hi Erwin,
    I have a similar situation.
    Tabular form based on a view. The view contains a table in a another instance via dblink and everything works fine.
    The only one difference between my and your view is that my "instead of" view is only for UPDATE. You must to have "intead of" trigger only for UPDATE. Insert and delete works fine withoust "instead of" trigger.
    So, try to delete INSERT and DELETE words from your "INSTEADOFBUBA" trigger.
    hope it helps,
    Mzz

  • Create view from multiple days tables

    Hi,
    I'm having existing oracle db with daily stat data, tables strangely named data_mon, data_tue, data_wed.. For my batch processing I plan to use view with multiple day data, let say for last 5 days.
    Not sure how better implement my sql statement, with those _mon suffixes to make it more or less dynamic.
    I also never create View from multiple tables, so probably I can do something that will add fresh daily data and delete 5 days old data?
    Will appreciate you comments on details and whole concept. I have prev sql server experience.
    Thanks
    T

    user12943718 wrote:
    Hi,
    I'm having existing oracle db with daily stat data, tables strangely named data_mon, data_tue, data_wed.. For my batch processing I plan to use view with multiple day data, let say for last 5 days.
    Not sure how better implement my sql statement, with those _mon suffixes to make it more or less dynamic.
    I also never create View from multiple tables, so probably I can do something that will add fresh daily data and delete 5 days old data?
    Will appreciate you comments on details and whole concept. I have prev sql server experience.
    Thanks
    TChange the data model so you don't have 1 table for a day.
    You just have a DATA table, and a column to denote the day of applicability.
    Then you don't need a view, don't need anything dynamic, don't need to smash your head against a wall for a simple query ... etc.

  • Problem Inserting into object view with OracleXmlSave

    Gurus,
    I'm trying to insert into an object view with
    multiple collections of objects representing a master/detail relationship and a CLOB column, but I've this error:
    oracle.xml.sql.OracleXMLSQLException: Error Interno
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1967)
    at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
    at onix.interface_isbn.OnixXmlLoader.doInsert(OnixXmlLoader.java:165)
    at onix.interface_isbn.OnixXmlLoader.setLoader(OnixXmlLoader.java, Compiled Code)
    at onix.interface_isbn.OnixXmlLoader.<init>(OnixXmlLoader.java:23)
    at onix.interface_isbn.correrLoader.main(correrLoader.java:77)
    I'm using OracleXmlSave with insertXML method to do this.
    Is There any limitations to do that? (example
    number of tables into the view, columns datatype).
    I'd appreciate any comments
    Thank

    No known limitations. Please post the sample DDL to create your object types and object view, along with an example of the example XML document you're trying to insert.

  • HT2688 Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared librar

    Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared library?

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

  • Playing a playlist with multiple albums in Grid View in iTunes 8

    Hi All,
    Here is a situation I came across, that was quite unexpected compared to the behaviour in iTunes 7.
    Suppose I have a playlist with multiple artists/albums. I have this playlist in Grid View. I choose this playlist from the left side navigation tree and press the play button. This playlist is set to shuffle by songs. I expect it to play a song and jump to the next song. iTunes 8 would just keep playing the same songs in the first album listed in the Grid View and would not jump to any other.
    http://img152.imageshack.us/img152/4726/itunes20080910191124oh2.jpg
    In this screenshot above, it will keep the songs in "The Very Best Of". If I press Ctrl+L (show now playing) then it would show only the songs in this album. This quite explains why it doesn't play other songs.
    To explain a bit more on what's happening:
    If I go to List View the song now playing does not have the Now Playing icon:
    http://img98.imageshack.us/img98/1113/itunes20080910191500vf3.jpg
    Notice it is playing "Opa Opa" but in the List View, it doesn't show it.
    This is because in Grid View if you play a song from the playlist, it has its own "virtual playlist"
    http://img98.imageshack.us/img98/5269/itunes20080910191525wl1.png
    Notice the now playing icon there.
    Why is this the case?
    I hope you guys understood what I was trying to explain.

    turingtest2: I had already done exactly what you described in the *"Missing Artist or Album not with others by same artist"* section of your article. But what I hadn't done was the advice you gave as the last sentence in this section...*"In addition if you change the Compilation status of tracks they may be temporarily treated as tracks from an Unknown Album, again things should resolve themselves if you close and reopen iTunes".* As soon as I closed and restarted iTunes, the Unknown Album with five tracks disappeared and the tracks were again displayed with the correct album.
    Your article is a great read, even for people who understand iTunes...there is a lot of helpful advice there to have bookmarked just in case any of the other problems you address are ever encountered. Thanks for taking the time to compile it and share it iTunes users.

  • Problem with multiple client numbers from a view

    Hi Gurus,
    I have a problem with a view
    Creates a view with a UNION ALL stmt
    =====================================
    Create view vw_benifits
    as
    SELECT
         Client_num, -- can have multiple values like 200,201,250
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
         COB_MNTH_AMT
    FROM
         STG_SAP_PA9211_TB
    UNION ALL
    SELECT
         null, -- no client number for legacy data
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
    COB_MNTH_AMT
    from
         LEG_STG_SAP_PA9211_TB;
    ==============================
    The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
    Now if the users qery the view they will only get that clients data.
    eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
    I don't want to propose
    selet * from vw_benifits where client_num in (250,NULL) since the users will be confused.
    Is there any other way to do this . my requirement is like
    If they query
    select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that.
    Appreciate your help
    Deepak

    Hi Thanks for the suggestion.
    But I am not sure this may work for me. Here my users may not be able to use that since they don't know Oracle.
    I want to hide that details from them
    They may just issue a statement like this
    select * from vw_benifits where client_num =250
    Or
    select * from vw_benifits where client_num =400 . But both times I need to show them the data from the legacy table.
    Deepak

  • Create View table with multiple table

    I want to create View table with relation with multiple tables.
    for ex
    table 1
    mrnno
    mrnqty
    table 2
    mrnno
    issqty
    table 3
    mrnno
    retqty
    want to create view table where i can see the sum (mrnqty), sum(issqty),sum(retqty) group by mrnno
    sandy

    Hi
    CREATE OR REPLACE FORCE VIEW my_view AS
    WITH t1 AS
    (SELECT mrnno,
                      SUM(mrnqty) sum1
    FROM table_1
    GROUP BY mrnno),
    t2 AS
    (SELECT mrnno,
                      SUM(issqty) sum2
    FROM table_2
    GROUP BY mrnno),
    t3AS
    (SELECT mrnno,
                      SUM(retqty) sum3
    FROM table_3
    GROUP BY mrnno)
    SELECT mrnno,
                    sum1,
                   sum2,
                   sum3
    FROM t1,t2,t3
    WHERE t1.mrnno = t2.mrnno
    AND       t1.mrnno = t3.mrnnoCheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Create opaque view in OBIEE with multiple tables

    Hi,
    I need some help with the opaque view since i have never created it in past. I want to create an opaque view which fetches data from multiple tables. Is it possible to do that ? Or is there any other alternate option available in OBIEE ? I read the following blog and other similar blogs on opaque views but could not find option to use it for query with multiple tables:
    Oracle Business Intelligence: Creating Opaque View in Physical Layer in OBIEE 10g
    Also can you please advice how to join two tables from different databases in OBIEE ?
    Kindly advice.
    Regards,
    Andy

    Hi Andy,
    As per my knowledge you can create Opaque View on one table at a time.Joining two tables from different databases yes we can create a report from multiple data sources.Check this
    Rittman Mead Consulting &amp;raquo; Blog Archive &amp;raquo; Reporting Against Multiple Datasources in OBIEE
    Mark if helps.
    Thanks,

Maybe you are looking for