Renaming Column Names in a single shot in Requests

Hi All,
We are having one issue while trying to rename the column in the requests.
Requirement:
We are having two presentation table "Fact Summary" and "Countries Dimension". Both of these tables contain one column "Country Description".
Presently in all the reports we have developed till now, we used "Fact Summary"."Country Description".
Now the users want us to replace "Fact Summary"."Country Description" with "Countries Dimension"."Country Description" and delete the "Country Description" from "Fact Summary" table.
Approach we followed:
Opened the Catalog Manager in Offline mode and used the XML Search and Replace option.
With this option we are able to replace column names that are selected in a request but not those just used as filters(is prompted).
Example:
Suppose we have one request with "States Dimension"."State" seleted and "Fact Summary"."Country Description" as filter, we are able to not able to replace "Fact Summary"."Country Description" with "Countries Dimension"."Country Description"
Can anyone please help me...Is there any alternative solution for this?
Thanks in Advance.....

Nope, I don't have a solution for this. You must never model descriptive columns in a fact table. Even when you have descriptive columns or textual content in one of your fact table columns, you should model them as part of a logical dimension table. Let this be a good lesson.
Regards,
Stijn

Similar Messages

  • How to rename column name of table?

    Hello...
    How to rename column name of table?
    The column have data.
    Thanks.
    Martonio.

    The following should work in 9i release 2 and above.
    SQL> create table mytable(col1 varchar2(2),
      2  col2 date);
    Table created.
    SQL> insert into mytable values('t1',sysdate);
    1 row created.
    SQL> select * from mytable;
    CO COL2
    t1 30-NOV-04
    1 row selected.
    SQL> desc mytable
    Name                                      Null?    Type
    COL1                                               VARCHAR2(2)
    COL2                                               DATE
    SQL> alter table mytable rename column col2 to mydate;
    Table altered.
    SQL> desc mytable
    Name                                      Null?    Type
    COL1                                               VARCHAR2(2)
    MYDATE                                             DATE
    SQL> select * from mytable;
    CO MYDATE
    t1 30-NOV-04
    1 row selected.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Productionhttp://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/wnsql.htm#972698

  • Rename column name

    Can i rename column name of a table. If so how to do it????

    before 9i
    Renaming a column in table:
    ==========================
    This is possible by updating the "name" column of the col$. To reflect this
    change in the system views, run catalog.sql and catproc.sql.
    Here is an example:
    SQL> create table test(
    x number,
    y varchar2(10),
    z varchar2(10));
    SQL> insert into test values (12,'Child','BLUE');
    SQL> insert into test values (34,'Mens','BROWN');
    If you wanted to rename column "x" as column "x1" then do the following.
    The first step is to identify the object number for the table (as SYS):
    SQL> select obj# from obj$
    where name='TEST' and owner#=9;
    OBJ#
    ======
    58217
    Now identify the column numbers for the table:
    SQL> select obj#, col#, name from col$ where obj#=58217;
    OBJ# COL# NAME
    58217 1 X
    58217 2 Y
    58217 3 Z
    To change the name, a simple update statement will suffice:
    update col$ set name='X1'
    where obj#=58217 and col#=1;
    To reflect the change in system views, run catalog and catproc (unix) eg:
    svrmgr> @$ORACLE_HOME/rdbms/admin/catalog
    svrmgr> @$ORACLE_HOME/rdbms/admin/catproc
    Now when a describe of the table is done:
    SQL> desc test;
    Name Null ? Type
    X1 NUMBER
    Y VARCHAR2(10)
    Z VARCHAR2(10)
    Similarly, selecting from the table and querying views such as
    DBA_TAB_COLUMNS shows the new column name.
    NOTE: Before changing column names, drop any indexes,
    foreign keys and primary constraints that might be on
    the column. These can be re-created later.

  • Unable to reorder/change column names on interactive single row view

    I have created an interactive report and grouped my columns to display nicely in a single row view report. However, once I initially add the columns to a group, I am unable to reorder them. I can move them up and down the list, but the changes don't save. Also, I have gone through column by column and unchecked the box that says Use Same Text for Single Row View and expanded the column name. However, the single row view still displays what is in the master report. I've tried closing out my browser completely and reopening, but I am still not seeing my changes. Any suggestions?

    I also just stumbled about the "Use Same Text for Single Row View" option actually doing nothing - in Single Row View I still get the label text from "Column Heading", no matter what I enter in "Single Row View Label".
    I had to adjust a column width using a span tag in the heading (as this seems to be the only way to do that - any other suggestions I found adding style information to the region header had no effect), and now that tag is displayed in the Single Row View label.
    I can live with that for now, but it's not really nice.
    Is this a known bug? Didn't find anything else in the forum regarding this problem so far.
    Holger

  • Searching for missing column names in a single database.

    I have a database with about 100 tables, database gets generated using entity framework. The application has been enhanced  so users deployed with older version of the application need to upgrade to newer version. The database generated is both versions
    is same name.
    Now, the older version is missing some tables and column names that are in new database.
    Is there a script that can search for missing fields in a single database as described in this situation?
    Below is my script. Basically, nameofdatabase would the database generated and that already existing. If you install the application and database already exits no new database will be created.
    SELECT * FROM (Select TABLE_CATALOG, Table_name,COLUMN_NAME FROM nameofdatabase.INFORMATION_SCHEMA.COLUMNS) a FULL OUTER JOIN (SELECT TABLE_CATALOG, Table_name,COLUMN_NAME FROM nameofdatabase.INFORMATION_SCHEMA.COLUMNS) b ON b.COLUMN_NAME=a.COLUMN_NAME and
    a.TABLE_NAME=b.TABLE_NAME WHERE b.COLUMN_NAME is null or a.COLUMN_NAME is null ;

    There is a great tool called SQLCompare provide by www.red-gate.com
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Rename column name of a table

    Hi Guys,
    I want to rename the column name of a table. Lets say I have table employee:
    SQL> desc emp;
    Name Null? Type
    EMPNO NOT NULL NUMBER(4)
    ENAME VARCHAR2(10)
    JOB VARCHAR2(9)
    MGR NUMBER(4)
    HIREDATE DATE
    SAL NUMBER(7,2)
    COMM NUMBER(7,2)
    DEPTNO NUMBER(2)
    STARS VARCHAR2(8)
    I want to change the name of the cloumn name of ENAME to EMPNAME so that structure looks like this:
    SQL> desc emp;
    Name Null? Type
    EMPNO NOT NULL NUMBER(4)
    EMPNAME VARCHAR2(10)
    JOB VARCHAR2(9)
    MGR NUMBER(4)
    HIREDATE DATE
    SAL NUMBER(7,2)
    COMM NUMBER(7,2)
    DEPTNO NUMBER(2)
    STARS VARCHAR2(8)
    Can anyone tell me any statement or way to solve this problem. Please keep in mind that I will not delete the table or create another column name of EMPNAME and copy the data from ENAME to EMPNAME.
    Regds,
    Debabrata

    ALTER TABLE DEPT2 RENAME COLUMN ENAME TO EMPNAME
    Regards,
    Raj

  • RENAMING COLUMN NAME

    DEAR FRIENDS,
    I HAVE DATAS IN A COLUMN AND WANT TO RENAME IT WITHOUT CREATING ANOTHER TABLE AND INSERTING THE DATAS INTO IT. HOW TO DO THAT?

    SQL> desc emp
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    SQL> alter table emp rename column ename to employee_name ;
    Table altered.
    SQL> desc emp
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    EMPLOYEE_NAME                                      VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    SQL>

  • Renaming column name of view

    suppose i have a table employee with column name first and last. Now i want to make a view of that table employee with column name First_name and Last_name. Is it possible?

    If you would have taken the time to look up the create view command in the SQL manual or in the Application Developers Guide - Fundaments you would not be asking this question.
    You can name the table columns any legal column name in the view definition.
    create or replace view bob_vw
    as select lname as LAST_NAME, fname as FIRST_NAME from source_table;
    HTH -- Mark D Powell --

  • Use different column Name in Analytic View depending by logon session language

    Hi everybody.
    Is it possible to have different column names for ONE single Analytic View column depending by the Client session language?
    For instance:
    - we have one (only one)  column name let's say that is 'fatturato' (for an Italian Client session) and 'invoiced' (for an English Client session) etc.. etc..
    in other word the 'column name' changes depending by the language but the column is only 1 (one).
    Is it possible to manage this and how? In SAP Hana Studio?
    Is it possible to store in some way the different names of that column and relate them to the column itself?
    Thank you in advance
    Best regards.
    Sergio

    Hi Sumeet.
    We already did your suggestion...
    But after the action:
    " tab--> Migrate--> Add---> OK"
    what do you have to do to have a multi-language column naming?
    Let's say we have a column name = 'product' (in English).
    We'd like to have for the same column also the following name:
    - 'prodotto'  ->  for Italian
    - 'produit'  -> for French
    - 'produkt' -> for German
    .. and so on
    depending  by the Client session language (and this has to be done automatically of course).
    How this can be achieved?
    Thank you
    Sergio

  • Materialized view with dynamic column names !

    hello,
    i need some help , i'm trying ( i got no where so far :) ) to create a materialized
    view that has dynamic field name values , so every time the view is refreshed
    the fields are renamed.
    i have been asked to create a decade summary view and to assign year values to field names,the years should be table columns ( not rows !? ) and thus i should reflect this fact to the column names.
    i know its a wierd request but is there anway to do it ?
    i dunno about it at least,
    Thanks !

    ...or you could define the materialised view neutrally e.g. with columns like YEAR1, YEAR2 etc.
    Then create a dynamically-defined view on top of this view, after it's refreshed, using the relevant years as column names. SELECT year1 AS "1991", year2 AS "1992" etc.
    I still don't see how anybody is going to use these views as they won't know what the "year" columns are called.
    And if the same materialised view is going to have different sets of data each time it's refreshed i.e. different sets of years, are you re-defining the selection criteria each time? If so, why not just define separate views?
    It's a weird world out there...

  • Rename columns of list created by external content type in share point 2010

    Hi,
    I want to rename columns of list created by external content type.
    Please help to solve the issue.
    Thanks in advance!
    Regards
    Rajni

    Hi,
    Steps to rename column name:
    Open external content type in SharePoint designer
    click on “Operations Design View” from ribbon
    select corresponding external content type operations
    click on edit operation from ribbon
    click next button to get the Return parameter configuration page
    select the parameter and change the display name from the properties
    Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • SQL Alter Column Name

    I am trying to change the name of a column in my Oracle database using SQL PLUS. This is what I'm doing:
    ALTER TABLE projects
    RENAME COLUMN thomas_comp_type TO thomas_comp_shipped_via;
    When I do this it gives me an error stating ORA-14155 Missing PARTITION or SUBPARTITION keyword.
    What does this mean and how do I fix it?

    Hang on: you're trying to rename a column called NAME?
    That's one of Oracle's reserved keywords so should never have been used as a column name in the first place:
    SQL> select * from v$reserved_words where keyword like 'NAME';
    KEYWORD                            LENGTH R R R R D
    NAME                                    4 N N N N NThat said, you are able to do such a rename without an issue in 10g:
    SQL> create table t1 (name varchar2(10));
    Table created.
    SQL> alter table t1 rename column name to fred;
    Table altered.
    SQL> desc t1;
    Name                                      Null?    Type
    FRED                                               VARCHAR2(10)Oracle 9i is obviously a different matter ...and it doesn't help that it's such an old version, because I don't have a machine running that to hand to test things out on. You could try double-quoting the column name:
    SQL> alter table t1 rename column "FRED"  to barney;
    Table altered.But I can't guarantee that will work.

  • Rename coloum name

    Can i rename column name of a table. If so how to do it????

    You Can't direclty do that. However if u have Oracle8i Rel 1 or up, u can do the following:
    (1) alter table tablename drop column coulmnName;
    (2) alter table tablename add column (columName DataType(Size));
    Riaz

  • Column Name change in IR

    Hi,
    I want to display the different column name in dashboard other than the column name in result set. for eg: I have the results with column name emp_id. now i want to display this column name as Employee_ID in dashboard. How to do this?
    Thanks in Advance...

    Either change the column name in the Query on the Request Line it does not impact the column selected similar to the SQL Select statement AS
    OR
    Add a Computed Column in Results referencing emp_id and then Hide emp_id.
    Wayne Van Sluys
    TopDown Consulting

  • How to rename a column name in a table? Thanks first!

    I tried to drop a column age from table student by writing the
    following in the sql plus environment as :
    SQL> alter table student drop column age ;
    but I found the following error
    ORA-00905: 缺少关键字 (Lack of Key word)
    I have oracle enterprise edition 8.0.5 installed at windows 2000
    thank you
    And I want to know how to rename a column name in a table?
    thanks

    In Oracle 8i, your syntax would have worked.  However, if I
    recall correctly, in Oracle 8.0, you can't rename or drop a
    column directly.  One way to get around that problem is to
    create another table based on a select statement from your
    original table, providing the new column name as an alias if you
    want to change the column name, or omitting that column from the
    select statement if you just want to drop it.  Then drop the
    original table.  Then re-create the original table based on a
    select statement from the other table.  Then you can drop the
    other table.  Here is an example:
    CREATE TABLE temporary_table_name
    AS
    SELECT age AS new_column_name,
           other_columns
    FROM   student
    DROP TABLE student
    CREATE TABLE student
    AS
    SELECT *
    FROM   temporary_table_name
    DROP TABLE temporary_table_name
    Something that you need to consider before doing this is
    dependencies.  You need to make a list of all your dependecies
    before you do this, so that you can re-create them afterwards. 
    If there are a lot of them, it might be worthwhile to do
    something else, like creating a view with an alias for the
    column or just providing an alias in a select.  It depends on
    what you need the different column name for.

