Copy the data from two rows together in a new line

Hello everyone.

I have a question for copying data from two lines together in a new third line.

See this short example:

This is the current situation. The lines STATE_1 and STATE_2 contain different information separate.

In the past data were recorded at random in one of these lines.

It's the state table:

ID Cust_id STATE_1 STATE_2 STATE_3
188Customer is waiting.Call since yesterday.
211Mr. Smith, no answer.Wait until December
311Pls Create PO.Old PO has been cancelled
45No access to the system.

Now, everything must be recorded in the STATE_3 void, but I also need than the old entries from the past which must also be copied together in STATE_3

Like this:

ID Cust_id STATE_1 STATE_2 STATE_3
188Customer is waiting.Call since yesterday.Customer is waiting. Call since yesterday
211Mr. Smith, no answer.Wait until December.Mr. Smith, no answer. Wait until December.
311Pls Create PO.Old PO has been cancelled.Pls create in. old PO was canceled.
45No access to the system.No access to the system.

Y at - it an SQL-easy order?

Thanks for any help.


What:

update set state_3 = state_1 State | » '|| state_2;

?

Tags: Database

Similar Questions

  • PowerVault MD1000: Attached directly slow to copy the data from storage.

    Hi all

    I have a powervault MD1000 attached to a PE2900 using scsi. When I write for the PV everything is ok, but when I want to read it, for example copying the data from it, he grinds the server stops and usually falls!

    can someone advice could be what the problem?


  • Copy the data from CollaborateSync to the other pc

    Because Acrobat crashes sometimes, I would like to copy the data from CollaborateSync to a PC Backup. This means that I have shared a pdf with PC A one form I'd like to get answers on the PC B, too.

    I tried to copy the Synchronizer-folder "documents and settings" - folder but I can't get answers.

    What information should I copy can I geht PC B answers?

    Klaus

    Find the file "Workflows" in Acrobat under Documents and Settings folder. It is located inside the folder "Collab. If this file is missing, copy the folder "Synchronizer" will not do anything good.

    In addition, copy "Forms" folder as well.

  • I want to loop through the data from two different tables using for loop where the query should be replaced at runtime, please help me

    I have the data into two table with the structure of similar column, I want to loop through the data in these two tables

    based on some condition and runtime that I want to put the query in loop for example, the example is given, please help me

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    declare

    l_statement varchar2 (2000);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: =' select * ab ';

    on the other

    l_statement: =' select * from bc';

    end if

    I'm in execute immediate l_statement - something like that, but I don't know

    loop

    dbms_output.put_line (i.a);

    end loop;

    end;

    Something like that, but this isn't a peace of the code work.

    Try this and adapt according to your needs:

    declare

    l_statement varchar2 (2000);

    c SYS_REFCURSOR;

    l_a number;

    l_b varchar2 (20);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: = "select a, b, AB;

    on the other

    l_statement: = "select a, b from bc;

    end if;

    --

    Open c for l_statement;

    --

    loop

    extract the c in l_a, l_b;

    When the output c % notfound;

    dbms_output.put_line (l_a |') -' || l_b);

    end loop;

    close c;

    end;

    /

  • Copy the data from the selected record line

    Hello I use Oracle Forms Builder 10g.

    I want to copy a line from a record that populated the request but that the first lines can be copied when I click on it. I want to know how to copy the specific line-specific data when I click it. Thank you.

    Untitled 1.png

    using

    GO_RECORD(:SYSTEM.) MOUSE_RECORD);

    the current selected row updates as you click mouse a line. «: SYSTEM.» MOUSE_RECORD' gives you the line number of the recording, you click and it gives a value of '0' char if you click outside the record block.

  • How to extract the data from each row

    Hello

    I wrote a CQL query with lines 3 records. Is it possible in this query to fetch the first record and last present specific field values.

    for example,.
    Column: c1, c2, c3
    Record1: id1, 2,3, 3.5
    Record2: id2, 2.3, 3.6
    record Record3: id21, 2.3, 3.7
    record Record3: id25, 2.3, 3.9

    I need to get the average of three rows of c3 and get the first record id and last record ID.

    Output 1: id1 id1, avg (c3) = 3.5
    output2: id1, id2, avg (c3) = 3.55
    Output3: id1, id21, avg (c3) = 3.6
    output4: id2, id25, avg (c3) = 3.733

    Please help on above.

    Thank you
    Sri

    Hello

    Not quite sure that understand what is the problem that you see.

    Here's what I got when I ran the query:

    Input data:

    C1, c2, c3
    ID1, 2,3, 3.5
    ID2, 2.3, 3.6
    id21, 2.3, 3.7
    ID25, 2.3, 3.9
    DELAYED26, 2.3, 4.0
    ID27, 2.3, 4.1

    Query:

    Select T.firstC1, T.lastC1, S1 T.avgC3
    () match_recognize
    measures
    First (M1. C1) as firstC1,
    M2. C1 as lastC1,
    AVG (C3) as avgC3
    all matches
    model (A B? C ? | D + C)
    subset m1 m2 = (A, B, C) =(A,D)
    define
    At as prev (A.c1) is null.
    B as (count (*) = 2),
    C as (count (*) = 3),
    D like ((prev (D.c1) is not null) and (count (*))<>
    ) t

    Output:

    firstc1, lastC1, avgC3
    ID1, id1, 3.5 - avg only trace
    ID1, id2, 3.55 - avg from two records
    ID1, id21, 3.6000001 - avg from three recent reviews
    Id2, id25, 3.7333336 - avg from three recent reviews
    id21, delayed26, 3.8666668 - avg from three recent reviews
    ID25, id27, 4.0 - average last three book reviews

    This output confirms with you that mentioned the expected results?
    Can you please run this query as it is on the above mentioned input data and check by yourself?
    If you don't get the desired result, please paste the input data provided, complete the text of the query and the outputs.

    Concerning

  • How to copy the data from Palm Desktop on a PC running Windows 8.1

    If like me you still find the Palm Desktop data (addresses, calendar, notes, etc.) handy and use it long after throwing the combined capacity and 'sync', you can see this is useful.  I bought a new PC running Windows 8.1 and had problems with data transfer due to a problem as I understand it, which does not exist in Windows XP, Vista or 7 versions.  Here is a summary of a way to easily transfer data from these earlier versions if you have a USB flash drive (or Dropbox, Google Drive, whatever) very convenient:

    (1) Download Palm Desktop 6.2 or 6.2.2 to your new PC.  Give a user name exactly as it exists in the database from your old PC.  This name will serve as Office Automation to create a folder name of six letters (an abbreviated version of your name) to hold the data that Palm Desktop will turn upward.  Wait a few seconds for this to happen, and then close the application on your new desktop.

    (2) in your old PC you want to transfer data from, find the folder named "Palm OS Desktop" which should exist in 'Documents' under path of folder and subfolders 'Users' as > your subfolder name > Documents in Windows 7 (can also be Vista) or may be under "Documents and Setting" folder in Windows XP.

    (3) in this folder "Palm OS Desktop" search this subfolder of six letters of your name and select this whole subfolder and select 'Copy' or Ctrl-C

    (4) locate the same name of subfolder in your new PC (which will have data zero), delete and then 'paste' the subfolder you "copied" in the exact same location.  If you did it right, Viola!  Your new desktop PC should display all the transferred data, once you open the application again.

    Most of the same procedure works with PC Windows 8.1 (probably also Windows 8).  What I found different is that the subfolder of data created under "Palm OS Desktop} had 7 instead of 6 characters with a"0"(zero), added as the last character.  When finally, you copy and paste this subfolder in the new PC there so rename and add "0" for the Palm Desktop to locate these data.

    I hope this helps.

    Data in XP is located in C:\Program Files\Palm (or PalmOne) \ < your HotSync name truncated > \Backup.

    HotSync for Win8 has been available for quite a while now!  See the post at the beginning of this section called "64-bit Windows USB drivers for Palm Desktop" for instructions and driver downloads.

    Palm Desktop 4.x and 6.2.2 use different database formats - 6.2.2 went to .mdb as an extension.

    Best way to migrate data is to perform a HotSync on the new machine, or use the built-in in Palm Desktop Export/Import option.  Export the addresses and calendar files, and then copy those of the new machine.

    The import option to retrieve data.

    WyreNut

  • How to copy the data from the indicator table 1 d to the Clipboard

    Is it possible to copy data from table 1 d indicator to the Clipboard as a text and for more than one cell?

    I use LV8.6.

    Leszek

    Sorry, I wasn't sure if it was available in 8.6, apparently not.

    You could create an indicator of fine print and use 'picture to a worksheet string' to complete. Now, you can just cut & paste the text instead.

  • copy the data from the columns box

    Hi all, I have multicolumn listbox and I deleted all the lines both vertical and horizontal lines and columns headers.when while, I run my vi, some string data are introduced into the list box. However when I try to copy a line of string in the drop-down list, I am unable to do (I can't select a line,... the idea is to select a row in the list box so that I can paste it somewhere else... That's how am supposed to allow some feature of the list box to be able to do this... any help? Thanks already

    Hello

    If I understand your problem, you want to copy the values of time and the description at once and paste the entire line in a txt for example, no? Unfortunately, the listbox is as an array of 2D channels and each field is a different value of this table 2D. You can copy a value at the time when the VI does not RUN otherwise you can use a property node to display the name of items and that the copy and paste values (always a time value) also using the VI.

    I hope the information is useful for your application

    Concerning

    Mario

  • Copy the data from USB key for comments

    Dear all

    How can I put a USB and copy some data and programs from other PC to a guest VMS on ESX 3.5?

    You can also buy USB hubs attached ethernet. With these, install you an agent on the virtual machine and she moved the USB stick as if it was connected directly to the virtual machine.

    See:

    AnywhereUSB

    http://www.Digi.com/

    Belkin network USB hub

    http://gadgets.fosfor.se/Belkin-network-USB-hub

    http://reviews.CNET.com/networking-and-Wi-Fi/Belkin-network-USB-hub/4505-3243_7-32467513.html

  • Need to copy the data from my laptop to my flash drive

    : Original title: I'm blonde so someone could please help me but can explain in English :} thanks

    I need to know how to get the information from my laptop to my USB key or its data traveler called?   I have to get this figured out as soon as possible.

    Hello

    Assuming that you are referring to Kingston Data Travler see the following how to:

    http://www.Kingston.com/Flash/dt_ii.asp
    http://www.Kingston.com/support/
    http://www.Kingston.com/support/howtodt/default.asp

    Good luck

    Donald Anadell

  • I would like to know if we can copy the data from one scenario to another scenario for several years. See the example below

    For example, I would like to take our entry scenario Plan for FY16 and copy this data into our Long Range Planning scenario in the years 2016,2017,2018,2019,2020.

    So I know I can do this script calc to copy a year but what can do to copy several years if possible

    ESS_LOCALE English_UnitedStates.Latin1@Binary
    UPDATECALC OFF SET;
    SET CLEARUPDATESTATUS AFTER;

    Fix (& PlanYr)

    ClearData "LRP Input;

    DATACOPY "Entry Plan" to THE "LRP Input;
    "Entry plan";


    ENDFIX

    Yes--but with several instructions DATACOPY (one for each year of the 'target').

    You can always make your CLEARDATA in a FIX on every year, but then put the DATACOPYs after the ENDFIX.

  • How to add the values of the data from two lines

    We enter the data as

    name values
    ==== ====
    a 100
    b 125
    c 140

    We need output of

    total of the Name values
    ==== ==== ====
    a 100 100
    b 125 225 (100 + 125)
    c 140 365 (225 + 140)

    How do I solve this problem... ?

    1008318 wrote:
    We enter the data as

    name values
    ==== ====
    a 100
    b 125
    c 140

    We need output of

    total of the Name values
    ==== ==== ====
    a 100 100
    b 125 225 (100 + 125)
    c 140 365 (225 + 140)

    How do I solve this problem... ?

    Hello

    SQL> with test_data
      2  as
      3  (
      4  select 'A' name,100 val
      5  from dual
      6  UNION ALL
      7  select 'B',125 from dual
      8  UNION ALL
      9  select 'C',140 from dual
     10  )
     11  select name,val,sum(val) OVER(order by val) total from test_data;
    
    N        VAL      TOTAL
    - ---------- ----------
    A        100        100
    B        125        225
    C        140        365
    

    Kind regards
    Claudy K

    Published by: Claudy K on May 28, 2013 02:52

  • copy the data from the old HARD drive to a new HARD drive

    have old hard drive with data and op sys - must copy old hard drive data on the new hard drive WITHOUT copying op sys

    a simple way is the best way.

    Help, thanks

    Hello

    1. purchase a USB hard drive enclosure to put the old drive hard in > plug it into the new computer.

    Here is a video on how to do it:

    http://www.YouTube.com/watch?v=SLLQusrmzvI

    2 slave the old hard drive in the new computer, so a new office.

    http://www.WikiHow.com/configure-master-and-slave-in-BIOS-for-two-hard-drive-disk-in-a-single-system

    See you soon.

  • How to copy the data from the CLOB on Varchar2?

    Hi all
    I have a CLOB field with data, I want to copy all the ot its data to another field of varchar2 to the same table. How, please?
    I think that I should use the Update statement, but how?

    Note: Iam using DB Oracle 10g R2

    You can just do a simple UPDATE, but if you have the adta in your CLOB which is too big to fit in your column VARCHAR2 column, you will not be able to get it all:

    UPDATE my_table SET my_varchar2_column = SUBSTR(my_clob_column,1,[size of my_varchar2_column];
    

Maybe you are looking for