Joins in OBIEE

Hi,
If we have a table A and B having Name column in common and A table stores Name value in uppercase and B table stores name values in lower case. Then how can we join these two tables. In physical we can convert the column having name in lowercase UPPER(B.name) and join it this way right in physical layer using foreign key join: A.Name=UPPER(B.Name). Am I right?
Thanks,
XYZ

yes you are right.
for example
i have emp table and also one more table with name as emp8
emp8 as lower case ename.
the sample query will be like this
select e8.ename,e.empno from emp e,emp8 e8 where e.ename=upper(e8.ename)

Similar Messages

  • Equal Join and Outer Join in OBIEE

    Hello expert,
    I think the default join in OBIEE is Outer Join. So no matter what join conditions that I specify on the physical layer, the result that I get in the presentation layer is still outer join.
    How to specify the equal join or inner join in Business and Logical layer?

    Hello,
    Thank you for your reply. However it does not work. I got the following message:
    [nQSError: 32005] The object "Fact - Fruit" bc if type 'LOGICAL TABLE SOURCE': is missing a foreign key or a complex join in the join graph.
    The situation that I have is:
    Fact table: "Fact - Fruit"
    List of value table (look up table): "dim_list_of_values"
    I am only interested in the type in the "dim_list_of_values" table where equals to "Apple". So I only want to join the "Fact - Fruit" and "dim_list_of_values" with those records with "Apple" type.
    It sounds to me that I am unable to define a freign key.

  • Regarding joins in  OBIEE tutorial in Oracle website " COSTS " no key

    OBIEE training material in oracle website ..while . Build Sample Oracle BI Enterprise Edition Reports and Dashboards
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t5
    in the documenatation
    while " *** Load a Prebuilt Repository ***** "
    A prebuilt repository is provided to expedite your completion of the remaining exercises in this OBE. The provided repository is similar to the repository you built in the first part of this OBE, but with the following relevant differences:
    Physical joins are built for the the COSTS physical table in the Physical layer.
    *********** Question **************
    --> HOW do i join Costs? whether to Sales Fact table Or any of Dimension tables ( CHANNELS , CUSTOMERS , TIMES , PRODUCTS, PROMOTIONS )
    is Costs is a dimension ?

    You don't need to do something. The repository SH_PartTwo.rpd have already the join. The tutorial gives only the differences with the SH_PartOne.rpd.
    The SH_PartTwo.rpd is in the SH.zip file.
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/files/SH.zip
    Cheers
    NIco

  • Need help in joins in OBIEE 10G

    Hi All,
    I have 2 tables like following.
    Table 1: Team
    Id| Team Name| Resource id
    1 | xxx | 1
    2 | yyy | 1
    3 | zzz | 1
    4 | xxx | 2
    Table 2: Resource Rate
    RSRC ID| Resource Name| Rate | Month | year
    1 | John | 10 | Jan | 2012
    2 | Max | 5 | Jan | 2012
    I have joined these 2 tables with Resource ID. I have a prompt with Team Name and Resource Name and I have a OBIEE chart report (Month,Year Vs Rate), in which if do not select team name in prompt or select only one team name then the results are fine but when i select 2 team names in the prompt for example 'xxx','yyy' the results gets doubled. If I select 3 team names, the result will be rate*3. But I want the result to be same value even after I select more than one team name.
    How to archive this??? Kindly help
    Edited by: GJ on Sep 10, 2012 10:39 PM
    Edited by: GJ on Sep 10, 2012 11:53 PM

    Hi Veeravalli,
    No I cannot have team name after resource name, because the purpose is to see based on team and then on resource. Moreover their is nothing wrong with queries generated, it is working as it is expected, Since the resource is mapped to 2 teams, I am getting duplicate values.
    I am just trying to find if there is a way to return always unique values.

  • Fact to Fact join in Obiee

    Hi
    I am new in OBIEE, I have an scenario where in we need to join two fact tables and the condition is F1.date is between F2.valid from date & F2.valid To date
    I have tried using confirm dimension. Is it possible to map such scenario in OBIEE 11g
    Thanks
    Sameer

    Hi Venkat,
    I am coming from the basics of a star schema here, so hope it helps
    What is a fact?
    A fact is something that has all measures which can be aggregated (Units, Dollars, # of Orders) etc with keys to different dimensions.
    What is a dimension?
    It is the context with which we understand/record/retrieve the measures in the fact. We understand "# of Orders" for a product/By a customer etc.
    So joining a dimension and a fact helps to answer the Who/What/When kind of business questions. Ex : Who bought these products? What was the product type? When these products were sold kind of...
    Now just imagine tying up fact to another fact. With this kind of model, you can never answer any business question.
    I have never tried joining a fact with another fact in OBI (But do not think it will allow it though :) )
    Hope I am clear.
    Thank you,
    Dhar

  • How to resolve Self Joins in OBIEE

    Hi All
    Could any one help how to resolve the Self Join relations in OBIEE (ex. "SCOTT.EMP" table has "EMPNO" column which is referenced by "MGR" column in the same table.
    Request:
    Need to drill down from the Top manager to his employees and so on
    Another example can be applied for reporting the Organisation Chart

    This is a great article that shows ho to do the Alias:
    Adding an Alias table within the BI physical layer using Oracle BI Administration Tool
    http://www.mandsconsulting.com/adding-an-alias-table-within-oracle-bi-administration-tool
    Thanks
    Subra

  • 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

  • Apply filter before Left Outer joins in OBIEE.

    Hi Experts,
    I have an user requirement where a filter need to be applied before the Left outer join applied on the OBIEE generated query.
    But obiee normally applies the filters on the resulted data after the Left outer join applied which eliminates some required data.
    Is there any way to achieve this at the RPD level.
    Thanks
    Swami

    Swam,
    your syntax for sql is not correct.
    you are doing outer join and filter I am not sure what you are trying to achieve here
    assume T1 is fact table and T2 is time dimension
    T1 left outer T2 means you are trying to pull all the records from fact irrespective of the date filter!!
    you will see all the records.
    Please manually write the Sql and we have lot of ways  to force that in to OBIEE.
    Thanks
    NK

  • Doubt regarding joins in obiee

    hi gems...
    i have a doubt regarding BI analytics join.
    When i have imported all the tables from my schema in the repository, then it got imported with all the joins defined in the database.
    then i made several business models and create some reports.
    there i got some errors, which are mainly due to self join in the tables and more than one joins between two tables.
    my question is...are these two types of joins not supported in obiee???
    and if i want more than one join condition between two tables, then what can i do???
    thanks in advance...

    Hi User,
    OBIEE doesnot support self join. To avoid such circular joins ,make use of alias tables in the physical layer.The following is a list of the main reasons to create an alias table:
    To reuse an existing table more than once in your physical layer (without having to import it several times.
    To set up multiple alias tables, each with different keys, names, or joins.
    To help you design sophisticated star or snowflake structures in the business model layer. Alias tables are critical in the process of converting ER Schemas to Dimensional Schemas
    Rgds,
    Dpka

  • Join issue OBIEE (BMM Layer)

    Hi All -
    1. I have following tables:
    D1 - Dimension Table
    D2 - Dimension Table
    D3 - Dimension Table
    F1 - Fact Table
    We have join between - D1 - F1, D2, F1 & D3 - F1
    2. We have some more tables :
    D4 - dimension Table
    F2 - Fact Table
    We have join between - D4 - F2
    3. We have some more tables :
    D5 - Dimension Table
    F3 - Fact Table
    We have join between - D5 - F3
    Now the scenario is we need to enable joins between all these tables in the logical layer. i created dimensional hierarchies and assigned at the total level for the fact tables. but it is not working.
    can anybody please lookinto this issue?
    Thanks

    I noticed that if you create the FK in the physical layer BEFORE moving the columns into the Business Model layer it will keep them when you bring them over, but if you create the columns in the BM layer then made the physical joins you have to go back and join in the BM layer.
    Unfortunately if you'll lose anything in the Presentation or Business Model layer if you remove it from the BM and want to re-join.

  • Left Outer Join In OBIEE

    Hi,
    I have two Oracle tables in the physical layer: a fact table and a dimension table.
    The fact table (FACT_TBL) like this:
    CURR_MTH | PREV_MTH | CURR_GRADE | PREV_GRADE | CITY | VALUE
    Jun | May | B | A | X | 5
    Jun | May | A | A | Y | 10
    Jun | May | C | C | X | 15
    Jun | May | D | C | Y | 20
    And the dimension table (GRADE_TBL) like this:
    GRADE | GRADE_NAME
    A | A
    B | B
    C | C
    D | D
    I joined those two tables above in the physical layer using GRADE field. Then, I created a business model using those two tables. I want to create a 4x4 matrix report with PREV_GRADE as the first column and the CURR_GRADE accross to the right like this:
    CURR_MONTH PROMPT = Jun
    PREV_MONTH PROMPT = May
    CITY PROMPT = X
    PREV_GRADE | A | B | C | D |
    A | (null) | 5 | (null) | (null) |
    B | (null) | (null) | (null) | (null) |
    C | (null) | (null) | 15 | (null) |
    D | (null) | (null) | (null) | (null)|
    The problem is that I couldn't show all grade (A to D) in the PREV_GRADE column in that table. Every time I filter the CITY in the prompt to X, I always get only A and C. The B and D rows are suppressed. How do I achieve the left outer join that I wanted above? Thanks a lot for the help.

    hi,
    this can be done in BMM layer.
    select the required BMM model. Right click and select "Buisness Model Diagram" and "whole diagram" .
    now double click on the joining link and specify the type of join here. (assuming you have used "New Complex join" to join these tables).

  • Physical Joins in OBIEE 11G

    Hi All,
    I just started 11g and am finding it very hard to understand why the physical join is created from Fact to Dimension and how does this qualify as 1:N.
    Can anyone explain if I am missing something.
    Thanks in advance.

    Hi,
    A foreign key repository join is used only to define a Primary Key-Foreign Key Relationships in the Physical Layer.
    It consist of a column or a set of columns and refers to the primary key column in another table.
    When you create it in the physical diagram, you have to point first the dimension and then the fact table.
    When you import keys in a physical schema, the primary key-foreign key joins are automatically defined.
    If you want to define other relationship, you have to use a complex join.
    And,
    In the business model, OBI recommends using complex logical joins instead of foreign key logical joins.
    When Complex joins are used in the business layer then they are really acting as placeholders. They allow the OBI Server to decide on which are the best joins define in the Physical Layer to satisfy the request.
    In a Dimension, you may have multiple Logical Table sources that all join to one fact table. The OBI Server will then decide the best joins to use to meet the requirements.
    Regards,
    MuRam

  • Reg joinis in OBIEE

    Hi
    I have two dim tables
    Dim A and DIm B connected to Fact table joins are there in BMM layer and physical
    when i create the repor in query from columns of the both dims the joins are not formed in session query...result it is doing a cartesian product and reportin is runninig for longer time
    Where could be the issue?
    Thanks!
    Edited by: user511637 on Dec 15, 2009 4:28 AM

    Hi user511637,
    I got a follow up for the first question:
    -- Are all three tables (Dim A, Dim B and Fact) in the same physical database?
    YesSo all the tables are on the same physical (Oracle?) database. How are they setup in your RPD? Are they also setup in the same physical database object in the RPD? If not, that will cause them to execute separately.
    Have you tried to drop all the joins and re-create them like you read in the other post?
    If you have all of these setup appropriately and you're still getting join issues, here's what I recommend.
    1) Pick a schema to be the master schema
    2) Create synonyms for all tables that are not in the same schema and make sure that schema user has select on the tables. Since all your tables are on the same DB, this can be done.
    3) Import the synonym objects into a single RPD database/schema.
    4) Setup the joins the way they should be
    5) Retest
    -Joe

  • OBIEE error: Getting error in creating cross database joins

    Hi,
    We are trying to create a cross database join in OBIEE.
    CHild table is on SQL server and we are using ODBC 3.5 call interface to connect.
    Parent table is in Oracle
    11.2.0.3.0
    Each table can be queried separately. Main task required was to fetch records from Oracle based on records returned by SQl server (Query based on other saved request).
    The count of inner query got increased to 30,000 due to which we got too many records in IN predicate error.
    Now while creating cross database join between Oracle and SQL server we are getting following error:
    [nQSError: 10058] A general error has occured. ODBC state: 37 000
    code: 102 message: [microsoft][ODBC SQL Server driver][SQL Server] Incorredt Syntax near 'Session'
    [nQSError: 16015] SQL statement execution failed.

    Hi,
    Could you give a bit more of context for this case? The table in SQL server; Is it a dimension and the one in Oracle DB is a fact? I am guessing, you have set up the driving table here. Have you given a try taking it off, and let BI Server do the filter in memory?
    -Dhar

  • Could not able to join physical tables in obiee using a dataconversion func

    Hi,
    i am trying to join physical tables wc_perf_ratings_d and w_wrkfc_evt_month_f with condition as
    "Oracle Data Warehouse"."Catalog"."dbo"."Dim_WC_PERF_RATINGS_D"."RATING_CD" = to_char(round( "Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_WRKFC_EVT_MONTH_F"."ORIG_PERF_RATING",2)). But i am getting the below syntax error while applying this.
    [nQSError:27002] Near <(>: Syntax error [nQSError:26012]
    i used the same condition on database and i got results.
    select rating_cd,
    to_char(round(orig_perf_rating,2)) as orig_perf_rating,
    headcount,
    fte,
    salary_annl,
    total_service_days
    from wc_perf_ratings_d, w_wrkfc_evt_month_f
    where wc_perf_ratings_d. rating_cd= to_char(round(w_wrkfc_evt_month_f.orig_perf_rating,2));
    Here i am trying to convert the format of ORIG_PERF_RATING field and trying to join with RATING_CD in physical layer.
    so my question is, is it possible to join in obiee using such conditions? i do not want to convert the field format in ETL and i wanted to do that at obiee level. Could anybody please suggest how to do it?

    Hi,
    Thanks for the link. i was trying another method in joining the two fields (rating_cd, orig_perf_rating) at database level. As i said both these fields are of varchar datatype. Earlier i tried to convert orig_perf_rating field from number to string. But i want to convert string data in (rating_cd) to number. so i have values in it like (1,2,3,4,bep, ep, vp, nr). Actually i have a requirement to create a database view for the dimension table (wc_perf_ratings_d) having rating_cd field with new datatype (number) instead of string and then join this field with orig_perf_rating in fact table which already has numbers. Along with the number rating fields, there are four particular string fields in rating_cd (bep, ep, vp, nr) as i mentioned. so while converting, i also have to convert these specific string fields in to partcular numbers. (bep=1, ep=5, nr=0, vp=3). Now, all this requirement is at database level as i am creating a db view. so my question is how to apply the to_number conversion function for converting the rating_cd field values (bep, ep, vp, nr) from string to specific mentioned numbers. Could you please help?
    for eg: create or replace view as select to_number(rating_cd....................
    Thank you.

Maybe you are looking for

  • HDMI cable hook up to laptop

    Does it matter what thickness or type of HDMI cable I use to connect my Mac Pro laptop to a TV Monitor?  I'm using one that is thicker than what I usually use and when I hooked it up (I have a Belkin HDMI adapter), my computer would no longer go into

  • Questionfolder at startup, not able to repair disk

    I got the questionfolder when I turned on my Macbook Air after an update. When I start it I can't find any disk at all (and yes, I've tried to install Mac OS X over again trough another Mac (from a MacBook Pro because I couldn't find any Mac OS X on

  • App World Icon Missing

    I've downloaded the BB AppWorld (Version 4.0.0.65) but the icon is not showing up anywhere- neither in Applications (Show All) nor in Downloads. It is showing in the Application Management (Options) but I'm not able to use it from there. Please help,

  • No reports are visible in ConfigMgr 2012 R2 console but in visible in SSRS report manager

    I'm installing ConfigMgr 2012 R2 with SQL server R2 SP2 in my lab environment. Everuthing went fine until i stumped upon a problem where the reports are not visible in Admin console but are visible in IE I've gone through all the pre requisites and e

  • Error in Mathscript exercise (3.2) in "Introduction to LabView in 6 hours" tutorial

    Hello, I am working through the 6 hours introductory manual and I have noticed a few minor errors here and there. Also, as I am using version 8.6, some of things are slightly different. However, I am stumped with exercise 3.2 regarding Mathscript. I