trigger to concatenate two fields in a table

Hello

I'm trying to concatenate two columns in a table and add to the third column in the same table, all the columns are
numbers, I want to write a trigger that is after insertion to do this... does anyone know how its done...

Thank you very much
Jessica

Hi, Jessica,.

Welcome to the forum!

Do you really need to store this concatenation? How you get these results in a normalized database is to store the numbers separately and comnbine them, when necessary, in the queries and reports. You can use a view to avoid repeating the same coiding over and over again.

If you really want to store the value, use a trigger INSERT or UPDATE BEFORE , like this:

CREATE OR REPLACE TRIGGER     table_x_biu
BEFORE     INSERT OR UPDATE
ON     table_x
FOR EACH ROW
BEGIN
     :NEW.column_3 := TO_CHAR (:NEW.column_1)
                || '-'
                || TO_CHAR (:NEW.column_2);
END;

I'm confused about your specific needs. Concatentaion is possible for strings.
If colonne_1 and column_2 are numbers, the trigger above will make string versions of these numbers, concatenate them (with a hyphen between them), and put the results in the column VARCHAR2 column_3.
So after this statement:

INSERT INTO  table_x (column_1, column_2, column_3)
       VALUES          (1,     2,       '9-8');

the new line will have column_3 = 1-2» (In this case, there is no point in explicitly implemented column_3, because the shutter always sets the value based entirely on colonne_1 and column_2.)

If you need more information, post CREATE TABLE, INSERT and UPDATE statements and that you want the table to contain after each INSERT or UPDATE.

Tags: Database

