Joins in OBIEE

Hello

If we have a table A and B with the common name column and a table stores the name value to upper case and B table stores the values of the names in lowercase. So how we can join these two tables. In physics, we can convert the column with the name in lowercase (B.name) UPPER and join this straight path in the physical layer using foreign key join: B.SID = UPPER (B.Name). Am I wrong?

Thank you
XYZ

Yes you are right.
for example
I have the emp table and also a table name as emp8
emp8 as tiny ename.
the example query will be like this
Select e8.ename, e.empno in emp e, e8 emp8 where e.ename = upper (e8.ename)

Tags: Business Intelligence

Similar Questions

  • Controlling the path of the join in OBIEE

    I have a dimension table that is the "hub" of our physical data model.

    This dimension is joined to 4 different fact tables.

    I have a query/chart from a previous version of project (everything worked very well) referenced only 2 of these fact tables.

    Now that 2 more tables of facts were brought in the image for our next version, the query that worked great now is to join all the tables facts 4 (through the central dimension) even if

    I need still to join the tables of 2 original facts.  I'm not selecting or filtering of all 2 new fact tables or their associated dimensions (except the central dimension - who share all the facts)

    in this query.  Yet, all the facts 4 tables are called.  Not sure why obiee works this way.

    I need to OBIEE do not invoke a join with a fact table, if no facts from the fact table is used in the query.  The join is affecting counties in the output and charges are incorrect.

    Looks like you have mapped them physically.

    Go to the sources of logical sources IE 2nd logical table.

  • Join physical OBIEE 11 g condition

    Team

    How to create a physical join complex which has a substr function in OBIEE 11 g RPD.

    Here's the scenario... A custom Dimension table has monthwid (201407,201408..) and the customer number. The fact table has created date (20140712, 20140715...) and the customer number. We need to create a join of physics as

    Dimension table. Customer number = fact table. Table.monthwid number AND Customer Dimension = substr (date of facttable.created, 1, 6).

    When I tried it, get the nqserror generic 27002. Is it more to create a join in the above scenario.

    Thank you very much

    Concerning

    Bottom

    Hi there,

    I just see that the syntax is off. There "substring (... of... of...)" as follows:

    Cast ("01 - Sample App Data (ORCL)" ".." ") "" "BISAMPLE '." " ZZZZ-SRORDERS ".» (GUID' as varchar (10))

    =

    Substring (cast ("01 - Sample App Data (ORCL)" ".." ")) "" "BISAMPLE '." " ZZZZ-SCORDERS ".» ((GUID' as varchar (10)) 0-6)

  • Outer join of OBIEE 10 G

    Hi, I'm new to OBIEE 10 G.


    I have a DimA (dimension), memoirs (fact). I traced the foreign key relationship between DimA and briefs on DimA.A = FactA.A MDB, the relationship is internal and greyed out, so I can't change it to outer join.

    So in the report answers, it only shows data for the inner join of the two tables. What I want is to show all items in DimA and associated items FactA or 0 for those not related.

    I posted a similar question here before https://forums.oracle.com/thread/2596618

    But I can't always change the relationship (still dimmed) even though I opened a deposit in offline mode.

    And what I think is is an option in responses to dynamically control the join (internal or external). For example, sometimes I want to show only paired DimA and FactA, sometimes all the DimA and related FactA or 0, so that I do not change the repository MDB every time if the requirement is changed.

    What is the best practice in this case?

    Thank you.

    Try opening the SPR OFFLINE, or to open in mode online and starting then other CASES it would be gray.

    If you have trouble sending the RPD to sveerava at gm

  • Join subquery OBIEE

    Hi all

    I am able to join the 2 reports using "Filter is based on the results of the analysis another" based on e_id and m_timestamp to build the following query report

    Select a.e_id, count (distinct a.m_timestamp) of

    RAW_DATA has)

    SELECT count (*), e_id, m_timestamp of raw_data

    Group of e_id, m_timestamp

    After having count (*) > b 1).

    where a.eq_id = b.e_id and a.m_timestamp = b.m_timestamp

    A.e_id group

    But I want to eliminate the join and generate a report based on this (to improve performance)

    Select b.e_id, count (*) from

    (

    SELECT count (*), e_id, m_timestamp of raw_data

    Group of e_id, m_timestamp

    After having count (*) > b 1).

    B.e_id group

    Which gives the same result but with joins removed - can someone help how to implement this in OBIEE 11 g?

    Try something like

    Select e_id, count (distinct m_timestamp) of

    RAW_DATA

    view count (1) > 1

    E_id group

    If brand aid

    ~ http://cool-bi.com

  • Complex joins

    Hello...

    I have a piece of code, and I'm fighting to create joins in OBIEE administration tool.

    Here is a sample code-

    a,

    b,

    c

    of xx.aa one

    Join internal b on a.b = b.b xx.bb

    Join xx.cc c on a.c = DC in-house.

    left outer join

    (

    Select

    a,

    d,

    e

    of xx.m m

    join in-house xx.n m.d n = no data

    ) K on (b.a = kalonji)

    How do the left join the party with a subquery?

    Any help is appreciated.

    Thank you

    Gianni thanks for your response.

    Sorry for this confusing example. Another example below-

    SELECT

    N.PRODUCT_GROUP,

    SUM (A.PRD_CNT) AS 'PRODUCT COUNT '.

    Of

    PRD_EDW. F_PRODUCTS HAS

    JOIN INTERNAL PRD_EDW. D_PRD B ON A.PRD_UID = B.PRD_UID

    LEFT OUTER JOIN

    (

    SELECT

    A.MTH_ID,

    B.PRD_ID,

    C.PRD_GRP_NAME AS DEVICE_GROUP

    Of

    PRD_EDW. F_PRODUCT_GROUP                                                                      A

    JOIN INTERNAL PRD_EDW. D_PRD B ON A.PRD_UID = B.PRD_UID

    JOIN INTERNAL PRD_EDW. D_PRODUCT_DETAILS C ON A.PRD_GRP_UID = C.PRD_GRP_UID

    WHERE A.MTH_UID in (201406)

    GROUP 1,2,3

    ) N ON (B.PRD_ID = N.PRD_ID)

    WHERE

    (A.PRD_DAY_UID BETWEEN 20140601 AND 20140630)

    Group 1

    PRD_ID comes from D_PRD. It is a unique identifier of the product.

    If something changes in the D_PRD table, say the product type changes, it creates a new PRD_UID for a particular PRD_ID. Thus, a single PRD_ID may have multiple PRD_UID.

    'F' refers to a fact table.

    A ' refers to a dimension table.

    Please explain a little how to accomplish such scenario in OBIEE.

    Thank you

  • RE: Join complex

    Hi Experts,

    I have a few questions about the complex joins

    1 > first when import us the tables in the physical layer, we joins from FK for the tables according to our requirement so layered MDB, we create new business model then again why to do complex layer of MDB already join there are joins between the tables in the physical layer , the scenarios that we do the complex join if we do not the complex join what will happens.

    2 > if we FK join instead of complex layer MDB join what will be the result.

    Thanks in advance,

    Hello

    We have two joins in OBIEE a foreign key join and join another complex. Above all 99% of the cases we use foreign key join physical layer.we use a complex join in a phycical layer mainly in the three scenarios.

    (1) when it is extended to the join conditions.
    (2) when we join a key of a table column with a column not key in the other table.
    (3) where the operator is other than the equal to operator.

    In these 3 situations, we use a complex join in the physical layer.

    Then we're we have already joined in the physical layer then what is the need to create complex joins in right MDB layer.
    The answer to this question is each user runs a report that will generate the logical sql query our OBIEE includes only logic sql query this logical query generated sql logic-based attend the MDB layer.
    Based on this logic joins only it will create more sql query optimization. And one of the reasons for creating logical joins

    If we want to specify table conduct is possible only Suiloidi complex join layer MDB.
    and if we want to specify the type of join is possible only Suiloidi complex join layer MDB
    and if we want to specify cordinality is possible only Suiloidi complex join layer MDB

    and another is my tool is not able to identify the facts and dimensions because it has no intelligence, we need to incorporate the intelligence giving logical joins only identifies the facts and dimensions.
    We must therefore create logical joins layer MDB...

    Give me like, if you aresatisified with my post.

    Thank you

    Menama SAI

  • Confused about the complex joins in joins Manager

    Hello

    I know that when we create join in the physical layer, we must use "foreign key" this icon,.

    and when we need create joins in the MDB layer, you need to use 'new joint complex. "

    so, what is the purpose of the complex joined in the Manager of joins? I'm so confused on this subject...

    Kind regards
    Anne

    Hello
    Please see the below a

    http://obiee11gqna.blogspot.com/2011/02/interview-questions-on-joins-in-OBIEE.html

    ---> complex join is that join in join where as two tables has no way join foreign at this complex time key is used

    --> Join complex:-join complex are used in the physical layer between two tables where ever who do not key primary and forgin key relationship.

    Foregin Key:-using the forgin key we can define the join between two tables. joins between is 1:M or M:M., if we want to define: many relationships we use the bridge tables.

    Thank you

    Deva

    Published by: Devarasu on October 18, 2011 10:27

  • outer join does not give the expected results (missing documents)

    Hello
    I have problem with outer join in OBIEE 10 g.

    I'm testing it on the model of simplified database

    STAT table with some statistics of TYPEs
    stat_date, id_type, num
    ..
    ..
    26/03/2003, 20: 1
    26/03/2003, 21: 1
    26/03/2003, 23: 1
    26/03/2003, 24, 1
    26/03/2003, 25, 1
    ..
    27/03/2003, 22, 1 <-different date here
    ..
    ..

    Table TYPES
    ID_type
    ..
    ..
    20
    21
    22
    23
    24
    25
    ..
    ..


    Physical model
    STAT >-TYPES


    AM.
    F1 (only Digital STAT table column (agg. County))
    D1 (STAT_DATE of the STAT table column only)
    D2 (source TYPES)

    D1 - inner join - < F1
    D2 - left outer join - < F1


    I would like to create simple report filtered by date with number of each type.
    I want to get this result
    ID_type County
    ..     ..
    ..     ..
    20 1
    21 1
    22 null
    23 1
    24 1
    25 1
    ..     ..
    ..     ..


    But I get this
    ID_type County
    ..     ..
    ..     ..
    20 1
    21 1
    23 1
    24 1
    25 1
    ..     ..
    ..     ..

    ID_type 22 is missing


    !!!

    I NORMALLY GET RESULT ONLY IF I DELETE RECORD ' 27/03/2003 22' OF MY FACT TABLE.

    !!!


    I have the filter on the date column D1
    STAT_DATE = 26/03/2003 or STAT_DATE is null


    BI Server running this SQL query


    Select distinct D1.c1 as c1,
    D1. C2 C2
    Of
    (select count (T17840. NUM) in c1.
    T17867.ID_TYPE C2
    Of
    Left outer join of TYPES T17867
    STAT T17840 on T17840.ID_TYPE = T17867.ID_TYPE
    where (T17840. STAT_DATE in (TO_DATE ('2003-03-26', 'YYYY-MM-DD')) or T17840. STAT_DATE is null)
    T17867.ID_TYPE group
    ) D1


    Can you give me some advice?

    Thank you

    Hi cardel,

    I think that you can achieve your goal if you build a dimension of the array STAT form, you can create a table Alias in the physical layer and then to join the table of facts (external to the left). In this way, I think that you can solve your problem.

    Let me know.

    Kind regards
    Gianluca

  • Loop of the RPD

    How to fix a loop problem in SPR
    Could you explain for example.

    Thank you
    REDA

    Reference http://www.rittmanmead.com/2008/08/resolving-fan-traps-and-circular-joins-using-obiee/

    http://www.Oracle.com/technetwork/middleware/BI-Enterprise-Edition/Overview/index.html

    Hope its helpful

  • Is associated with the physical layer

    Hello

    I have a small doubt:
    Is it possible to give the outer joins in the physical layer+ of the RPD.i.e, left join, right outer join, and full outer join.
    If so can you please give me links associated with that.




    Thank you

    Cognet

    Hi Cognet,
    See can not do in the physical layer but in MDB layer its possible

    http://varanasisaichand.blogspot.com/2010/01/how-to-make-outer-joins-in-OBIEE.html

    Thank you
    Saichand.v

  • Join OBIEE 11g

    Hello

    I need runs more to joining OBIEE:

    SELECT a.percent, b.dollars, b.year

    FROM table1 a

    INNER JOIN table2 b

    ON a.id = b.id and a.year = b.year

    where a.id = "0001"

    -J' added two Sources of Table logical and connected: a.id = b.id in the physical layer. This join works well.

    - But I also need an another join: a.year = b.year, that's the problem, how to do this, I use a group-featured or complex join? Or any other ideas?

    I solved the problem. I just added two keys in the physical expression of the diagram Builder to tuition assistance: for example: a.id = b.id and a.year = b.year.

    Seems that gives me the right numbers.

    Thanks for help

  • Join OBIEE

    Hello
    I'm new to obiee and just trying to create a report by using a simple join. The join works fine if I use a MONTHNAME function, but if I try to use the other functions (month, quarter. year quarter, etc.) I get the error "Driver Odbc returned an error (SQLExecDirectW)." with OPR4ONWY:U9IM8TAC:OI2DL65P codes

    I don't know its just something simple escapes me, but if someone could point me in the right direction, it would be apreciated

    Just in case you are using the monthname function in the physical layer and trying to reach then it won't work.

    If you need to participate the same way then go to a join condition for the sake of the name, in the MDB layer create a logic using the function MonthName column and then create join foreign Kay. This join will override the physical layer of the join.

    If this isn't the case, then let me know ;)

    If it helps to appreciate if you score as correct

    Published by: Srini VIEREN on 10 January 2013 09:22

  • Join report external style - OBIEE 10 g

    Hi all

    I have a requirement to generate a report for products and sales. I have two dimensions and different elements of fact data.
    Some products may not be sold in a month, but still I want to display in the report with a value of 0. I tried this by creating an outer join left in SPR, since we use another dimension in the de facto calculation (computed column) so also comes to the Group of left outer join and this mess with the results.

    If you are looking for the best approach to give the results through answers. Here's the data and expected outcomes

    Data
    Product | Month | Sale | The margin of
    --------------------------------------------
    Refrigerator | Can | 100. 20%
    Coolers | Can | 50. 4%
    Laptop computer | Jun | 300. 15%

    Now am filtering of the report for the month of may, my results should be similar to

    Product | Sale | The margin of
    --------------------------------------------
    Refrigerator | 100. 20%
    Coolers | 50. 4%
    Laptop computer | 0 | 0%

    Can anyone provide a solution for this?

    Thank you
    Ugser

    A possible solution is based on the fact that OBIEE combines (= reach external) different measures of two fact tables by their common dimensions. What you have to do is:
    Physical layer:
    -create a new dummy facts table in the physical layer (for example by using a view such as Select 1 of the double ;)
    -join all the tables required to the fact dummiy table with a foreign key dimension complex. Make sure that the value is always true, for example 1 = 1.
    MDB:
    -create a new table makes sense given the dummy and join all tables of logical dimension using complex joins. Set levels on the tab content of LTS tie up your other fact.
    Presentation layer:
    -expose the dummy column
    Answers:
    -Slide the dummy in your report. You might want to hide because for a user normal is confusing and meaningless as it will always show 1.
    -Filtering should work correctly now.

    The dummy column will result in OBIEE create a Cartesian join, i.e. all the attributes of the dimension combinations used in the report will be created. The result of the second (in your case sales) will be added. In your example, it will create a record for each month for each product. Sales and margin will only added to combinations of these months and product when there is data in sale.
    I hope this helps.

    See you soon,.
    Peter

  • more than one condition of joining 2 tables of obiee

    Hello

    I use obiee 11g.

    There are 2 tables tableA and tableB where the join condition is (tableA.col1 = tableB.col1) or (tableA.col1 is null and tableB.col1 is null)
    where can I do this type of join.
    I tried to put in the physical layer-> f (x), but in error as only columns CIHI a d opertaors are allowed.

    Thank you

    Hello

    Maybe you should go for case function.
    As it indicates that your condition.

    Kind regards
    Lacouture.

Maybe you are looking for