Resolve self-reference table by alias tables in detail

Hello Gurus,
        can you tell me how to resolve self-reference table by alias tables in detail?
Many thanks.

Hello, for the following step 3, I don't understand, will you please give me some explanation for step 3?
Save your Staff universe, and test the results in Web Intelligence Rich Client as follows:
1. Run a query using Manager and Employee. Add a count on both columns.
2. Add a query with only the Manager object. Add a count. Is this the correct value?
3. Open your Staff universe in Universe Designer and edit the Manager object. To ensure
that the data is restricted to only manager data, use the Tables button. Select the
EMPLOYEE table, to force the object to use the join between the table and restrict the
data.
4. Test the result, creating a new query with only the Manager object. It returns the correct
number of managers.
5. Edit the query and add Employee. Run and display the count. There are 26 rows. Why?
The join restricts the data to look only for employees that have managers. However, there
is a manager that does not have a manager, and is now excluded.
6. Open your Staff universe in Universe Designer and add an outer join on the MANAGER
table side.
7. Save the changes and test the results in Web Intelligence Rich Client.

Similar Messages

  • Duplicate table and Alias Table

    Hi,
    What is the Differnce between duplicate table and Alias table?which Situation we use these table ?
    Plz tell me .
    Thanks

    Hi,
    If u duplicate the table the join conditions will carry with respective tables , same name appending (Table_Name#1)
    If you duplicate a table in metadata, then that new table (with its new name) must map to a table in the physical database that has new name. If it doesn't exist, the SQL issued will generate an error.
    An alias is a reference to a table that already exists, not a separate database object.
    In case of Alias you need to specify joins conditions explicitly, we can use same table with different constrains to the same dim/fact table
    Alias used, if you need to replicate a physical table and not create multiple tables with the same data or schema
    Thanks,
    Balaa...

  • Duplicate table  and  Alias table in the physical layer

    Hi,
    I want a clear information regarding the duplicate tables in the physical layer of the rpd.
    I mean what is the purpose of the duplicate tables in the physical layer.........
    thanks,
    chinna.

    what do you mean by duplicate of physical table? is it Alias table?
    if then,
    -> aliases are created to break the circular joins (which are not supported by obiee)
    -> and, as per apps standards no operation can be done on base tables which are imported directly to physical layer. Only aliases are joined and will be used in BMM layer
    -> useful to re-use the table more than one time , best example: W_DAY_D in apps rpd
    Edited by: Kishore Guggilla on Sep 23, 2010 10:41 PM

  • Confuse about Alias table

    Hi,
    In the samplesale RPD, I saw a lot of alias tables and I check the mapping in physical layer, there is no mapping between source table of alias table and F, just have mapping between alias table and F, so what I want to know is what's the purpose of this kind of table? why alias it, why not use source table?
    Regards,
    anne

    Hi Anne,
    There will not be any physical join between the source dim and its alias.If you double click on an alias table in physical layer, you can see the source table from which this alias is created.The main purpose of an alias table is to avoid circular join.
    For Example: Assume you have a fact table with various date foreign keys like registration_date_fkey,resignation_date_fkey etc. In this case you ll have to join a date dimension's primary to these two foreign keys in the fact.You cannot use the same date dimension twice to achieve this, in this scenario create aliases for date dim ,name them as w_day_d_registration and w_day_d_resignation and join them to the respective foreign keys.
    Rgds,
    Dpka

  • Alias Tables

    Hi
    I am trying to clear Alias Tables from Planning Administration->Alias Tables->selecting Alias table->clear values
    but its not clearing Aliase value
    how ca i clear the Alias names
    Thanks,

    Are you getting any error message? have you checked the logs?
    Or can you delete the table and create it again?
    Cheers..!!

  • Fact table have tow column reference the same dim table

    In my analytic domain, my fact table have tow column reference the same dim table, but in physical diagram, between two table ,can only have one join, so i create a copy of the dim table, then finish the join in physical. This method can resolve this question, but not so good, Anyone have perfect solution?

    user4497169 wrote:
    Thanks,
    yours method is very very good, I don't know this method before. Where do you get this imfomation?The sample sales RPD has (good) modelling references you can refer to, otherwise think about how you'd write the SQL Statement yourself, you'd need to use an alias to access the same table on seperate joins.

  • About alias tables

    What is the use of alias table in physical layer what is the use of it
    if i am not using alias tables so what is the impact???
    i heard that alias table is use full for avoiding circular joins and self joins
    can you make me little bit clear on it
    Thanks
    sreedhar

    I dont know whether it will improve performance but aliases are basically used when you want to do self join .One good example is to calculate second maximum salary .In that case you will make aliases of one table twice.In obiee alaises are basically used when you want to join same table with same fact twice .For example one fact can join to time dimesnion twice with diffrent join condition .
    In that case you need to create alias of original table .If you join the same table with fact twice then OBIEE will throw an error that circular joins are not allowed,This is an example of circular join.
    Regards,
    Sandeep

  • Physical Table (Dynamic Name) x Physical Table x Alias

    Hello,
    We are customizing the standard OBI Applications .rpd. but this question is in reference to OBIEE, hence the post here.
    I have no problems with Physical Tables and Alias in the Physical layer.
    It just happens that the standard OBI Applications .rdp has some other 'physical tables' - the one for: Dim_W_PARTY_ORG_D_Customer that in its properties uses a Dynamic Name pointing to a variable that contains W_PARTY_ORG_D.
    There are other similar cases in the vanilla .rpd
    I fail to understand why sometimes (most of the time) the vanilla .rpd uses Alias and in these few cases use this strange Physical table. Pls. anyone would care to comment ?
    As we expand W_PARTY_ORG_D with new columns... these new columns are NOT automatically part of the Dim_W_PARTY_ORG_D_Customer as it happens in an Alias definition.
    Txs. for any comments.
    Antonio

    Hi Antonio,
    From the 11g documentation (http://docs.oracle.com/cd/E14571_01/bi.1111/e10540/physicallayer.htm#i1005872) ;
    Select this option to use a session variable to specify the physical table name, similar to catalog and schema objects. This option is available for non-multidimensional data source tables when you select a table type of Physical Table.
    You might want to choose this option if you have a multi-tenancy implementation and you want to define a separate physical table name for each customer. Another example would be to select between primary and shadow tables that are valid at different times in your ETL cycle. In both cases, you can assign session variables to dynamically select the appropriate table.
    Hope this helps.
    Daan Bakboord
    http://obibb.wordpress.com

  • Regarding Alias Table import

    I have a Time dimension in which 2009FY->2009q1->200901->20090101
    20090102
    for each month in this way
    and child is weekly for 53 weeks with day as granularity, so its a shared hierarchy, the problem is i am trying to load an alias table its getting loaded for stored members but having a problem with shared hierarchy, plz could any resolve the problem
    thanks in advance..
    Ram

    i surmise, you are using planning application... So only alias name is not present for shared hirarchy...
    Regards
    JSA

  • Deleting Alias Table

    How do we get rid of an alias table once we created it in EPMA - dimension library (version 11.1.2.x).
    For example I have 4 alias. English, French, German, Spanish
    We aren't going to use Spanish in the end so want to get rid of it from Planning. There is no alias associated with Spanish either.
    The error message says: The following error occurred: Member "Spanish" is referenced by another Member.
    It keeps telling me that the member is reference somewhere but we have no alias names in the alias table we want to remove. Is there some back end process we need to do?

    Try to execute in your planning scheme
    select mbr.object_name member_name,aln.object_name spanish_name,dim.object_name dim_name
    from hsp_object alt,hsp_object ald,hsp_object mbr,hsp_object aln,hsp_alias alr,hsp_object dim
    where upper(alt.object_name)='SPANISH'
    and alt.parent_id= ald.object_id
    and ald.object_name='Aliases'
    and alr.member_id =mbr.object_id
    and alr.aliastbl_id=alt.object_id
    and alr.alias_id=aln.object_id
    and mbr.object_type=dim.object_id

  • Alias tabls does really improves the performence

    hi all gurus
    since long time i have one question in my mind about alias table
    if we use alias table in physical layer,does it really improves the performance ??
    so for i have used it for to avoid self joins,
    can u give me at least one scenario regarding alias table?
    Apart form that all are telling that one table is use full for more than one time that time we have to go for alias table
    is it true?
    let us take small example as sh schema ,in that we have two facts,cost and sales and dimension like product,countries,time
    here my question is to maintain start schema in physical layer we have to go for alias concept.
    if we give direct joins to the fact with dimensions,will it decrease the performance ?
    i don't under stand ,can any one clear about it?
    Thanks a lot in advance

    The Answers is No for the example you described about SH Schema.
    Aliasing tables, IMHO, doesn't contribute to performance gain/lag.
    Aliasing concept is used to implement some complicated scenarios, like the one you described i.e. self joins.
    Other examples would be a 1. circular join, 2. prevent clutter in physical layer, 3. set specific cache properties etc....are few i remember on top of my head.
    In a nutshell, think of it as a modelling technique to implement complexities.
    mark answers promptly.
    -bifacts
    http://www.obinotes.com
    J

  • Alias Table in SQL

    Hello ..
    i want to join an alias Table in an SQL statment something like
    Invoices_Table
    -Inv_ID
    -Amount
    -Delevery_Country_id
    -Bill_Country_id
    Country_Table
    -Country_id
    -Country_name
    I want to join Country_ID once for deleivery Country and then for Bill_Country. Which are not necessarly the same ..
    How can i express it in SQL ..?
    Thanx

    Try
    API> CREATE TABLE Invoices_Table
      2  (Inv_ID VARCHAR2(100),
      3  Amount VARCHAR2(100),
      4  Delevery_Country_id VARCHAR2(100),
      5  Bill_Country_id VARCHAR2(100));
    Tabla creada.
    Transcurrido: 00:00:00.34
    API>
    API> CREATE TABLE Country_Table(
      2  Country_id  VARCHAR2(100),
      3  Country_name VARCHAR2(100));
    Tabla creada.
    Transcurrido: 00:00:00.04
    API>
    API> INSERT INTO Invoices_Table VALUES('A','A','1','2');
    1 fila creada.
    Transcurrido: 00:00:00.04
    API> INSERT INTO Country_Table VALUES('1','Country1');
    1 fila creada.
    Transcurrido: 00:00:00.03
    API> INSERT INTO Country_Table VALUES('2','Country2');
    1 fila creada.
    Transcurrido: 00:00:00.03
    API> COMMIT;
    Validación terminada.
    Transcurrido: 00:00:00.03
    API> SELECT I.Inv_ID,
      2    C1.Country_name AS NAME1,
      3    C2.Country_name AS NAME1
      4  FROM Invoices_Table I, Country_Table C1, Country_Table C2
      5  WHERE I.Delevery_Country_id = C1.Country_id (+)
      6    AND I.Bill_Country_id = C2.Country_id (+);
    INV_ID
    NAME1
    NAME1
    A
    Country1
    Country2
    Transcurrido: 00:00:00.07

  • How to use non-default Alias Table in Analyzer report

    Hi,I defined many alias tables in Essbase. I would like to use a different alias table other than the "default" in Analyzer 6.5 report. In the on-line help, it said I can modify in "database connection properties" when first defining a new report to use a specific alias table. It tells me to do the following: Click the "New" toolbar button. Select a Display Type or Layout, and click OK. Right-click a database connection name in the "Select Database Connections" dialog box, and select Modify from the right-click menu.So I did this, but as I did the last-right click, there is no "Modify" option available. Only has "Add New..", "Database Connection Properties.." However, if I defined a new personal database connection using the login user, I can select to use other alias table. But this will go to personal database connection properties.Is it possible to specifically tell Analyzer to use other alias the global level in database connection? What I use to do is to have certain reports to use the default alias, and another to use another alias table. These reports should be able to share across all users.Sam

    In deed it is fix in the GA.Another way to set the alias table is to do it in the Admin client. If you add a connexion to a user there is a new 6.5 button "set alias" that allow you to set the default alias table for this specific user. But, it does not exit on a user group level.

  • Power Query; How do I reference a Power Pivot table from a Power Query query

    Hi,
    It's pretty awesome how you can define Extract Transform and Load processes within Power Query without having to type in a single line of code. However how do I reference a Power Pivot table from a Power Query query to avoid me repeatedly accessing
    the same data source (CSV) file with a view to increasing performance?
    We are aware of the reference sub menu option with Power Query. However the new query created by the "reference" option still seems to refresh data from the data source (CSV) rather than just referencing the base query. Is this understanding
    correct? There does seem to be a lot of hard disk activity when re-running the new query which is based on a base query rather than a data source.  So we were hoping the new query would just need to reference the base query in memory rather than rescanning
    the hard disk. Is there any way to ensure that the reference query just rescans the base query in memory?
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi Kieran,
    This sounds like something to be suggested for a future release. At the present time, Power Query will always re-run the entire Power Query query when refreshed. The Reference feature is analogous to a SQL view whereby the underlying query is always re-executed
    when it's queried, or in this case refreshed. Even something like using the Power Query cache to minimise the amount of data re-read from the disk would be helpful for performance but the cache is only used for the preview data and stored locally.
    It would be a good idea to suggest this feature to the Power BI team via the feedback smiley face.
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn
    Hi Michael, 
    Glad to hear from you about this.  And thanks to Kieran for bringing a very good valid point to debate. Will be glad to see this in future release. 
    - please mark correct answers

  • SAP Query Alias Table in Info-set not working

    Hi Guys,
    I'm having a bit of trouble with a query I'm writing in SQ01.
    I am trying to create a standard margin report between two different costing variants that we use.
    n order to do so I have had to employ the use of alias tables.
    I have named the alias tables KEKO_2 and KEPH_2 accordingly and joined them in the info set with the same joins as the original tables (Left Outer to MARC on MATNR and WERKS)
    However, when I have come to test the query in SQ01 I get a runtime error which states the following:
    The following syntax error was found in the program
      AQA0MASTER_DATA=STANDARDMARGIN :
    "Field "KEPH_2-KST001" is unknown. It is neither in one of the specified
    tables nor defined by a "DATA" statement . . . . . . . . . ."
    But it is in a specified table! My alias table.
    How can I make this query work?
    Any help would be appreciated.
    Thanks in advance.

    Hi,
    This is SAP business one reporting and printing forum. Please find correct forum and repost your question to get quick assistance.
    Please close this thread by marking helpful answer.
    Thanks & Regards,
    Nagarajan

Maybe you are looking for

  • Message no. MSITEM024 - List contains no data

    Hi everybody, I am facing a strange issue in FBL1N. Just today, when FBL1N is run the above message comes up. The Trade Creditors (Reconciliation) a/c is lint item managed. There are data. At the bottom it is displayed as xxxxx items selected, but no

  • Checking Previously Selected Checkboxes using apex_item.checkbox API

    Hello everyone, Before I get into the exact nature of my 'problem at hand', I feel it would be a good idea to give you readers a little background info regarding what I'm working on. I'm designing a page in my application (a Targeted Email Communicat

  • Chrome Browser is missing, but iTunes says I have it...

    Chrome Browser app is gone.  "Search iPhone" turns up nothing.  It shows up in iTunes and says there's an update for it but neither the "Update" nor "Open" buttons are available.  Other apps have updated without a problem.  Google Search app works fi

  • Replication

    Hi , Can anyone explain me the difference between Replication and tunneling or do they both mean the same ??????? I have a scenario wherein I have to use an ABAP class instead of Message mapping and should make the scenario such that data from one cl

  • Early 2009 Mac Pro with SSD Sandisk Extreme

    Hi everyone, Just had a quick question for anyone who may know... I recently did the SDD upgrade for my mac pro (4,1) and bought a Sandisk Extreme SSD 120 GB, and the OWC sled for the drive. Installed a fresh install of ML and tested the drive with t