Adding a sequential number column to an existing table.

Greetings.

I have an existing table of some 30 million lines.

I would like to add an additional column (I did).

I want to fill this new column with a sequential number.

Have tried to create a sequence, I am at a loss on how to trigger the filling of the column.

Any help would be received with gratitude.

Thank you

Published by: 896596 on May 16, 2012 09:05

896596 wrote:
Greetings.

I have an existing table of some 30 million lines.

I would like to add an additional column (I did).

I want to fill this new column with a sequential number.

Have tried to create a sequence, I am at a loss on how to trigger the filling of the column.

Any help would be received with gratitude.

Thank you

Published by: 896596 on May 16, 2012 09:05

Update new_col is set nextval.seq1;.

Tags: Database

Similar Questions

  • I can add a column to an existing table with the data.

    Hello

    I'm working on
    The Version of database: Oracle 9i

    I can add a column to an existing table that already has data with below given command.

    ALTER TABLE table_name
    ADD the definition of the column_name column;

    Kind regards
    John

    Add to that:

    If your new column is NOT "null", you need the task in 3 steps:

    1. Add the column without a NOT NULL constraint
    2. the default value of the new column added.
    3. Add the NOT NULL constraint in the new column.

    concerning
    AJ

  • inserting data in a column in an existing table

    Hi the gems...

    I have an existing table TABLE_1 which has more data in it. This table has no primary key. now, I added a new column 'ID' and want to make it a primary key for this table. currently it is not allowed because the column is null...

    so I need to insert data into the column.
    now, my plan is to fill the column with the data as well as rownumber.

    means that if there are 15 records in this table, then the 'ID' column should contain data from 1 to 15. After that, I'll do the column as a primary key...

    the script I wrote for this:

    declare
    number of v_rownum;

    Start
    Select max (rownum) in the v_rownum from TABLE_1;
    because me in 1.v_rownum
    loop
    Update t set i = t.id TABLE_1 where rownum = i;
    commit;
    end loop;

    end;



    but it refreshes only the first record and the rest of the records are not updated.

    Please help... Thanks in advance...

    Select max (rownum) in the v_rownum from TABLE_1;

    How many rows do you think that this query will retrieve?

    Why not just

    Update TABLE_1 t
    the value t.id = rownum;

  • Add the column to an existing table-based user-defined type

    Hello guys,.
    I am compiling my function that returns a type defined by the user based on an existing table. Throughout the process of initialization so my query returns an additional column - SCORE (1). Here is my package:

    create or replace
    PACKAGE STAFF_AGENCY_PKG AS

    TYPE TYPE_SEEKER_TABLE IS TABLE OF THE DRAW. SEEKER % ROWTYPE;
    FUNCTION GET_SEEKERS (IN_KEYWORD IN VARCHAR2)
    TYPE_SEEKER_TABLE RETURN PIPELINE;

    END STAFF_AGENCY_PKG;
    -------

    create or replace
    STAFF_AGENCY_PKG PACKAGE BODY
    AS

    FUNCTION GET_SEEKERS (IN_KEYWORD IN VARCHAR2)
    TYPE_SEEKER_TABLE RETURN PIPELINE
    IS
    R_TBL TYPE_SEEKER_TABLE; -to return
    BEGIN
    FOR R IN)
    SELECT Seeker.SEEKER_ID,
    Seeker.FIRSTNAME,
    Seeker.LASTNAME,
    Seeker.NATIONALITY,
    Seeker.ISELIGIBLE,
    Seeker.BIRTHDATE,
    Seeker.ISRECIEVEEMAILS,
    Seeker.HIGHESTDEGREE,
    Seeker.ETHNICITY,
    Seeker.GENDER,
    Seeker.ISDISABILITY,
    Seeker.DISABILITY,
    Seeker.CV,
    Seeker.PASSWORD,
    Seeker.PREFFERED_CITY,
    SEEKER. E-mail
    SEEKER. JOB_PREFERENCES_ID,
    SCORE (1)
    THE APPLICANT Seeker
    WHERE CONTAINS (CV, ' < query >)
    < textquery lang 'grammar' = 'context' = > ' |
    GET_RELATED_CATEGORIES (IN_KEYWORD) |
    ' < / textquery >
    < score datatype = "INTEGER" / >
    (< / query > ', 1) > 0
    )
    LOOP
    PIPE ROW (R); -Error (38,10): PLS-00382: expression is of the wrong type
    END LOOP;
    RETURN;

    END GET_SEEKERS;
    END STAFF_AGENCY_PKG;

    How do I change my user type to be sufficient?

    Oracle version 11.2.0.1.0
    Thanks in advance!

    >
    How do I change my user type to be sufficient?
    >
    You will need to create two new TYPEs. The one who has all the columns of the draw. The REQUESTOR table and the new column SCORE, then a TYPE which is an array of the first type.

    See example 12-22 using a Pipelined Table function for a Transformation in the PL/SQl language reference

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/tuning.htm#i53120

    Here's the first part

    -- Define the ref cursor types and function
    CREATE OR REPLACE PACKAGE refcur_pkg IS
      TYPE refcur_t IS REF CURSOR RETURN employees%ROWTYPE;
      TYPE outrec_typ IS RECORD (
        var_num    NUMBER(6),
        var_char1  VARCHAR2(30),
        var_char2  VARCHAR2(30));
      TYPE outrecset IS TABLE OF outrec_typ;
     FUNCTION f_trans(p refcur_t)
          RETURN outrecset PIPELINED;
    END refcur_pkg;
    /
    
    CREATE OR REPLACE PACKAGE BODY refcur_pkg IS
      FUNCTION f_trans(p refcur_t)
       RETURN outrecset PIPELINED IS
        out_rec outrec_typ;
        in_rec  p%ROWTYPE;
      BEGIN
    

    Change

      TYPE outrec_typ IS RECORD (
        var_num    NUMBER(6),
        var_char1  VARCHAR2(30),
        var_char2  VARCHAR2(30));
      TYPE outrecset IS TABLE OF outrec_typ;
    

    to include all the columns you need. Unfortunately, you have to manually list all the columns in the draw. The REQUESTOR table. If you think you need this same structure in other places you must create them as SQL types instead of PL/SQL types.

    This example should be enough to show you how to modify your code to do something similar.

  • By adding a sequential number to analyze the file name

    On my HP OJ 4500 G510g-m, when scaning using the HP solutions Center - it always adds a number to 4 digits at the end of the name of the basis file that I can change.

    That I don't seem to be able to do is to get until STOPPED by adding the number 4-digit. I never want to do. I could see where this might be useful, but not for my situation.  Looks like there should be a checkbox to enable/disable this feature.

    Everyone there knows a way to achieve... notch record or something else? It's a pain to have to edit each file name that I scan so that I can eliminate the 4-digit number.

    Oh Yes... to help to win 8 with the latest drivers and software available.

    Well, that's an answer that is not a solution.

    However, as there is no solution, I have to call it resolved as you gave it at least a response with sufficient clarity that I can stop looking for a way to do what I want.

    FWIW - in my 22 years of it works, almost every software program scanning for this, and dang some of 'EM have an option to disable it-so for all these years, I've been editing file names to remove the 0001 that someone think everyone wants. I never talked to anyone who does not want that it kind... change which ever is used for market research.

    Add a number at the end, if there is already a file with the name you specify... now it makes sense.

    It is stupid to think that is what HP (and others) did that hardcode in the scan software. Please go to the top of the line.

    I am grateful for the response, however. It is simply not a solution.

  • How to add the not null columns to an existing table?

    I have a table with hundreds of row inside. I try to add a new column not null. It gives me the following error

    ALTER TABLE sys.xyz CHANGE xyz_no number 4 DEFAULT '1' NOT NULL;

    ORA-02296: impossible to activate (sys.) - found null values

    Also I tried to do the following

    ALTER TABLE sys.xyz CHANGE xyz_no number 4 DEFAULT '1';

    And then I tried to ALTER TABLE sys.xyz CHANGE xyz_NO number 4 NOT NULL; and I still gives me the same error. I took the tally for null values for the same column and has 1555.

    In this case how can I change my article with not null not?. Please help, I am a newbie in oracle.

    I cry out to you for creating a table as SYS. However, I'm going to fully support Sybrand making. Never, ever, create any object as SYS unless the source code received you from Oracle in a patch.

    Now to your question.

    SQL> CREATE TABLE test (
      2  col1 NUMBER,
      3  col2 NUMBER);
    
    Table created.
    
    SQL> INSERT INTO test VALUES (1,1);
    
    1 row created.
    
    SQL> INSERT INTO test VALUES (2,NULL);
    
    1 row created.
    
    SQL> ALTER TABLE test ADD (newcol NUMBER);
    
    Table altered.
    
    SQL> ALTER TABLE test
      2  MODIFY (newcol NOT NULL DISABLE);
    
    Table altered.
    
    SQL> SELECT * FROM test;
    
          COL1       COL2     NEWCOL
    ---------- ---------- ----------
             1          1
             2
    
    SQL> UPDATE test SET newcol = 3;
    
    2 rows updated.
    
    SQL> SELECT * FROM test;
    
          COL1       COL2     NEWCOL
    ---------- ---------- ----------
             1          1          3
             2                     3
    
    SQL> SELECT constraint_name
      2  FROM user_constraints
      3  WHERE table_name = 'TEST';
    
    CONSTRAINT_NAME
    ------------------------------
    SYS_C0036620
    
    ALTER TABLE test ENABLE CONSTRAINT SYS_C0036620;
    
  • How to remove some columns of an existing table?

    Let's say my table structure is as follows:

    Name of the table: EMPLOYEE
    Columns: Name, date of birth, sex, salary, birthplace, language and so on.

    There are data in the table. Now, I want to delete some columns, hometown and the language, and I don't like the loss of data. In addition, there is no constraint.
    What is the sql command to do this? Thank you!

    Name of the table: EMPLOYEE
    Columns: Name, date of birth, sex, salary, birthplace, language and so on.

    MHO%xe> desc employee
     Naam                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     NAME                                               VARCHAR2(30)
     BIRTHDATE                                          DATE
     GENDER                                             VARCHAR2(1)
     SALARY                                             NUMBER
     HOMETOWN                                           VARCHAR2(255)
     LANGUAGE                                           VARCHAR2(30)
    
    MHO%xe> alter table employee
      2  drop column hometown;
    
    Tabel is gewijzigd.
    
    Verstreken: 00:00:07.28
    MHO%xe> alter table employee
      2  drop column language;
    
    Tabel is gewijzigd.
    
    Verstreken: 00:00:00.15
    MHO%xe> desc employee
     Naam                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     NAME                                               VARCHAR2(30)
     BIRTHDATE                                          DATE
     GENDER                                             VARCHAR2(1)
     SALARY                                             NUMBER
    

    Also say what version you have turned on, if it does not work ;)

  • Adding rows or cells to existing Tables in Dreamweaver CC

    Dear Sir/Madam,

    Why can't I add additional cells or columns to an existing table?

    I have a database that I've frequently updated, but I note that since I upgraded my software from Studio MX 2004 to Adobe Dreamweaver CS5.5 (try now Dreamweaver CC) and the table options (such as adding rows/columns) are not available.

    What is the best way to list the alphabetical links. Should I just list people without a table or I can use what I already designed (without having to create a new page, since it will age to enter all the data again)?

    I look forward to hearing from you soon.

    Concerning

    Suzanne

    Make sure that you are in Design view, not to live.

    The editor in Live mode does not give you the standard table options.

    EDIT: I forgot to mention, if your pages use a fluid grid, Fashion Design presentation won't be available if you use DW CC 20141, deleted Adobe Design view for GFL in this version. Here is a discussion which has a couple of workarounds: Re: is it possible to display the design view in the fluid grid pages? and here is the feature request to vote in the section ideas if you are using the latest version: provide "Design view" fluid grid Web pages

  • Adding column not null in the existing table.

    How to add a column not null in the existing table?
    explain.
    Thank you
    create table abc_ex(a number);
    
    alter table abc_ex add(b number not null);
    
    desc abc_ex
    

    If for use then change to ALTER column extising

    Published by: nkvkashyap on May 27, 2013 21:49

  • How to add the new column in existing table to our desired location?

    How to add the new column in existing table to our desired location?

    For example, I have to add the new column 'course' before the salary column in the emp table.

    I think the best way is to add the column at the end of the table and create a new view with the order of the columns...

    Another option...

    places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table

    Refer

    Add column (from table) in the desired position

    Example:

    CREATE TABLE temp_my_user LIKE)

    SELECT * FROM password);

    DROP TABLE password;

    (Password) CREATE TABLE

    userID NUMBER

    , first name VARCAHR2 (25)

    , middleInitial VARCHAR2 (1)

    (, name VARCHAR2 (25));

    INSERT INTO password (userID, firstName, lastName)

    (SELECT username

    first name

    lastName

    OF temp_my_user);

    DROP TABLE temp_user;

  • How can I add a 'Record number' column in a folder that contains the music?

    How can I add a 'Record number' column for my music files?  It does not appear as a column I add when I right click on the folder in its display of details.  Zune program uses this file attribute.

    I learned from this thread (http://social.technet.microsoft.com/Forums/en/w7itpromedia/thread/47e46e5a-63c0-4a92-b39d-64ea9a07953e) Windows Media Player 12 IS NOT only an attribute of disc number!  Incredible.  Zune has it, and it works fine.   Come on Microsoft, please join us in THIS century it please?

  • How to add a sequential number or random as a merger of field?

    I created a landing page of confirmation which must be sent to an external site for tracking purposes. As one of the URL attributes, I need to assign a unique ID for the transaction, but the problem is that I can't use the email address.

    So my thought was that I created a random number and use it as id I checked the Math App in the cloud connectors, but realized that this only works in the campaign workflow. Then I thought so maybe some PHP in the destination page would help, but that is not taken care of.

    Any ideas on what I can do to fix this problem? A sequential number would be great but not necessary, so I figure that if it's long enough so a random number should not be repeated and will be able to work for my needs.

    Thank you

    Fernando

    I see two options:

    (1) you might actually be able to use the Math cloud connector in this case. To do this, start by creating a new field in the contact table to hold the random numbers, then set this field as a merge field (assets > creating a new Email > merge field > New). Now, you just need to run the Math Cloud Connector step in your Web of campaign, do fill this field of database for you and don't forget to add the merge field at the end of your URL as a query string.

    (2) the simplest option is to use the Eloqua user as a fusion variable id. If the Eloqua user ID is not yet an option of merger on your instance, simply follow the steps to set up a merge field (assets > creating a new Email > merge field > New) and choose the Eloqua user ID, now add at the end of your URL. It works even better that which precedes because area you guaranteed to have a unique value per user. If you need a unique value per visit, then I think that freejungof response would work very well, especially if you concatenate the JavaScript random number with the user id.

  • ORA-14030: partitioning column does not exist in the CREATE TABLE statement

    Hi all

    We are trying to create a partition materialized view and get an error below.
    ORA-14030: partitioning column does not exist in the CREATE TABLE statement
    Our GL_BALANCES21 and GL_CODE_COMBINATIONS21 base tables is already divided by interval of the range on Code_combination_id.
    In the same way that we try to partition the view materialized
    We get the error.
    ORA-14030: partitioning column does not exist in the CREATE TABLE statement
    Where the clause there are 4 tables gl_balances21, gl_code_combinations21, gl_periods and gl_set_of_books.


    CREATE MATERIALIZED VIEW apps. BAL_PART
    PARTITION BY RANGE ("CODE_COMBINATION_ID")
    (SCORE LOWER (80000) VALUES,
    PARTITION OF LOWER VALUES (160000),
    PARTITION OF LOWER VALUES (240000),
    PARTITION OF LOWER VALUES (320000),
    PARTITION OF LOWER VALUES (400000),
    PARTITION OF LOWER VALUES (480000),
    PARTITION OF LOWER VALUES (560000),
    PARTITION OF LOWER VALUES (640000),
    PARTITION OF LOWER VALUES (720000),
    PARTITION OF VALUES LESS THAN (800000),
    PARTITION OF LOWER VALUES (880000),
    PARTITION OF LOWER VALUES (960000),
    PARTITION OF VALUES LESS THAN (10400000),
    PARTITION OF LOWER VALUES (11200000),
    PARTITION OF LOWER VALUES (12000000),
    PARTITION OF LOWER VALUES (12800000),
    PARTITION OF VALUES LESS THAN (13600000),
    PARTITION OF LOWER VALUES (14400000),
    PARTITION OF VALUES LESS THAN (15200000),
    PARTITION OF LOWER VALUES (16000000),
    PARTITION OF VALUES LESS THAN (16800000),
    PARTITION OF VALUES LESS THAN (17600000),
    PARTITION OF VALUES LESS THAN (18400000),
    PARTITION OF VALUES LESS THAN (19200000),
    PARTITION OF LOWER VALUES (20000000),
    PARTITION OF VALUES LESS THAN (20800000),
    PARTITION OF VALUES LESS THAN (21600000),
    PARTITION OF VALUES LESS THAN (22400000),
    PARTITION OF VALUES LESS THAN (23200000),
    PARTITION OF LOWER VALUES (24000000),
    PARTITION OF VALUES LESS THAN (24800000),
    PARTITION OF VALUES LESS THAN (25600000),
    PARTITION OF VALUES LESS THAN (26400000),
    PARTITION OF LOWER VALUES (27200000),
    PARTITION OF LOWER VALUES (28000000),
    PARTITION OF VALUES LESS THAN (28800000),
    PARTITION OF VALUES LESS THAN (29600000),
    PARTITION OF VALUES LESS THAN (30400000),
    PARTITION VALUES LESS THAN (MAXVALUE))
    QUICKLY REFRESH ON DEMAND
    SELECT the QUERY REWRITE as
    SELECT GL.GL_CODE_COMBINATIONS21. ROWID C1,
    GL.GL_BALANCES21. ROWID C2,
    "GL". "" GL_BALANCES21 ". "" ACTUAL_FLAG, "
    "GL". "" GL_BALANCES21 ". "" CURRENCY_CODE "
    "GL". "" GL_BALANCES21 ". "" PERIOD_NUM, "
    "GL". "" GL_BALANCES21 ". "" PERIOD_YEAR ".
    "GL". "" GL_BALANCES21 ". "" SET_OF_BOOKS_ID ""SOB_ID"
    "GL". "" GL_CODE_COMBINATIONS21 ". "" CODE_COMBINATION_ID ""CCID.
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT1 ",.
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT10, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" DIRECTION11, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT12, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT13, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT14, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT2 ",.
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT3. "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT4, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT5, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT6, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT7. "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT8, "
    "GL". "" GL_CODE_COMBINATIONS21 ". "" SEGMENT9, "
    "GL". "" "" GL_PERIODS '. "" PERIOD_NAME,"
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) Open_Bal_Cr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) +.
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_CR', 0) Close_Bal_Cr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0) Open_Bal_Dr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0) +.
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_DR', 0) Close_Bal_Dr,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0).
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) Open_Bal,
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_DR', 0).
    NVL ("GL". "GL_BALANCES21" "." " (BEGIN_BALANCE_CR', 0) +.
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_DR', 0).
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_CR', 0) Close_Bal,
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_CR', 0) Period_Cr,
    NVL ("GL". "GL_BALANCES21" "." " (PERIOD_NET_DR', 0) Period_Dr
    OF GL.GL_CODE_COMBINATIONS21.
    GL.GL_BALANCES21,
    GL.GL_SETS_OF_BOOKS,
    GL.GL_PERIODS
    WHERE GL.GL_BALANCES21. CODE_COMBINATION_ID = GL.GL_CODE_COMBINATIONS21. CODE_COMBINATION_ID
    AND GL.GL_SETS_OF_BOOKS. SET_OF_BOOKS_ID = GL.GL_BALANCES21. SET_OF_BOOKS_ID
    AND GL.GL_PERIODS. PERIOD_NUM = GL.GL_BALANCES21. PERIOD_NUM
    AND GL.GL_PERIODS. PERIOD_YEAR = GL.GL_BALANCES21. PERIOD_YEAR
    AND GL.GL_PERIODS. PERIOD_TYPE = GL.GL_BALANCES21. PERIOD_TYPE
    AND GL.GL_PERIODS. PERIOD_NAME = GL.GL_BALANCES21. PERIOD_NAME
    AND GL.GL_PERIODS. PERIOD_SET_NAME = GL.GL_SETS_OF_BOOKS. PERIOD_SET_NAME
    and gl.GL_CODE_COMBINATIONS21.summary_flag! = « Y »

    ERROR on line 54:
    ORA-01013: user has requested the cancellation of the current operation

    I checked the metalink note saying that ensure that all columns in a partitioning column list are columns of
    the table being created.

    Partition is already there, on the column of code_combination_id of gl_balances21 and gl_code_combinations21.

    Please suggest.

    Thank you

    It's your mistake:

    PARTITION BY RANGE ("CODE_COMBINATION_ID") 
    

    but in your projection of column list, you have an alias he:

    "GL"."GL_CODE_COMBINATIONS21"."CODE_COMBINATION_ID" "CCID",
    

    You must use the alias as a partition key, not the name fom the secondary table column.
    --
    John Watson
    Oracle Certified Master s/n
    http://skillbuilders.com

  • By dragging the columns in source existing logical table...

    Hello
    I'm learning just OBIEE 11 g and I use a turorial from oracle, it is
    "Creating a repository using the BI of Oracle 11 g Administration tool" for aim practice.
    In this tutorial, it's say that do drag the columns of phscial layer of Logica Table Source
    MDB layer to avoid creating a second source of logical table... But when I try to drag the columns to
    source of existing logic, it is disabling I mean that is not to allow... is there any other technical
    IT... or I'm wrong addresses.... The following are briefly in the
    Tutorial.


    "Drag all six columns of D50 Sales Rep in the physical layer to D5 Sales Rep in the MDB layer." This action
    creates logical columns and adds a logical table source D50 Sales Rep to D5 Sales Rep.
    The logical table D50 source Sales Rep and rename LTS1 Sales Rep.
    In the physical layer, expand D52 Sales Rep Position.
    Drag the POSTN_DESC and POSTN_LEVEL D52 Sales Rep posted to LTS1 Sales Rep that you are
    by dragging columns from the source to the logical table, not the logical table. Dragging to the logical table would create a
    second source of logical table.
    Drag the DISTANCE of D51 Sales Rep Parent child at LTS1 Sales Rep. Yet once, you drag the column to the logic
    the source of the table, not the logical table. »

    help would be appreciated.
    Thank you and best regards,
    Sri_Oracle.

    Hi Sri,

    When you drag a physical column on an existing source of the logic table and if it doesn't let you do, then it means that there is no physical join between the existing physical table (which the logical source already points to) and the new physical table (which you drag the column now). Then, please, make sure the joint in place.

    I hope this helps.

    Thank you
    Diakité

  • How to count the number of columns in an oracle table using sql

    How to count the number of columns in an oracle table using sql

    You must put the name of the table in capital letters

    As

    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    
    or
    
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');
    

    Concerning
    Arun

Maybe you are looking for