Similar Questions

  • Join two fields in a field for a view

    I am trying to create a view based on several tables.
    I have all the joins and everything that does very well and functioning properly.
    However, when I get to this step, it's when I start to run into problems.

    I want to just join (or concatenate) two fields with a period of characters between them.
    For example, if I take FirstName and LastName, then I want them to become a field called name, appearing as 'JOHN. DOE. "
    When I try to bring together them, the problem happens with the comma.

    An example of code that I did is here:

    BEGIN
    EXECUTE IMMEDIATE ' create view VIEW_LALALA
    like SOME t1. FirstName + "." + t2. Name, t1.something as something like OOO t2.ooo
    OF (tableFirstNames t1 t2 on t1.nameID = t2.nameID inner join tableLastNames)
    END;

    832667 wrote:
    I am trying to create a view based on several tables.
    I have all the joins and everything that does very well and functioning properly.
    However, when I get to this step, it's when I start to run into problems.

    I want to just join (or concatenate) two fields with a period of characters between them.
    For example, if I take FirstName and LastName, then I want them to become a field called name, appearing as 'JOHN. DOE. "
    When I try to bring together them, the problem happens with the comma.

    An example of code that I did is here:

    BEGIN
    EXECUTE IMMEDIATE ' create view VIEW_LALALA
    like SOME t1. FirstName + "." + t2. Name, t1.something as something like OOO t2.ooo
    OF (tableFirstNames t1 t2 on t1.nameID = t2.nameID inner join tableLastNames)
    END;

    to concatenate two string together do not use '+', but ' |. '

    SELECT FIRST_NAME: '. ' || LAST_NAME FROM EMP;

  • Compare two fields...

    I want to compare two fields in a table with two fields from another table...
    as (table1. Column1 and table1.column2) = (table2.column1 and table2. Column2)
    Any help to solve?

    Sorry guys!

    In fact, it is very simple... Likewise, it is the usual way to compare 2 tables as (table1.col1 = table2.col1 and table1.col2 = table2.col2).
    I can get my output desired with this condition itself... I wrongly thought it's complicated...

    In any case thanks for your precious time!

  • I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?

    Mr President.

    I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?

    formdoubletables.png

    the page source is

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core">
      <af:panelFormLayout id="pfl1">
        <af:group id="Group">
          <af:inputText value="#{bindings.VoucherId.inputValue}" label="#{bindings.VoucherId.hints.label}"
                        required="#{bindings.VoucherId.hints.mandatory}" columns="#{bindings.VoucherId.hints.displayWidth}"
                        maximumLength="#{bindings.VoucherId.hints.precision}"
                        shortDesc="#{bindings.VoucherId.hints.tooltip}" id="it1">
            <f:validator binding="#{bindings.VoucherId.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId.format}"/>
          </af:inputText>
          <af:inputDate value="#{bindings.VoucherDate.inputValue}" label="#{bindings.VoucherDate.hints.label}"
                        required="#{bindings.VoucherDate.hints.mandatory}"
                        columns="#{bindings.VoucherDate.hints.displayWidth}"
                        shortDesc="#{bindings.VoucherDate.hints.tooltip}" id="id1">
            <f:validator binding="#{bindings.VoucherDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.VoucherDate.format}"/>
          </af:inputDate>
          <af:inputText value="#{bindings.Credit.inputValue}" label="#{bindings.Credit.hints.label}"
                        required="#{bindings.Credit.hints.mandatory}" columns="#{bindings.Credit.hints.displayWidth}"
                        maximumLength="#{bindings.Credit.hints.precision}" shortDesc="#{bindings.Credit.hints.tooltip}"
                        id="it2">
            <f:validator binding="#{bindings.Credit.validator}"/>
          </af:inputText>
        </af:group>
        <af:group id="g1">
          <af:inputText value="#{bindings.Lineitem.inputValue}" label="#{bindings.Lineitem.hints.label}"
                        required="#{bindings.Lineitem.hints.mandatory}" columns="#{bindings.Lineitem.hints.displayWidth}"
                        maximumLength="#{bindings.Lineitem.hints.precision}" shortDesc="#{bindings.Lineitem.hints.tooltip}"
                        id="it3">
            <f:validator binding="#{bindings.Lineitem.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Lineitem.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.VoucherId1.inputValue}" label="#{bindings.VoucherId1.hints.label}"
                        required="#{bindings.VoucherId1.hints.mandatory}"
                        columns="#{bindings.VoucherId1.hints.displayWidth}"
                        maximumLength="#{bindings.VoucherId1.hints.precision}"
                        shortDesc="#{bindings.VoucherId1.hints.tooltip}" id="it4">
            <f:validator binding="#{bindings.VoucherId1.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId1.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Debit.inputValue}" label="#{bindings.Debit.hints.label}"
                        required="#{bindings.Debit.hints.mandatory}" columns="#{bindings.Debit.hints.displayWidth}"
                        maximumLength="#{bindings.Debit.hints.precision}" shortDesc="#{bindings.Debit.hints.tooltip}"
                        id="it5">
            <f:validator binding="#{bindings.Debit.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Credit1.inputValue}" label="#{bindings.Credit1.hints.label}"
                        required="#{bindings.Credit1.hints.mandatory}" columns="#{bindings.Credit1.hints.displayWidth}"
                        maximumLength="#{bindings.Credit1.hints.precision}" shortDesc="#{bindings.Credit1.hints.tooltip}"
                        id="it6">
            <f:validator binding="#{bindings.Credit1.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Particulars.inputValue}" label="#{bindings.Particulars.hints.label}"
                        required="#{bindings.Particulars.hints.mandatory}"
                        columns="#{bindings.Particulars.hints.displayWidth}"
                        maximumLength="#{bindings.Particulars.hints.precision}"
                        shortDesc="#{bindings.Particulars.hints.tooltip}" id="it7">
            <f:validator binding="#{bindings.Particulars.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Amount.inputValue}" label="#{bindings.Amount.hints.label}"
                        required="#{bindings.Amount.hints.mandatory}" columns="#{bindings.Amount.hints.displayWidth}"
                        maximumLength="#{bindings.Amount.hints.precision}" shortDesc="#{bindings.Amount.hints.tooltip}"
                        id="it8">
            <f:validator binding="#{bindings.Amount.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Amount.format}"/>
          </af:inputText>
        </af:group>
        <f:facet name="footer">
          <af:button text="Submit" id="b1"/>
          <af:button actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert"
                     disabled="#{!bindings.CreateInsert.enabled}" id="b2"/>     
          <af:button actionListener="#{bindings.Commit.execute}" text="Commit" disabled="#{!bindings.Commit.enabled}"
                     id="b3"/>
          <af:button actionListener="#{bindings.Rollback.execute}" text="Rollback" disabled="#{!bindings.Rollback.enabled}"
                     immediate="true" id="b4">
            <af:resetActionListener/>
          </af:button>
        </f:facet>
      </af:panelFormLayout>
    </ui:composition>
    
    
    
    

    Concerning

    Go to your VO Wizard, select the tab of the entity and to check if both the EO is editable or not.

    See you soon

    AJ

  • Why is the release of the trigger on all fields in a table?

    I have a trigger, and the text is the following. The trigger should write just the emplid in the PS_DM_ADDR_CHG_EMP table whenever there is an update to the fields
    Street1, street.2, STREET3, CITY, STATE, ZIP, COUNTRY in PS_PERSONAL_DATA. But some how it is written emplid in the PS_DM_ADDR_CHG_EMP, when everything starts on any field of the more than 50 fields of the table PS_PERSONAL_DATA. Is there a reason why this happens. I looked in all the other triggers and none of them wrote something on this Board I found a trigger on PS_PERSONAL_DATA for an insert or update or delete on all fields and it uses insert into another table. I couldn't see any other triggers associated with the table PS_PERSONAL_DATA. So, how to diagonize the question of finding what is originally to write the data in the custom table.
    CREATE OR REPLACE TRIGGER HT0P. PERSDATA_RAU
    AFTER UPGRADING FROM STREET1, STREET.2, STREET3, CITY, STATE, ZIP, COUNTRY
    ON PS_PERSONAL_DATA
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE
    v_Emplid ps_personal_data.emplid%type; -Used for the storage of EMPLID
    BEGIN
    v_Emplid: =: old.emplid;
    UPDATE ps_dm_addr_chg_emp one
    SET a.emplid = v_Emplid
    WHERE (((a.emplid = v_Emplid) and (v_emplid) length = 3))
    or ((substr (a.emplid, 1, 3) = substr (v_Emplid, 1, 3)) and (v_emplid) length = 4 and substr (v_emplid,-1, 1) to ("B", "C", "I, 'K', 'P', 'U'))
    or ((a.emplid = v_Emplid) and length = 4 (v_emplid))
    or ((substr (a.emplid, 1, 4) = substr (v_Emplid, 1, 4)) and length (v_emplid) = 5 and substr (v_emplid,-1, 1) to ("B", "C", "I, 'K', 'P', 'U'))
    or ((a.emplid = v_Emplid) and length (v_emplid) = 5)
    or ((substr (a.emplid, 1, 5) = substr (v_Emplid, 1, 5)) and length (v_emplid) = substr (v_emplid, 1, -1) and 6 in ("B", "C", "I, 'K', 'P', 'U'))
    or ((a.emplid = v_Emplid) and length = 6 (v_emplid))
    or ((substr (a.emplid, 1, 6) = substr (v_Emplid, 1, 6)) and length (v_emplid) = 7 and substr (v_emplid,-1, 1) to ("B", "C", "I, 'K', 'P', 'U')));
    IF SQL % NOTFOUND THEN
    INSERT INTO ps_dm_addr_chg_emp (emplid)
    VALUES (v_Emplid);
    END IF;
    END;

    Hello

    It would be helpful if you could post code formatted using

     tags. Learn more from FAQ
    
    To test your trigger - You may want to create a temparory table and have an insert statement for the temp table in your trigger and test it by updating other columns of your main table. 
    
    Also you may want to ensure it is not the UPDATE statement which is causing the trouble for you by updating some unintended rows...
    
    Regards,
    Rakesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • concatenate two columns in OFA

    Dear friends,

    I have a Page OFA developed with advanced table, I want to concatenate two first
    columns. is it possible that I can achieve this?

    Note: I use a trigger without entity object (VO after search)

    Please, share your ideas.

    Thanks in advance,
    Keerthi.k

    HAD,

    In advance table region how do i select the newly created column , i mean concatenated column.
    I think in property inspector it will ask for " select view attribute " . 
    

    Suppose your new query is something like
    Select Attribute1 | Attribut2 AS Concat from table_name.

    For this column, you must select Concat in ' select view attribute.

    Kind regards
    GYAN

  • concatenate the data in 2 tables in a third table as well as in CONCATENATE strings

    Hello. as the title says, I wish to only concatenate the data in 2 tables in a similar third table that concatenate strings don't. All tables should be 1 d. For example, suppose that there is 1 table with the following: 1. 2; 3; 4 and table 2 with:; b; c; d. I would like a table 3 either 1 a, 2 b, 3 c, 4 d. Now this could be done easily with above mentioned concatenate strings, then table construction. but table 1 and 2 have something like 150 items. Rather painful. Any ideas?

    Hold arrays of two strings in a loop for example, concatentate the strings inside the loop and run the result réécrirait array3.

    Autoindexing manages table manipulations.

    MIke...

  • Dynamic calculation of the number of days between two dates in a table

    Hello

    I'm working on request where I dynamically calculate the number of days between two dates in a table.

    The calculation must be dynamic, i.e., when I recover the Start_date and End_date and move to the field following (call_duration) in the same row, the difference must be calculated dynamically in this area and make sure the field read-only.

    APEX version: 5.0

    Hi BO123,

    BO123 wrote:

    Hello

    I'm working on request where I dynamically calculate the number of days between two dates in a table.

    The calculation must be dynamic, i.e., when I recover the Start_date and End_date and move to the field following (call_duration) in the same row, the difference must be calculated dynamically in this area and make sure the field read-only.

    APEX version: 5.0

    one of the way to do this by calling ajax on change of end_date.

    See the sample code given below to fetch the resulting duration and making the field read only after calculation

    Step 1: Change your page

    under CSS-> Inline, put the code below

    .row_item_disabled {
      cursor: default;
      opacity: 0.5;
      filter: alpha(opacity=50);
      pointer-events: none;
    }
    

    Step 2: Create on demand Ajax process I say CALC_DURATION

    Please check Procces Ajax, see line 6.7 How to assign a value to the variable sent by ajax call

    Declare
      p_start_date  date;
      p_end_date    date;
      p_duration number;
    Begin
      p_start_date  := to_date(apex_application.g_x01);
      p_end_date    := to_date(apex_application.g_x02);
    
       --do your calculation and assign the output to the variable p_duration
      select p_end_date - p_start_date into p_duration
        from dual;
    
      -- return calculated duration
      sys.htp.p(p_duration);
    End;
    

    Step 3: Create the javascript function

    Change your page-> the function and the declaration of the Global Variable-> put the javascript function

    You must extract the rowid in the first place, for which you want to set the time, see line 2

    assuming f06, f07 and f08 is the id of the start date, and end date columns respectively, and duration

    See no line no 8 how set the value returned by the process of ajax at the duration column

    Replace your column to the respective column identifiers in the code below

    function f_calulate_duration(pThis) {
      var row_id  = pThis.id.substr(4);
      var start_date = $('#f06_'+row_id).val();
      apex.server.process ( "CALC_DURATION", {
      x01: start_date,x02: $(pThis).val()
    }, { success: function( pData ) {
    // set duration to duration column
    $('#f08_'+row_id).val(pData);
    // disable duration column
    $("#f08_" + row_id).attr("readonly", true).addClass('row_item_disabled'); }
    });
    }
    

    Step 4: choose the end date call the javascript function

    Go to report attributes-> edit your Date column end-> column-> Attrbiutes element attributes-> put the code below

    onchange="javascript:f_calulate_duration(this);"
    


    hope this helps you,

    Kind regards

    Jitendra

  • Need help to split the string into two fields

    Can someone share your thoughts by dividing the prod_info string below into two fields

    For example:-TABLE of PROD

    SOURCE TABLE

    SNO PROD_INFO
    120 OZ SIMILAC
    2HW PRO 10
    3REX 10 OZ
    4AAA 10
    5BBB 2000
    6CCC 10 LB
    7DDD 2021
    8EE 12 KG
    9KK 11111
    10ZZ ABC FAC 11
    11RKW DD CC 12 OZ
    1212KJ 12 LBS.

    EXPECTED RESULTS

    SNO PROD_INFO PROD_VAL
    1SIMILAC20 OZ
    2HW PDR10
    3REX10 OZ
    4AAA10
    5BBB2000
    6CCC10 LB
    7DDD2021
    8EA12 KG
    9KK11111
    10AEC ABC ZZ11
    11RKW DD CC12 OZ
    1212KJ12 LBS.

    with

    as Prod

    (select 1 sno, "SIMILAC 20 OZ" prod_info of all the double union)

    Select 2, 'HW PDR 10' from dual union all

    Select 3, 'REX 10 OZ' from dual union all

    Select option 4, "AAA 10' from dual union all

    Select 5, "BBB 2000"of the dual union all

    Select 6, 'CCC 10 LBS' double union all

    Select 7, 'DDD 2021' from dual union all

    Select 8, 'EE 12 KG' from dual union all

    Select 9, 'KK 11111' Union double all the

    choose 10, "ZZ ABC FAC 11' from dual union all

    Select 11, 'CC DD RKW 12 OZ' from dual union all

    Order 12, '12KJ LB 12' double

    )

    Select sno,

    (prod_info regexp_substr(prod_info,'^((\d*|\w*)[^[:digit:]].*) \d',1,1,null,1).

    regexp_substr (prod_info,' prod_value (\d+.*)$',1,1,null,1))

    Prod

    SNO PROD_INFO PROD_VALUE
    1 SIMILAC 20 OZ
    2 HW PDR 10
    3 REX 10 OZ
    4 AAA 10
    5 BBB 2000
    6 CCC 10 LB
    7 DDD 2021
    8 EA 12 KG
    9 KK 11111
    10 AEC ABC ZZ 11
    11 RKW DD CC 12 OZ
    12 12KJ 12 LBS.

    Concerning

    Etbin

  • Insert data from a field in another field in another table


    I am trying to copy the records from the source table

    in the dgpercentagedatachart table

    the domain name is feederid

    So that's what I came:

    INSERT INTO dgpercentagedatachart (feederid)

    Select source.feederid

    Of the source;

    This is the error I get

    Error from the 1 in the command line:

    INSERT INTO dgpercentagedatachart (feederid)

    Select feederid

    Source

    Error report:

    SQL error: ORA-01400: cannot insert NULL into ("GISELECTRIC". "" "" DGPERCENTAGEDATACHART '. "" OBJECTID')

    01400 00000 - "impossible to insert a NULL value in (%s)."

    I check that the two fields accept the NULL value, and they both said YES.

    What can I do?

    Excellent example. I get it.

    But, how can I put the id of object with it?

    Object_Id is the feeder_id # unique

    You can question him in the same table:

    INSERT INTO dgpercentagedatachart (feederid, objectid)

    Select source.feederid, source.objectid

    Of the source;

  • Validation of two fields

    Hello.

    I use JDeveloper 11.1.1.7.0

    I have a simple form to create a table with 3 fields: ID, VALUE_1 AND VALUE_2. All fields are mandatory.

    I've included (not programmatically) validations for all areas, with personalized messages, but I need to include a new validation for the last two fields.

    I need to check that VALUE_2 is superior to VALUE_1.

    How can I complete this check?

    Is it possible to do not in one program by the way?

    Any help would be much appreciated.

    Thank you.

    Hello

    I guess you want to put validators at the level of the right business components? If this is the case, you could add a validator to your VALUE_2 with the following expression;

    newValue > VALUE_1

    Concerning

  • Select all dates between two fields txt. How?

    In a slider form 6i, I need to select all dates between two dates provided. I have two fields text Fld1 and Chp2 with the data type date. There is no table behind the two fields.
    For example
    ': FLD1: = MARCH 1, 2013;
    ': CHP2: = MARCH 10, 2013;

    Now I have to choose all dates between 01-mar-2013 and 2013-mar-10 '. How to do?

    Gul says:
    In a slider form 6i, I need to select all dates between two dates provided. I have two fields text Fld1 and Chp2 with the data type date. There is no table behind the two fields.
    For example
    ': FLD1: = MARCH 1, 2013;
    ': CHP2: = MARCH 10, 2013;

    Now I have to choose all dates between 01-mar-2013 and 2013-mar-10 '. How to do?

    As'salamualikum Gul

    Try this

    SELECT TO_DATE('01-MAR-2013', 'DD-MON-RRRR') - 1 + rownum AS d
    FROM ALL_OBJECTS
    WHERE TO_DATE('01-MAR-2013', 'DD-MON-RRRR') - 1 + rownum BETWEEN TO_DATE('01-MAR-2013', 'DD-MON-RRRR') AND TO_DATE('10-MAR-2013', 'DD-MON-RRRR')
    

    Hope this helps

  • Returns the lowest value of two fields

    Hello

    I have two domains that users manually enter in a form.  Value1 and Value2.

    Someone at - it suggestions on the best way to use JavaScript to return the lowest value of the two fields?

    Thank you

    Natalie

    I think I misunderstood what you mean by any, I thought you wanted the calculated value to be None. The two fields value digital formats and modify the script for:

    Custom calculate script

    (function () {}

    Initialize the array

    aNums var = [];

    Get the field values as strings

    var s1 = getField("Value1").valueAsString;

    var S2 = getField("Value2").valueAsString;

    Convert values to numbers if not empty and add to the table

    If aNums.push(+s1) (s1);

    If aNums.push(+s2) (s2);

    Set the value of this lesser field of entries

    If both are blank, this field blank

    Event.Value = aNums.length? Math.min.Apply (null, aNums);:

    })();

  • concatenate the fields of the record type

    Hello

    Is it possible to concatenate the fields of the record type?, example
    declare 
     TYPE customer_sales_rectype IS RECORD
          (campo1 char(3),
          campo2  char(3),
          campo3  char(3));
    
             
      TYPE ZZZ IS RECORD (kkk customer_sales_rectype);
          x customer_sales_rectype;
         
    begin
      x.campo1:='000';
      x.campo2:='aaa';
      x.campo3:='BBB';
    end;
    I have a table
    ID_REPORT NUMBER                                   
    ID_LINE     NUMBER                                  
    DT_FILE  DATE           Y                        
    DS_LINE     VARCHAR2(2048) Y       
    My charly had more than 50 columns and unavoidable to concatenate the columns, example:
    select column001 ,
           ';' PV1,
           COL2,
           COL3
           COL4,
         ';' PV2,....ETC
    FROM MY TABLES
    I think that movement query result in a variable of type record that I would can insert in the table in the column is DS_LINE some transformatcion.

    Is it possible without using COL1 | PV1. COL2. COL3 | COL4 | PV2... etc.


    Thanks in advance
    using 9.2.02

    It's pretty easy to write a function for this. Here's a 'coffee time ': implementation

    create or replace function multi_concat
        (p_args sys.dbms_debug_vc2coll)
        return clob
    as
        rv clob;
    begin
        dbms_lob.createtemporary(rv, TRUE);
        for i in p_args.first .. p_args.last
        loop
            dbms_lob.writeappend(rv, length(p_args(i)), p_args(i));
        end loop;
        return rv;
    end multi_concat;
    /
    

    And the proof of coffee is in the dip of the ring:

    SQL> select multi_concat ( sys.dbms_debug_vc2coll ( ('Red Fish', 'Blue Fish', 1, 'Fish',2,'Fish'))
      2* from dual
    
    MULTI_CONCAT(SYS.DBMS_DEBUG_VC2COLL('REDFISH','BLUEFISH',1,'FISH',2,'FISH'))
    --------------------------------------------------------------------------------
    Red FishBlue Fish1Fish2Fish
    
    SQL> 
    

    I add a member TO_STRING function to your type and use something like the above, implement.

    You can also use the data dictionary to generate a string that connects the attributes of your type with the concatenation operator.

    Cheers, APC

  • How we concatinate two fields in OWB?

    I call source table EMPLOYEE. There are two fields name and surname of the employee table. The target table is DIM_EMPLOYEE.

    I need concatinate FIRST_NAME and LAST_NAME when copying data from EMPLOYEE to DIM_EMPLOYEE.

    What a transformation I use here to accomplish the tasks?

    Any help is appreciated.

    Thank you and as always this forum is useful and hellpful.

    Concerning

    Hello
    instead use Expression operator, of the transformation link FIRST_NAME and LAST_NAME group attributes of this operator and for the output of entry attribute specify expression as

    FIRST_NAME || LAST_NAME
    

    (it is preferable to use the expression builder that correctly adds the name of Group of entry attributes)

    [url http://download.oracle.com/docs/cd/B28359_01/owb.111/b31278/ref_data_flow_opers.htm#i1175750] Any operator expression

    Kind regards
    Oleg

Maybe you are looking for

  • have no problem answering not with chrome

    I like Firefox better than chrome - but when I have the problem not responding, after 15 minutesI switch to Chrome and do not have this problem - I hope someone can help with this.Thank you

  • Qosmio X 300 - 14O - FN keys does not work

    Hello I bought a Toshba Qosmio X 300 - 14O to Germany and I installed Windows 7 64-bit. The problem is that my fn key is not working. I installed all the drivers I found. I looked upward for this problem on several forums and no solution I found may

  • ReadyNAS NV + V1 Frontview page broken (again) :-(

    https://community.NETGEAR.com/T5/using-your-ReadyNAS/ReadyNas-NV-v1-FrontView-page-broken/m-p/945237 It happened again, I tried to download the logs and frontview page became corrupted, as SIN by answering the ping requests and is displayed in raidar

  • Had to reinstall XP, now Windows updates gets 0x8024400A error number

    I just had to use the recovery discs to reinstall windows ZP in my computer. I installed service pack 2 on a drive. and now I can't get service Pack3 to download. It gives me the message, {the site has encountered a problem and cannot not displat the

  • Windows Live Mail error ID: 0x800CCC0E

    Original title: Windows Live Mail. Windows Live Mail will not work to my e-mail address get yahoo,. Can't send or receive messages on behalf of Yahoo.co. The connection to the server has failed. Server: 'pop.mail.yahoo.co.uk '.Windows Live Mail error