Select multiple column into one column

Hi..!!!
Is it possible to select 4 columns in to 1 columns?
I've major1, major 2, major 3, major 4 and i want to retrieve all the columns into one column called "Majors".
Is it possible? if yes then how?
Help me out.
Thanks,
Himadri

If you had given a proper example this thread would have been over in two posts. What you are looking for is often described as an UNPIVOT.
I tend to use a collection type for this, e.g.
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE TYPE varchar2_table AS TABLE OF VARCHAR2 (4000);
  2  /
Type created.
SQL> SELECT empno, column_value
  2  FROM   emp, TABLE (varchar2_table (ename, job));
     EMPNO COLUMN_VALUE
      7369 SMITH
      7369 CLERK
      7499 ALLEN
      7499 SALESMAN
      7521 WARD
      7521 SALESMAN
      7566 JONES
      7566 MANAGER
      7654 MARTIN
      7654 SALESMAN
      7698 BLAKE
(snipped)
28 rows selected.
SQL>

Similar Messages

  • Select One Choice-select multiple attributes into mutiple columns

    Select One Choice-select multiple attributes into mutiple columns does not work.
    read-only view object view1 - columns a, b, c
    updatable view object view2 - also columns a, b, c
    Select One choice has the capability to bind multiple columns to multiple columns. I understand how this wizard is to be used for these multiple mappings, i.e., view2.a mapped to view1.a, view2.b mapped to view1.b, etc., and using 'select multiple...' for the display attribute. When I complete the 'List Binding Editor" correctly, in this example, only column a will be updated. Columns b,c, etc. will not be effected.
    Has anyone solved this? Please do not reply telling me how to use the editor, I know how, it just is not working.
    Here is my jspx segment,
    <af:selectOneChoice value="#{bindings.Eis000tv1SlOffice.inputValue}"
    label="#{bindings.Eis000tv1SlOffice.label}">
    <f:selectItems value="#{bindings.Eis000tv1SlOffice.items}"/>
    Here is pageDef segment:
    <list id="Eis000tv1SlOffice" IterBinding="Eis000tv1Iterator"
    StaticList="false" ListOperMode="0" ListIter="OfficeSpaceV1Iterator"
    NullValueFlag="1" NullValueId="Eis000tv1SlOffice_null">
    <AttrNames>
    <Item Value="SlOffice"/>
    <Item Value="Floor"/>
    <Item Value="FloorArea"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="SlOffice"/>
    <Item Value="Floor"/>
    <Item Value="Area"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="SlOffice"/>
    <Item Value="Floor"/>
    <Item Value="Area"/>
    </ListDisplayAttrNames>
    </list>
    Here is the iterator:

    can u set as specified here
    -Djps.app.credential.overwrite.allowed=true http://radalcove.com/blog/?p=34

  • Inserting multiple selection from checkbox into one column of the database

    Hi,
    How to insert multiple selection values from checkbox into one column of the database.
    Anyone can u help me
    Thanx

    hi
    try to use request.getParameterValues("fieldname")

  • Collecting data from multiple rows into one column

    I'd like to run a query and put a collection of items into one output column instead of multiple rows. See the example below:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
         CREATE TABLE "SKIP"."INGREDIENTS"
       (     "INGRED_ID" NUMBER,
         "INGRED_NAME" VARCHAR2(20 BYTE),
         "STORES" VARCHAR2(20 BYTE)
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;
    REM INSERTING into SKIP.INGREDIENTS
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (1,'SEA SALT','Food lion');
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (2,'TABLE SALT','Food lion');
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (3,'FLOUR','Piggly Wiggly');
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (4,'YEAST',null);
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (5,'BEER','ABC Store');
      CREATE TABLE "SKIP"."PRETZELS"
       (     "PRETZEL_ID" NUMBER,
         "PRETZEL_NAME" VARCHAR2(20 BYTE),
         "PRETZEL_DESC" VARCHAR2(100 BYTE)
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;
    REM INSERTING into SKIP.PRETZELS
    Insert into SKIP.PRETZELS (PRETZEL_ID,PRETZEL_NAME,PRETZEL_DESC) values (1,'CLASSIC','Classic knot pretzel');
    Insert into SKIP.PRETZELS (PRETZEL_ID,PRETZEL_NAME,PRETZEL_DESC) values (2,'THICK STICK','Straight pretzel, abt 1/2" in dia');
      CREATE TABLE "SKIP"."INGRED_XREF"
       (     "PRETZEL_ID" NUMBER,
         "INGRED_ID" NUMBER
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;
    REM INSERTING into SKIP.INGRED_XREF
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,1);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,2);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,4);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,2);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,3);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,5);
    --  Constraints for Table INGRED_XREF
      ALTER TABLE "SKIP"."INGRED_XREF" MODIFY ("PRETZEL_ID" NOT NULL ENABLE);
      ALTER TABLE "SKIP"."INGRED_XREF" MODIFY ("INGRED_ID" NOT NULL ENABLE);
    {code}
    Desired output (note how the ingredients are all listed in one column, separated by commas):
    {code}
    PRETZEL_ID PRETZEL_NAME     PRETZEL_DESC                        INGREDIENTS
    1          CLASSIC          Classic knot pretzel                SEA SALT, TABLE SALT, YEAST
    2          THICK STICK      Straight pretzel, abt 1/2" in dia   TABLE_SALT, FLOUR, BEER

    See the FAQ : {message:id=9360005}
    Especially links concerning string aggregation.

  • Multiple Rows Into One Column Field

    Hi All,
           Today I tried one query:
    select wm_concat(ename) from emp
    group by deptno;
    I have a data that looks like this.
    CLARK,KING,MILLER,SREE
    JONES,FORD,ADAMS,SCOTT
    ALLEN,MARTIN,BLAKE,TURNER,JAMES,WARD
    Can someone help me to build an SQL command that would have the output as follows:
    I need per column 3 values....
    CLARK,KING,MILLER,
    SREE,JONES,FORD,
    ADAMS,SCOTT,ALLEN,
    MARTIN,BLAKE,TURNER,
    JAMES,WARD

    StewAshton wrote:
    That's funny, I don't get the same answer
    Why do you think you should?
    Besides, you're not the only one.
    ENAMES
    KING,BLAKE,CLARK
    JONES,SCOTT,FORD
    SMITH,ALLEN,WARD
    MARTIN,TURNER,ADAMS
    JAMES,MILLER
    Regards
    Etbin
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    It's from my APEX Workspace: first select from the emp table (not touched until now)
    Message was edited by: Etbin

  • How to combine multiple columns into one column and delete value the row (NULL) in sql server for my example ?

    My Example :
    Before:              
    Columns
    name               
    address          
                   jon                      DFG
                   has                     NULL
                   adil                      DER
    After:                  
    Column 
                                    Total   
                      name : jon , address : DFG
                      name : has
                      name : adil , address : DER

    Why not doing such reports on the client site?
    create table #t (name varchar(10),address varchar(20))
    insert into #t values ('jon','dfg'),('has',null),('adil','der')
    select n,case when right(n,1)=':' then replace(n,'address:','') else n end
    from
    select concat('name:',name, ' address:',address  ) n from #t
    ) as der
    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

  • Retrieve of data from two columns into one column

    For eg: i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    Through a select i want the output of my data in one single
    columns, Well I can do this by using union.
    But my output should be like
    if I select by condition where A=2
    my output should be
    2
    1
    3
    7
    4
    because all these numbers are linked with 2 how do i do this
    because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
    Hope u got my point what i exactly want
    Can anyone help me it is quite urgent.
    Regards
    Vamsi Mohan

    i do not a concatenated data
    i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    if my where condition is 'where A=2'
    my output should be
    1
    2
    3
    4
    5
    6
    8
    10
    i want my query to search as loop so that it keeps on searching
    for related data as in my case it is
    2 is linked to 1
    1 is linked to 3
    3 is linked to 4
    my query should keep on seaching for linked numbers till
    it does not find any mathing linked numbers
    and the resulted output should come in one single column

  • Sql loader - mutiple values into one column

    Hi,
    Is it possible to load multiple fields into one column. Eg, my table structure has two columns COL1, COL2 and my data file is comma delimted with 3 fields A,B,C.
    How could i use sql loader to achieve (without the use of temp tables)
    COL1 = A
    COL2 = BC
    Thanks

    I don't understand why you can't modify the input fille.
    But anyway, i have 2 ways to help you
    1. Make new inputfile online using pipe and awk(or something your are familiar with) and use it as new input file.
    This is a traditional and powerful method in Unix environment.
    For instance:
    oracle> $ mknod pipe.dat p
    oracle> cat input.dat | awk '{print ...}' > pipe.dat &
    oracle> sqlldr ctl=.. data=pipe.dat
    Using this method, you don't need to modify original input file physically, but by some magical trick you can modify it on the fly.
    2. Use before trigger
    For instance:
    create table load(a int, b int, c int, d int);
    create or replace trigger load_trigger
    before insert on load
    for each row
    begin
    :new.d := :new.b + :new.c;
    :new.b := null;
    :new.c := null;
    end;
    load data
    infile *
    append
    into table load
    fields terminated by "," optionally enclosed by '"'
    (a, b, c)
    begindata
    1, 1, 1
    2, 2, 2
    3, 3, 3
    4, 4, 4
    sqlldr userid=... ctl=load.ctl
    SQL> select * from load;
    A B C D
    1 2
    2 4
    3 6
    4 8
    You won't like the existence of unnecessary columns(B, C) but don't have choice. ^^;
    I think there is another simple way provided by SQL*Loader. But i've never tried it myself. Read following doc and try it yourself:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1008153

  • Data in two different coulmns merge into one column

    I am using following script to create external table with data.
    CREATE TABLE external_class(
    item_no varchar2(255),
    max_range varchar2(255)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DATALOAD
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    (item_no,max_range)
    LOCATION ('class_newc.txt')
    REJECT LIMIT UNLIMITED;
    Problem is that its merge both columns into one column.
    I want two seperate columns.
    Data is in microsoft excel spread sheet.
    I saved as txt(TAB DELIMITED) txt
    Data appears in clas.txt file as below:
    "400     "     4177.64
    "404     "     5574.64
    "406     "     5333
    "408     "     
    "409     "     
    "450     "     10.83
    "478     "     
    "482     "     4820
    I ran the above script to create table.
    Table Created
    SQL> desc external_class;
    Name Null? Type
    ITEM_NO VARCHAR2(255)
    MAX_RANGE VARCHAR2(255)
    SQL> select count(*) from external_class;
    COUNT(*)
    3036
    but with
    select * from external_class;
    ITEM_NO MAX_RANGE
    "400"4177.64
    "404"5574.64
    "406"5333
    "408"
    "409"
    "450"10.83
    "478"
    "482"4820

    thanks its work.
    Actually I created other file as below
    Item_no-----max_range
    400     4177.64
    404     5574.64
    406     5333
    408     
    409     
    450     10.83
    and use creation script as below:
    CREATE TABLE external_class(
    item_no varchar2(255),
    max_range varchar2(255)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DATALOAD
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    fields terminated by whitespace
    MISSING FIELD VALUES ARE NULL
    (item_no,max_range)
    LOCATION ('class_newa.txt')
    REJECT LIMIT UNLIMITED;

  • Concatenate multiple columns into one string

    Hello,
    I am using Oracle 11.2, how can I concatenate the value of multiple columns into one string with one SQL:
    create table testTb(classId number(5), classRoom varchar2(32));
    insert into testTb value(101, 'room101');
    insert into testTb value(101, 'room201');
    insert into testTb value(101, 'room301');
    insert into testTb value(202, 'room444');
    insert into testTb value(202, 'room555');
    I would like to generate the result as followings:
    Class 101 is in room101, room201, room301
    Class 202 is in room444, room555
    Thanks,

    Hi,
    Since you're using Oracle 11.2, you can use the aggregate LISTAGG function:
    SELECT       'Class ' || classid
                   || ' is in '
                 || LISTAGG ( classroom
                         ) WITHIN GROUP (ORDER BY classroom)
                   AS txt
    FROM       testtb
    GROUP BY  classid
    ;The generic name for concatenating all the strings in a group is String Aggregation . This page shows several ways to do it, suitable for different versions of Oracle.

  • Converting multiple columns into one.

    All,
    I have a requirement to convert multiple columns into one. Following is the pseudo code of current implementation. It unions the various columns ( col1, col2........) into a new column new_col. But perforamnce is extrmely slow owing to multiple unions. It may be noted that tables and where conditions of all these queries are same.
    Can you help me create a more efficient query?
    select col1 , col2, col3, col4 from my_tables where some_cols = my_condition;Below is the query used to convert these columns into one.
    select col1 new_col from my_tables where some_cols = my_condition
    union all
    select col2 from my_tables where some_cols = my_condition
    union all
    select col3 from my_tables where some_cols = my_condition
    union all
    select col4 from my_tables where some_cols = my_condition

    Without looking at those things you could be barking up the wrong tree by assuming the issue relates to the unioning of queries or other such things.Well, might be.........
    Execution time of this query (just the execution time not the retrival) is around 34 seconds with connect-by clause for returning 22,000 records.
    Here's the plan
    Execution Plan
    | Id  | Operation                          | Name                        | Rows
    | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT                   |                             |   326
    | 33904 |   135   (2)|
    |   1 |  SORT ORDER BY                     |                             |   326
    | 33904 |   135   (2)|
    |   2 |   MAT_VIEW ACCESS BY INDEX ROWID   | MV_COMQ_RM_DEAL             |     1
    |    62 |     1   (0)|
    |   3 |    NESTED LOOPS                    |                             |   326
    | 33904 |   134   (1)|
    |   4 |     MERGE JOIN CARTESIAN           |                             |   326
    | 13692 |     3   (0)|
    |   5 |      VIEW                          |                             |     1
    |    13 |     2   (0)|
    |   6 |       COUNT                        |                             |
    |       |            |
    |   7 |        CONNECT BY WITHOUT FILTERING|                             |
    |       |            |
    |   8 |         FAST DUAL                  |                             |     1
    |       |     2   (0)|
    |   9 |      BUFFER SORT                   |                             |   326
    |  9454 |     3   (0)|
    |  10 |       TABLE ACCESS BY INDEX ROWID  | SF_SEARCH_IDS_TMP_COMQ      |   326
    |  9454 |     1   (0)|
    |  11 |        INDEX RANGE SCAN            | IDX1_SF_SEARCH_IDS_TMP_COMQ |   349
    |       |     1   (0)|
    |  12 |     INDEX RANGE SCAN               | IDX_MV_COMQ_RM_DEAL         |     9
    |       |     1   (0)|
    -----------------------     Hope, It's readable.......
    I would have posted sample data and query but........I cant do that...:(

  • Merge two resultsets into one column

    Hi Guys,
    I have two SQL statements. The first returns 12 columns and the second returns 2 columns but both return the same number of rows. I can't seem to merge both the queries into a common query as the WHERE clauses in both are different. I have to dump the output into a table i created. The table has 14 columns. One column in both queries act as primary key and they help form the relationship between the resultsets. The column name is SUBSCR_CODE. Below you will find my SQL queries and the CREATE TABLE statement. Please could someone tell me how to achieve this.
    SELECT o.subscr_code,
    SUM(NVL(m.remain_capital,0)),
    SUM(NVL(m.remain_interest,0)),
    SUM(NVL(m.remain_debtor_fee,0)),
    SUM(NVL(s.remain_debtor_fee,0)),
    SUM(NVL(m.remain_costs_to_client,0)),
    SUM(NVL(m.remain_debtor_outlay,0)),
    SUM(NVL(s.remain_debtor_outlay,0)),
    SUM(NVL(m.debtor_exp_outlay,0)),
    SUM(NVL(s.debtor_exp_outlay,0)),
    SUM(NVL(m.vatbase_debtor_fee,0)),
    SUM(NVL(s.vatbase_debtor_fee,0)),
    NULL
    FROM kkrpt1 o,
    maincase m,
    subcase s
    WHERE o.maincase_id = m.maincase_id
    AND m.maincase_id = s.mc_maincase_id
    AND s.claim_type IN (6,7,8,9,10,11,13)
    AND s.subcase_no = 0
    AND m.closing_date IS NULL
    AND s.closing_date IS NULL
    GROUP BY subscr_code;
    SELECT o.subscr_code,
    SUM(NVL(a.remain_interest,0))
    FROM kkrpt1 o,
    amount a,
    maincase m,
    subcase s
    WHERE o.maincase_id = a.mc_maincase_id
    AND o.maincase_id = m.maincase_id
    AND m.maincase_id = s.mc_maincase_id
    AND s.claim_type IN (6,7,8,9,
    10,11,13)
    AND s.subcase_no = 0
    AND m.closing_date IS NULL
    AND s.closing_date IS NULL
    AND a.amount_type = 41
    GROUP BY subscr_code;
    CREATE TABLE kk_ajot_14 (
    subscr_code VARCHAR2(5),
    remain_capital_sum NUMBER,
    remain_inerest_sum_1 NUMBER,
    remain_debtor_fee_sum_1 NUMBER,
    remain_debtor_fee_sum_2 NUMBER,
    remain_costs_to_client NUMBER,
    remain_debtor_outlay_1 NUMBER,
    remain_debtor_outlay_2 NUMBER,
    remain_debtor_exp_outlay_1 NUMBER,
    remain_debtor_exp_outlay_2 NUMBER,
    vatbase_debtor_fee_1 NUMBER,
    vatbase_debtor_fee_2 NUMBER,
    remain_inerest_sum_2 NUMBER);

    No need to create table
    with
    sql_1 as
    (<first sql here>
    sql_2
    (<second sql here>
    select a.*,b.*
      from sql_1 a,sql_2 b
    where a.subscr_code = b.subscr_codeRegards
    Etbin

  • When I save a PDF as an Excel File, all of the data in the PDF is put into one column (AdobeXI)

    Hi, thanks for taking the time...
    I'm running a machine with Windows 7, Office 2010, and Acrobat XI.  When I save a specific PDF as an Excel workbook, all of the data in the original PDF is sorted correctly in four columns.  When the same task is performed on this file on another user's machine, all of the data is sorted into one column.  The user has the same versions of Windows, Office, and Acrobat.  I've attempted the "Repair installation" option but the problem persists.  Any suggestions?  Thanks again for helping,
    -E

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • How to aggregate columns into one in a bar chart

    Hello.
    Maybe the title of my question is not clear (i suspect as much) but here is my situation:
    I have a MDX dataset with this data
    Project, Turnover
    A,100
    B,120
    C,50
    D,20
    Plotting this in a  Chart produces the correct result: it gives me a chart with 4 columns.
    What i want however is to add all these values into one column and have the chart show only one as i will be adding more data series (via lookUp) that will show additional related data.
    Can this be achieved?

    Hi SergioJN,
    Based on my understanding, you want to create a bar chart. In the chart, multiple series are stacked on a column. Within the same category, you want to use Lookup() function to add related values of those series, then make these values stack on the second
    column. In your scenario, two columns exist within one category, and for each column, values of multiple series are stacked, right?
    In Reporting Service, when adding multiple values(in your scenario, it would be Project) to series and these values are grouped by one category, multiple values are stacked vertically on a column within one category. If these values are not grouped by the
    same category, it’s unable to make multiple series stack vertically on a column. If we add other related values in Values, these values will stack vertically on the original column based on series. So your requirement can’t be completely achieved currently.
    As we tested in our environment, within the same category, the related values will be stacked horizontally on the original values of each series within a bar. Please refer to screenshots below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Can we concatenate 2 columns of datafile into one column in sql loader

    Hi,
    Can we concatenate 2 columns of datafile into one column in sql loader?
    like
    Suppose there are two field in data file
    column1 - lastname value tiger
    column2 - firstname value scott
    Required result
    sould be concatenate of the two field into one database coulmn
    like name and value should be scott tiger.
    Thanks

    Or try this...
    My input file
    1,KARTHICK,PATTABIRAMAN,SOFTWARE
    2,VIJAY,RENGANATHAN,FINANCE
    3,VIMAL,KANTH,SALESAnd my control file.
    LOAD DATA
    INFILE 'EmpDetail.txt'
    BADFILE 'EmpDetail.bad'
    DISCARDFILE 'EmpDetail.dsc'
    INTO TABLE "EMPDETAIL"
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS     
      (NO,
      NAME1 BOUNDFILLER,
      NAME ":NAME1||' '||:NAME",
      DEPT) My table is.
    SQL> create table empdetail(no integer, name varchar2(50), dept varchar2(50))
      2  /
    Table created.Then i loaded the data.
    D:\karthick\Akiva\Look up\Akiva\Address Look Up>sqlldr sysadm/sysadm@akivanew empdetail.ctl
    SQL*Loader: Release 9.2.0.1.0 - Production on Mon Sep 15 12:23:42 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Commit point reached - logical record count 2
    Commit point reached - logical record count 3And the output is
    SQL> select * from empdetail
      2  /
            NO NAME                                               DEPT
             1 KARTHICK PATTABIRAMAN                              SOFTWARE
             2 VIJAY RENGANATHAN                                  FINANCE
             3 VIMAL KANTH                                        SALESThanks,
    Karthick.

Maybe you are looking for

  • BSOD Then Reboot Over and Over

    I've had my X200 XP SP3 since October 2008. I just started having a problem where I get the BSOD displayed for about 5 seconds, and then it reboots. The BSOD will occur even if I just boot up but do not even log in to Windows. I do not get a safe mod

  • Recording from tv

    is there any inexpensive solution to record from a tv? Besides the expensive iRecord product?

  • WE20, WE21 settings after SAP BW system copy

    Hi! I copied SAP BW system and have executed the following post installation settings: - BDLS (conversion of logical system names) - Program RS_BW_POST_MIGRATION When I go to tcode RSA1 on my new copied SAP BW system and try to reach source system I

  • PROVIDE...ENDPROVIDE

    Hi everybody, I am new to SAP-HR so kindly pardon me for asking such a simple question. My code is as follows: PROVIDE * FROM p0006     BETWEEN pn-begda AND pn-endda     WHERE p0006-subty = '1'. ENDPROVIDE. When I give the time period as up to today,

  • My iphone is not responsive during charging , when connected to the pc/ charger.suddenly shutdown and cannot open anymore.

    my  i phone 3g shut down  suddenly and cannot be open again. try to to connect to charger and pc but its not working.  nthe phone is not responsive , please help....