Add the new column to Admin tool, including the SQL Code

Hi all

I am new to OBIEE and I already searched here in the forum but have not found an exact answer which could help me.
I have a table in the warehouse where to get information on employees. It's employe_id, manager_id and name.
Example:
Employe_id Manager_ID name
1 Mueller
2 1 Meier

Now, I would like to create a new column in the Mapping BI Admin tool business layer and add a SQL where to select the name of the Manager.
Is this possible? And how can we do it? It will work with a new logical column? Where we add the SQL Code?

I hope someone can answer my question!
Thank you very much!

Kind regards
David

OK, I think I got it - the name of Manager is on a separate table (or a search to return to the current table) and your thinking that you want to label your SQL in the report to find the name of Manager based on Director ID, you have?

If so, import the table with the names of Manager in the physical layer. If this is the same table that you already have (but want to search him in the current table) then you need to create an alias for the current table.

For each new table in the Phy layer, or an alias - define the join (current_table.manager_id = manager_table_or_aliased_current_table.employee_id)

Once completed, we will on the source of the logic table in the MDB for this dimension, edit, on the general tab, "Add" and select the table / alias that you created in the phy layer. Click OK - it combines now two tables attached as a source - you can then map the name of the Manager search in your column 'name '.

Kind regards
Alastair

Tags: Business Intelligence

