How can we achieve the outer join in physical layer

Hi,
Can any one can suggest ,how do we handle the outerjoin criteria in obiee.
thanks
B.kumar

Its not advisable as such to use complex join in physical layer......Use physical primary-foreign key relationship join on the tables.
But looking at your where condition
where tab1.date between tab2.start_date and tab2.end_dateIt is not possible because you are taking table1 date and giving the table 2 dates for evaluation.
it should be this way if its primary key relation ship.
where tab1.date between tab1.start_date and tab1.end_dateIf it is equi-join then you need to write what you have mentioned in your query.
Cheers,
KK

Similar Messages

  • How can I replace the out of the box photos with my own when music is playing?

    How can I replace the out of the box photos with my own when music is playing?

    Welcome to the Apple Community.
    Select any photos you want to share with the Apple TV using the iTunes advanced menu (using iPhoto is the better option but a folder will work). Once all the photos you want are shared, go to settings > screensaver on the Apple TV and choose which of those shared photos you want to use with your screensaver.

  • Outer Joins in physical layer

    Hello BI people - I'm new in this issue and I need help.
    I'd like to do sth like outer join in physical layer between two tables and I can't :(
    For example
    Table CUSTOMERS and table REGIONS for customers. Table CUSTOMERS has colum: POSTAL_CODE and in table REGIONS I have primary key:POSTAL_CODES. till now everything looks simply PK to FK 1:n relation but sometimes happens that in table customers there are nulls or mistakes in this field (reason: bad written application, dirty data etc)
    and when I don't use OUTER JOIN I'll lose some records about customers - I would like to see that records even with cleared region informations. How to do it in BI -use VIEWS ? Can I join two physical tables with outer join?
    Thanks for help

    Ok. You have to resolve this in the logical layer as wel.
    When you click on custumers and then on sources.
    What do you see there?
    Do you only see one source or 2 sources?
    If you see 2 sources, then just delete one and double click on the source that is left over. In here you can join with the other table and choose outer join.
    Good luck ;)

  • Can we create a multiple joins in physical layer

    Hi,
    I have a requirement that i want to create a multiple joins in physical layer.
    Ex:
    Table a (custid,name,sal) and tableb (custid,ced_id, loc)
    i had requirement that cust id is joining with custid and cedid from table b
    i.e a.custid=b.custid AND
    a.custid=b.ced_id (Note data types are same across all the joins here).
    When am trying to handle it form physical joins, getting an issue that The column'cusid' is used twice.
    Regards,
    Malli

    As Daan said use complex join in physical layer that should work. Just in case its not working then go with 1 join condition physical layer and create foreign key join in BMM layer, this would override join in physical layer.

  • How can we make an outer join (+) between 2 Queries

    in the data model, i have 2 queries
    i.e
    Q_master and Q_detail
    i want to make a data link between
    these two queries and
    also make an outer join between these
    two queries(i.e. to display all the detail
    records, whether they have details or not)
    please reply is it possible ?
    if yes then how?
    plz write.
    [email protected]
    null

    Hello,
    Left outer join behavior is what you get by default with a link between two queries in Reports.
    If you want a full outer join behavior, you'll need to create a third query that selects the detail records that have no corresponding master, and also create an extra layout region to display them in as a default group left or group above won't pick up these extra records.
    If you want right outer join behavior, you'll need to put in a summary in the master query that counts the rows in the detail, and then put in a format trigger in the master repeating frame that suppresses printing when there are no detail records. And you'll also need the third query and layout section as in the full outer join case.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How Can I Achieve Sliding Out Social Icons on Left side of Page?

    I have been trying to find free plugins, but ways to work with the various states in Muse, but am having trouble deciding which was is best. Here is an example of what I mean,,, but all are only for Wordpress.
    http://smartcatdesign.net/sliding-social-icons-free-wordpress-plugin/

    ok try and explain this best as I can....
    ok,,, I used a set PSD document size first to make sure all Active Icons were same size....(screen shot 1)
    2) Then after I had every icon I needed,, I saved each one as for instance facebook_active for site purposed,, but leave this document open to simply bring in the icon to next file
    3) Next I opened a new PSD document and set size to 153px x 47px (was size I was looking for, which would be my hover state in the end)
    4) If you look at my layers closely you will see kinda what I did,,, just added new layer and went little passed left edge of each icon with its own color: facebook=blue youtube=red.....
    5) Then I centered text to make sure all text would be in the same spot and look good.
    6) then when u have my 2nd screen shot,,, save that as facebook_hover
    7) Muse time,,,,, go to muse and make rectangle of the size of your hover size (my case was 153px X 47px) and place with left edge alligned to left side of page.
    go to fill,,, and image icon to upload your active icon first and make sure is original size and set to far middle left......then make sure your color fill is transparent,,, nothing.....
    8) Then go to states and rollover and then go back to fill and upload the hover image and do original size,, should fill rectangle exactly

  • How to avoid duplicated rows using the outer join

    Hi everybody,
    I have the following query:
    select a.usr_login, b.ugp_rolename, b.ugp_display_name from
    (select usr.usr_login, usr.usr_key, usg.ugp_key from usr,usg
    where usg.usr_key = usr.usr_key
    and usr.usr_login IN ('C01015','C01208')) a,
    (select ugp.ugp_key, ugp.ugp_display_name from ugp
    where ugp.ugp_rolename LIKE 'B-%') b
    where a.ugp_key = b.ugp_key (+)
    The first query 'a' has the following result:
    usr_login <space> usr_key <space> ugp_key
    C01015 <space> 49 <space> 565
    C01015 <space> 49 <space> 683
    C01015 <space> 49 <space> 685
    C01015 <space> 49 <space> 3
    C01208 <space> 257 <space> 3
    The usr_login on table usr is the primary key, and as you can see above, for each usr_login I can find one ore more ugp_key on the table usg.
    The query 'b' gives the list of all the usr_login's roles which have the name LIKE 'B-%' (it means '*Business Roles*'), and all the respective role's key (ugp_key)
    So, when I join the query 'a' with the query 'b', I expect to find for every usr_login the respective ugp_display_name (the Business Role name).
    Because the query 'b' contains ONLY the ugp_keys of the Business Roles, when I execute the complete query, this is the result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01015 <space> null <space> null
    C01015 <space> null <space> null
    C01208 <space> null <space> null
    As you can see, with the outer join I obtain the Business Name (ugp_display_name) for each occurrence (and I have 2 rows duplicated with 'null' for the usr_login C01015); This beacuse the query 'b' doesn't have the two ugp_keys 685 and 3.
    Instead I'd like to have the following result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01208 <space> null <space> null
    deleting ONLY the duplicated rows with null, when the usr_login has already at least one ugp_display_name not null.
    For example:
    1) The usr_login 'C01015' has 2 Business Roles (with ugp_key = 565 and 683) and other 2 not-Business Roles (with ugp_key = 685 and 3) --> I want to see ONLY the 2 records related to the Business Roles
    2) The usr_login 'C01208' has only one not-Business Roles (with ugp_key = 3) --> I want to see the record related to the not- Business Role
    Practically:
    1) When a usr_login has one or more Business Roles and other not-Business Roles , I'd like to see ONLY the records about the Business Roles (not the records with 'null','null')
    2) When a usr_login doesn't have Business Roles, I'd like to see the records about the same usr_login with 'null','null'
    This, because I need to show both usr_logins: with and without Business Roles.
    Anybody has any suggestions ? Any help will be appreciated.
    Thanks in advance for any help !!
    Alex

    Hi, Alex,
    So you want to display rows from a where either
    (1) the row has a match in b, or
    (2) no iwith the same usr_login has a match.
    Here's one way to do that:
    WITH     a     AS
         SELECT  usr.usr_login, usr.usr_key, usg.ugp_key
         FROM      usr
         ,     usg
         WHERE      usg.usr_key     = usr.usr_key
         AND     usr.usr_login     IN ('C01015','C01208')
    ,     b     AS
         SELECT  ugp.ugp_key, ugp.ugp_display_name
         FROM      ugp
         WHERE     ugp.ugp_rolename     LIKE 'B-%'
    ,     got_match_cnt     AS
         SELECT     a.usr_login, b.ugp_rolename, b.ugp_display_name
         ,     b.ugp_key
         ,     COUNT (b.ugp_key) OVER (PARTITION BY  a.usr_login)     AS match_cnt
         FROM      a
         ,     b
         WHERE     a.ugp_key     = b.ugp_key (+)
    SELECT     usr_login, ugp_rolename, ugp_display_name
    FROM     got_match_cnt
    WHERE     ugp_key          IS NOT NULL     -- Condition (1)
    OR     match_cnt     = 0              -- Condition (2)
    ;If b.ugp_rolename or b.ugp_display_name can not be NULL, then you could use that just as well as b.ugp_key for testing condition (1).
    By the way, you don't need sub-queries for a and b; you can do all the joins and all the filtering (except conditions (1) and (2)) in one query, but the sub-queries aren't hurting anything. If you find the separate sub-queries easier to understand, debug and maintain, then, by all means, keep them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How to implement SCD and outer join in OBIEE

    Hi Experts,
    1.How we can implement SCD1 and SCD2 in OBIEE.
    2. How to implement outer join..? Can we implement outer join in physical layer.?
    Regards
    Frnds

    1. Better to implement this as a part of data warehouse/ETL. If you insist there is explanation on how to work with SCD's in Administrator in some Oracle University Student Book, I think it's for Siebel Analytics version.
    2. Implement outer joins using complex joins in BMM (type option). It's possible to implement in physical layer only in obiee views (new physical table/table type - select), otherwise not, you cannot specify outer join in the physical layer using complex joins.
    Regards
    Goran
    http://108obiee.blogspot.com

  • How can i download the code of the standard widgets

    Hi,
    I need to have a look at the code of standard widgets say for example LogOn Widgets. The browser developer tool isnt handy.
    How can i achieve the same.

    Hi,
    Officially, we don’t give the out-of-the box widgets code to the customers, same as we don’t provide access to the shell which renders the content.
    There are unofficial ways to access some parts of the code, like the one suggested by Yaron.
    Having say that, we do have rich set of APIs, and we are open to enhance or to guide you for the missing capabilities. Feel free to contact me directly [email protected] for specific guidance or requirement.
    Regards,
    Inbal Sabag
    Customer Success Expert | Outbound Product Management | Cloud Experience

  • How can I get the Doc object from any other object?

    Dear colleagues,
    in FrameScript it is dead-simple to get to the document part of any object, just add .Doc to the variable.
    How can I achieve the same with ExtendScript? I amtired of passing the document object next to AFrames or Pgfs along into subroutines, because those objects already contain the information about their document. But how do I access this?
    Thanks for pointers,
    - Michael
    PS: Almost the same is true for the page an object lives on. With FrameScript we use .Page, with ExtendScript you have to move up the object tree until you reach the UnanchoredFrame.PageFramePage…
    PPS: It would be great to see some convenience properties like .Doc and .Page implemented natively.

    I'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
    If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
    function getParentDoc(testObj) {
        //Get object for current page
        try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
        catch(er) {return;}
        //Step backwards to first page in document
        var prevPage = curPage.PagePrev;
        while (prevPage.ObjectValid())
            curPage = prevPage;
            prevPage = prevPage.PagePrev;
        //Compare with first pages of open documents
        var testDoc = app.FirstOpenDoc;
        while (testDoc.ObjectValid())
            if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
            testDoc = testDoc.NextOpenDocInSession;    
        return;
    To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions.

  • How can I pass the web template name dynamically to a container

    Hi Experts ,
    I have a container web item in 7.0
    I would like to pass the name of the web template to be displayed in that web item dynamically .
    how can I achieve the same .
    How can i change the visibility settings of a container using a javascript .
    Thanks in advance for your help .
    Regards
    Nikhil

    Hi Nikhil,
    When you say that you want to display the name of the template for the container item, I think you are talking about the tray caption for the item - is that correct? You can use a text item to access the web template name, but in the caption of the container item, you cannot specify other web items.
    What you can do it to use a group item in the template and embed your container layout in it. In the group item, you have an option of specifying a caption using another web item where you can reference this text item.

  • How can i open the "Convert to Indexed Color" dialog with custom presets?

    Hi,
    I need to automatically open the "Convert to Indexed Colors" dialog in Photoshop. Before and after that i have some scripts running so its not possible to open the dialog manually. Also i want to set some custom presets (like number of colors etc.).
    Found something similar to what i want for the Color Range selection (opens the dialog with the presets you put in):
    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
    How can i achieve the same for the indexed color conversion dialog? Apart from doing a lot of guessing regarding the stringIDs.
    Is there some kind of "lookup table" for char and string IDs?
    Thank you guys in advance! This forum has been a great help many times.

    Ok never mind i got it, stupid me.
    Recorded it with Script Listener and changed the "DialogMode" parameter of the executeAction function from "DialogModes.No" to "DialogModes.All".
    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL

  • Can We determine the outer-batch no in Purchase order?

    There's a chemical company. It has a requirement. Managing batch is very important to chemical materials. When they create Purchase order, they hope that they can determine the special batch-no of materials which is from vendor for the purchasing material. Because different batches of material have different chemical character.
    How can we determin the outer-batch no when creating purchase order?

    you cannot determine external vendors batch numbers in your SAP system.
    Even you inspect samples of several baches from your vendor and maintain this as own batches in your system  you cannot determine the batch from the purchase order, there is no batch determination featere in a PO. And even there would be one, it would take your own batch number, and not the vendor batch number.
    If you use exteranl batch number assignment and your vendor batch number gets the same batch number in your system, then you can enter the batch in the batch number field manually (once it is created in your system), In any other case you have to mention the vendor batch in a text.

  • Join in Physical Layer

    hi all,
    is it possible to give right outer join in physical layer? if so how can we do that? actually Type options is not visible in physical diagram.
    thanks

    No, outer joins are created in the bmm layer.

  • Since I joined creative cloud, I have not been able to sync. Why the difference? Worked good during initial trial. Also I had installed the Mosaic app before Lightroom mobile came out and I cannot seem to get rid of it. How can I get mosaic out? I have ca

    Since I joined creative cloud, I have not been able to sync. Why the difference? Worked good during initial trial.
    Also I had installed the Mosaic app for ipad before Lightroom mobile came out and I cannot seem to get rid of it. How can I get mosaic out? I have cancelled, I have deleted, I have looked through the files for visible remnants.

    The sync count is 60 and static. The total number synced so far is 500+. None have been synced from the ipad except for corrections made there on those already synced.
    I have deleted the Mosaic app from all machines and checked the library folder and have contacted the Mosaic tech support and they have discontinued my subscription. I still get mosaic messages on initiating Lightroom and sometimes at closing.
    I have not tried to sync fewer yet, but some catalogs that I have tried are smaller numbers. Initially, it did well on good connections. Nothing works on my home connections over satellite.

Maybe you are looking for

  • Billing doc while post goods issue

    Hi, Is there any Exit to creat a billing doc immediately when we post goods issue. Please, if there any other solution. don't hesitate. Thanks.

  • Follow up IE msstree's question

    Thanks to all for your pass help! This is great, I have found most of my questions answered from pass discussions. Don, I have read of your fondless for OS9 and I agree. I have experienced several problem with IE and looking for a new browser I am fi

  • How to stop a pop up window if the session expires

    Hi I have a situation wherein i have my jsp page. in that i have a button on clicking it a pop up window will open to take a input parameter. Now what we want is that if the session is not valid than the pop up shud not open. Currrently what is happe

  • Forms Not showing the Latest Updated one

    Hi, I have a form deployed on 10g AS 9.0.4. After enhancing a form and deploying it on the AS: i cannot see the modified changes (it shows me the previous version of the form). This happens only for some forms, However if i create a sample form and d

  • How to customize standard theme to look flat

    Hi, I would like to customize Apex standard themes to flat style. Is there any way to do that? Thanks.