Maybe you are looking for

  • OBIEE 11g Dashboard page load performance issue

    Hi All, One of my dashboard is taking for 5 to 15 min to load,Once the dashboard is displayed reports are coming fast. Dashboard has 5 pages. Eg: When I click on Dashboard -> XXXX Dashboard. It took 5 to 15 min to display the dashboard page. Reports

  • Lost all of my icons in left hand window.

    Here's one for you techies! Working away merrily the other night, when I decided that I needed a multiway power socket in my room. Trouble was, my G4 iMac (flat screen) was plugged into the power socket. Logged out, shut down, waited until the hard d

  • New issue breaking Gmail when using custom domain name

    I have been using my own domain name in conjunction with Gmail since the launch of Gmail.  The use case is fairly straightforward -- I have my own domain name and have created an email address alias on this domain ("custom email address') that forwar

  • Unable to map the record variables in SubProcess

    Hi All, We are using Oracle BPM 11g.In my requirement,we are using one database adapter for selecting the records from table,after that we are using the subprocess to loop the process record by record,we also created the busines data objects and proc

  • IPhotos - Shared iCloud vs My Photo Stream????

    In my iPhoto I have a "RECENT - My Photo Stream" item that contains 194 photos and a "SHARED iCloud" item that contains 402 photos.  Some of these photos in the two "albums" are the same. Question: What is the difference between "My Photo Stream" and