Similar Questions

  • Can someone tell me if I can add a new column in the Explorer of Windows Vista or Windows Server 2008?

    Hello

    Previously in Windows XP and 2003, IColumnProvider is available using which it was possible to add a new column to Windows Explorer Details view, but with the removal of this API, the new columns are is not displayed in Windows Explorer on a Vista or Windows 2008 Server. It is said that there is a new concept of property system. So I would like to know if it is possible to implement something similar uses of property systems.

    These forums are for end users, rather than developers. You must use the MSDN Forums to get this kind of information.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Please let me know how I can add a new column with a constraint not null, table already has data, without falling off the table... Please help me on this issue...

    Hello

    I have an emp_job_det with a, b, c columns table. Note that this TABLE ALREADY has DATA OF THESE COLUMNS

    IAM now add a new column "D" with forced not null

    Fistly I alter the table by adding the single column "D", if I do, the entire column would be created with alll of nulls for the column DEFAULT D

    ALTER table emp_job_det Add number D; -do note not null CONSTRAINT is not added

    Second... If I try to add the constraint not null, get an eoor as already conatained null values...

    (GOLD)

    In other words, if I put the query

    ALTER table emp_job_det Add number D NOT NULL; -THROWS ERROR AS TABLE ALREADY CONTAINS DATA

    So my question is how how can I add a new column with a constraint not null, table already has the data, without falling off the table

    Please help me on this issue...

    Add the column without constraint, then fill the column. Once all the rows in the table are given in the new column, and then add the constraint not null.

  • Unable to add a new column to the table of the LCD? Option, just usually add it.

    I have a form of LCD with a table in it. Im trying to simply add a new column to the table. The option is there, but the column appear just after clicking Add the column to the left. I selected a column, right click the space > insert > column to the left. But the habit intsert. The object table properties tab shows lines and colum numbers, but they are grey.

    See screenshots:

    http://www.emermed.NET/staging/forums...

    http://www.emermed.NET/staging/forums...

    It is a dynamic array, where a new line can be inserted using a button. Is that the dynamic nature of the question? ID hate to cancel all the flow dynamics and programming just to add a column, and then reapply them all.

    Thank you!

    Hello

    You do not add the columns in the object > palette (screenshot 2) of the Table. I suspect that the problem is that it is not enough on the page (in the content area) to add the column. In the screenshot 1, if you look at the width of the column highlighted from the space to the right of the table, you will see that a column can be added due to restrictions of space.

    Reduce the width of the column highlighted (temporarily), and then add a column. Once added, you can resize the columns to match the width of the page.

    Hope that helps,

    Niall

  • Can we add a new column to a UNIQUE INDEX with out droping the same index?

    Can one please let me know how to add a new column to the UNIQUE INDEX existing on the same fall.
    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    Thank you.
    Mahi.

    TechMahi.com wrote:
    Can one please let me know how to add a new column to the UNIQUE INDEX existing on the same fall.
    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    Thank you.
    Mahi.

    I think that its doable and I don't think that it should be feasible to all too since that would disrupt the structure of index completely. I think, you must delete the existing one to add a new column that is do a composite index.

    Aman...

  • Add a new column and update of records

    I have the DW (OBAW) loaded at full load. Everything works fine.

    Now, I add a new column in a dimension in the DW (and in the ETL, RPD, CAD, etc.).

    I know that new (incremental) charges will take care of this column for the new/changed records... but

    Question is how can I update records, already loaded into PS for values in this column...?

    (a) I guess I can do this particular task of this dimension marked as 'full' DAC

    I'm not sure it's a good solution... I guess new ROW_WIDs will be generated and I have the connection with the fact table will be broken... Right?

    (b) I could blank the date of updating for this table W_ and/or refresher for this table S_ (from Siebel)

    I guess this could affect more than one task... or in other words all tasks dealing with this tables W_ and S_ - it also seems that the issue with the new ROW_WIDs will continue...

    Pls someone care to comment or offer a better solution?

    TXS. A lot.

    Antonio

    Assume that the table is W_ASSET_D or any other dimension...

    Yes, I plan to the OOB card personalization (in the folder custom, etc.).

    So if I'm correct... the option for setting null date discount for the W_ASSET_D table... and the use of DAC pointing to the custom task will take care of him...

    Just to be sure... It will not create new ROW_WIDs for W_ASSET_D?

    I'm worried by the _F FKs to this dimension tables...

    TXS for your help.

  • Alter a table to add 2 new columns

    Hi gurus!

    Am editing a table to add 2 new columns... The total number of records in the table RAILWAY is -103002

    Here is the news columns to add to the IRON table.

    ALTER TABLE ADD IRON

    (DLD VARCHAR2 (5))

    ID NUMBER (38),

    VARCHAR2 (1)) READY.

    the statement takes more than 6 minutes to run, so I canceled the performance.

    can someone pelase I would like to know what is the reason here.


    Please ask your dBA to unlock it for you.

    Kill the session that locks the table.

    To view the session which can be locked using the below stated:

    Select c.owner, c.object_name, c.object_type, select, b.serial #, b.status, b.osuser, b.machine

    v $ locked_object a, v$ session b, c dba_objects

    where select = a.session_id

    and a.object_id = c.object_id;

  • ADD A NEW COLUMN NOT NULL

    Hello
    I try to add a new column not null in the emp default table exist. Initially, I created the column (like BONUS) and then I try to apply the constraint in this amended by order. But it does not happen I mean forced is not added to the column as already the column will have NULL values for records existing (or lines). Can someone help me how to solve the problem?

    Thank you and best regards,
    Vishnu.

    first disable constraint...

    ALTER table dept change the ur_constraint_name disable constraint;

    then insert the data can

    ALTER table dept change the ur_constraint_name novalidate constraint;

    then

    ALTER table dept change enable NOVALIDATE constraint ur_constraint_name;

    Try this we can help

  • Add a new column with DEC

    Hi all

    I have tab_trans of transactions table which has nearly 20 million records.
    He has entries of all transactions. If any transaction is canceled or partially canceled it also stored there.
    To know entirely cancelled transactions currently, we need calculate the sum of the amount of the transaction based on trans_date and trans_id.
    To avoid this, I want to add a new column to the table. But it takes a lot of time hell.
    This is the structure of the table.
     
    Trans_id     Trans_date     Ref_trans_id     Ref_trans_date     Trans_amount         Trans_ind        
    10000     2/2/2010 13:12:10                                   100                      0        
    10001     8/2/2010 12:43:55                                   300                      0        
    10002     11/2/2010 09:23:24     10000     2/2/2010 13:12:10        -20                      1        
    10003     22/2/2010 10:32:45     10000     2/2/2010 13:12:10        -40                      1        
    10004     23/2/2010 09:45:23     10001     8/2/2010 12:43:55        -300                      1        
    10005     24/2/2010 07:30:23                                   500                      0      
    
    So I decided to create a temp_table using CTAS from tab_trans add the rest_amount column and update it with trans_amount in CTAS itself.
    
    create table temp_tab_trans as select Trans_id,Trans_date,Ref_trans_id,Ref_trans_date,Trans_amount,Trans_amount rest_amount from tab_trans ;
    
    Then I find out the rest_amount using correlated query.
    
    update  temp_tab_trans a  set rest_amount =nvl (select sum(trans_amount) from tab_trans b where b.ref_trans_date=a.trans_date and b.trans_id=a.trans_id),trans_amount) where trans_id=0;
    
    My intended result is :
    
     
    Trans_id     Trans_date     Ref_trans_id     Ref_trans_date     Trans_amount           Trans_ind          Rest_amount
    10000     2/2/2010 13:12:10                                      100                    0         40
    10001     8/2/2010 12:43:55                                      300                    0         0
    10002     11/2/2010 09:23:24     10000     2/2/2010 13:12:10           -20                    1        -20
    10003     22/2/2010 10:32:45     10000     2/2/2010 13:12:10           -40                    1        -40
    10004     23/2/2010 09:45:23     10001     8/2/2010 12:43:55           -300                    1       -300
    10005     24/2/2010 07:30:23                                      500                    0        500
    IE > partially/fully cancelled transactions should refresh the rest_amount in the original transaction (where trans_id = 0).

    After the temp_tab_trans, I create indexes as in tab_trans and deposit of tab_trans and rename temp_tab_trans to tab_trans.


    Can I do the update in the ETG itself? Can someone help me...

    Hello

    You can get the sum without a subquery using the analytical SUM function, like this:

    CREATE TABLE     temp_tab_trans
    AS
    SELECT     t.*
    ,     CASE
              WHEN  trans_ind = 0
              THEN  SUM (trans_amount)
                   OVER ( PARTITION BY  NVL (ref_trans_id,   trans_id)
                          ,          NVL (ref_trans_date, trans_date)
                        )
              ELSE  trans_amount
         END     AS rest_amount
    FROM     tab_trans     t
    ;
    

    If you wish to post, CREATE TABLE and INSERT statements for your sample data, and then I could test it.

  • Add a new column in a report to rich TEXT format

    I have a report to rich TEXT format and I want to add a new column that contains a formula of addition of let's say column A5 and A7. How do I get there? the A5 and A7 columns are the data loaded from the XML file. Thank you

    The example given by Vetri is for the actual columns in the xml file only.
    You can use

    Make sure that the values are not null. If so, convert or conditionally replaced by 0 number and use it.

  • Add a new column in a CREATE - AS SELECT statement

    I create a table using a select in an existing table. I would also like to add a new column (with nulls for all records). Is this possible? What is the syntax for this column?

    Thank you
    Kevin

    user10856100 wrote:
    I create a table using a select in an existing table. I would also like to add a new column (with nulls for all records). Is this possible? What is the syntax for this column?

    Thank you
    Kevin

    Kevin,
    In any case, create table will not accept one byte NULL for the column declaration.

    SQL> create table e(empno,ename, sal, new_co) as select  empno,ename, sal, to_number(null) from emp;
    create table e(empno,ename, sal, new_co) as select  empno,ename, sal, to_number(null) from emp
                                                                          *
    ERROR at line 1:
    ORA-01723: zero-length columns are not allowed
    
    SQL> create table e(empno,ename, sal, new_co) as select  empno,ename, sal, to_number('12') from emp;
    
    Table created.
    
    SQL> desc e
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     EMPNO                                              NUMBER(4)
     ENAME                                              VARCHAR2(10)
     SAL                                                NUMBER(7,2)
     NEW_CO                                             NUMBER
    
    SQL> select * from e;
    
         EMPNO ENAME             SAL     NEW_CO
    ---------- ---------- ---------- ----------
          7369 SMITH               0         12
          7499 ALLEN               0         12
          7521 WARD                0         12
          7566 JONES               0         12
          7654 MARTIN              0         12
          7698 BLAKE               0         12
          7782 CLARK               0         12
          7788 SCOTT               0         12
          7839 KING                0         12
          7844 TURNER              0         12
          7876 ADAMS               0         12
    
         EMPNO ENAME             SAL     NEW_CO
    ---------- ---------- ---------- ----------
          7900 JAMES               0         12
          7902 FORD                0         12
          7934 MILLER              0         12
          7369 SMITH               0         12
          7499 ALLEN               0         12
    
    16 rows selected.
    

    HTH
    Aman...

  • How I can add the php code in my Web site muse

    How I can add the php code in my site muse?

    Insert you user-defined html.

    Mylenium

  • Dreamweaver closes when I add the css code

    I put a sample of zip to http://www.tdrd.karoo.net/sample.zip

    When I edit index.htm and add the following code:

    {.portfolioH}

    high:-109px;

    left:-18px;

    }

    {.aboutH}

    high:-109px;

    left:-18px;

    }

    {.contactH}

    high:-109px;

    left:-18px;

    }

    who needs to improve the positions of the top menu.

    However, Dreamweaver no longer works and wants to close every time, and enter debug mode...

    Please can someone shed some light on why this is?

    I'm trying to get a menu horizontal and vertical, working on the same page - therefore, there are variants h and v classes.

    Thank you

    Terry

    Always add the statement to your HTML documents, so that the browser knows what type of document to expect.

  • Is there anyway to see the sql code generated in Report Builder?

    I'm debugging a custom report complex which includes many variables bind and lexicals and uses several user_exits for flex collect field values. Is there anyway to see the SQL code that is actually generated in the report - that is, a type of log file?

    Version of the EBS is 11.5.10.2
    Report Builder 6i

    Assuming that all of the lexical settings are in your before and after triggers setting, why not add a message pop up in your setting after trigger to display what is used? Ex:

    If: P_input1 = 'A' then
    : P_where1: =' and x = 2 ";"
    on the other
    : P_where1: =' and x = 3';
    end if;

    -make the last statement in your setting after release:
    SRW.message (1, "SQL: select a, b, c from table1 where b = 5' |: P_where1");

  • If I can revise the SQL code generated by OBIEE

    Hi all

    I had a problemetic SQL generated automatically by OBIEE. I have to rewrite or at least add a tip to make it complete within a fixed period.

    But I'm not sure if OBIEE offers us this feature to change or customize the SQLs it generates?

    Please help to give some advice.

    Thank you very much.
    Leon

    Hi leon,.

    OBIEE increases the performance of the aliases table, cz as he can't do oneself joined himself.
    Please visit this link this will solve your problem to improve performance
    http://www.iwarelogic.com/blog/performance-increasing-OBIEE-724
    (GOLD) http://www.rittmanmead.com/2008/11/thoughts-on-OBIEE-performance-optimization-Diagnostics/

    UPDATE POST
    @leon, you cannot change the SQL code generated by obiee, your obligation to use EXISTS instead of IN operator, then you can do this in the physical layer of RPD by accessing the properties of the table and select SQL problem and write your query with condition EXISTS on the relevant tables. So that in turn Bi server accepts and converts according to its methodology.

    UPDATE POST-2
    @leon, you can use rownum in your where clause, but check the query generated by OBIEE and the results obtained by rownum satisfied your requirment.

    Please follow label by awarding points to make it useful to others and even for us. Rules to be followed http://forums.oracle.com/forums/ann.jspa?annID=939

    hope responds to your question.mark points.

    See you soon,.
    KK

    Published by: Jocelyn on January 24, 2011 22:25

    Published by: Jocelyne 24 January 2011 22:27

    Published by: Jocelyn on January 25, 2011 02:13

    Published by: Jocelyne 25 January 2011 05:26

Maybe you are looking for