How can I do a new insert data in the other table extrancting?

Hello, I'm looking how to do an insertion of two tables save values and apply to other tables like this:

The insert I'm looking for is something like this:

Have two tables, the first table is emp1 and contains the column: data 1 and 2 with line of data1: 1234 and line data 2:5555, therefore,.

I want to create an insert on a new table called (emp2) that contain the data in the column: data 1, data 2 (from the first table demo1), data 3, data 4, etc.

How insert again I can put / call data from another table insert in this table (emp2).

I don't know if my example is correct (my English is very bad).

This is an example: (sorry for the points).

table EMP2:

1 data... 2 data... 3 data... data 4... data 5
(from emp1)... (from emp1)... 8534... 2347... 4544

Thanks for the help.

Published by: user10182692 on 24-May-2009 08:39

Published by: user10182692 on 24-May-2009 08:40

Published by: user10182692 on 24-May-2009 08:45

Welcome! on the forum.

You can include the code and data in the {code} tags

If I'm good, and I know what is your condition

insert into emp2 ( data1, data2)
select data1, data2
from emp1

SS

Tags: Database

Similar Questions

  • How can I do each new tab go to the homepage even when I open it?

    How can I do each new tab go to the homepage even when I open it? I want that every new tab automatically go to my iGoogle page.

    See: https://addons.mozilla.org/en-US/firefox/addon/2221

  • How can I install a new motherboard and keep the version OEM of Windows active?

    Windows and the new motherboard OEM

    I bought a computer with a version of Vista OEM.  Since then, I've upgraded to Windows 7.

    My motherboard needs to be replaced.  I understand that the Windows OEM is related to the motherboard.

    How can I install a new motherboard and keep what is on my current hard drive?

    See if this helps:

    "How to replace the motherboard on a computer that is running Windows Server 2003, Windows XP, or Windows 2000"
      <>http://support.Microsoft.com/kb/824125 >

    HTH,
    JW

  • cannot insert data into the PRODUCT_USER_PROFILE table

    I've connected to the database as the sysdba, which is installed on VMWARE. database is oracle 11g.
    whenever I insert data in the table PRODUCT_USER_PROFILE that the database returns 1 row inserted and then when I try to show everything on the table before or after the statement commit is made the database returns "No. LINES SELECTED.

    guys any idea about this problem...

    Hello

    Try to connect as a system and make the insert and check. Always think about the issue.

    -Pavan Kumar N
    Oracle 9i / 10g - OCP
    http://oracleinternals.blogspot.com/

    Published by: pounet on January 4, 2010 16:29

  • Domain! = Insert then in the other Table

    Hello
    I can't figure out how to create a trigger that inserts data based on cases an old.field! = new.field. If the field has been changed to
    a tbl_test table then insert this file into the other tbl_test_history of the table. It's a little different since I want to insert a record if an update
    has taken place. The update will still take place at tbl_test, but I want an insert will be held at tbl_test_history.
    CREATE OR REPLACE TRIGGER AU_INSERT_TEST_HISTORY 
      AFTER UPDATE
      ON TBL_TEST   FOR EACH ROW
    WHEN (
        OLD.Orange != NEW.Orange
     OR OLD.Apple != NEW.Apple
          )
    BEGIN
    INSERT INTO TBL_TEST_HISTORY
     (ORANGE,
      APPLE
      BANANA,
      GRAPE
    )
      select ORANGE,
             APPLE
             BANANA,
             GRAPE
    FROM TBL_TEST, TBL_TEST_HISTORY
      WHERE  TBL_TEST.PK_TEST_ID = TBL_TEST_HISTORY.PK_TEST_ID;
    END AU_INSERT_TEST_HISTORY;
    /
    I have a separate trigger that will insert records from tbl_test to tbl_test_history. This trigger compiles without error but when I
    create a record in tbl_test I have an error message. I don't know if the syntax is correct, can someone help me with this?

    My bad. I put the colon: in the when clause. They were not there in your code. I usually use an if condition, which is a little different.

    I added a NEW logic to also consider the comparison of NULL values.

    CREATE OR REPLACE TRIGGER AU_INSERT_TEST_HISTORY
      AFTER UPDATE  ON TBL_TEST
      FOR EACH ROW
    BEGIN
      if nvl(:old.ORANGE,'xxx') != nvl(:new.ORANGE,'yyy')
         OR nvl(:old.APPLE,'xxx') != nvl(:new.APPLE,'yyy')
      then
        INSERT INTO TBL_TEST_HISTORY
         (ORANGE, APPLE, BANANA, GRAPE)
        values (:new.ORANGE,
                 :new.APPLE,
                 :new.BANANA,
                 :new.GRAPE);
      end if;
    END AU_INSERT_TEST_HISTORY;
    / 
    

    In addition, you can consider making trigger a trigger AFTER INSERT or UPDATE.

    Then you would also put the values inserted early in your history table.

    Published by: Sven w. August 9, 2012 16:14

  • How can I restore my old profile data for the reinstalled firefox

    had a problem with the opening of firefox and he suggested that I install a new version, I did and I have an "old data firefox" file. My question is how can I reinstall the old file and all the stuff that's about it.

    A 'Old Firefox Data' folder on the desktop is created when you reset Firefox.

    You should be able to copy the data selected from this folder to the current Firefox profile folder.

    For bookmarks that you would need to file places.sqlite or possibly restore bookmarks from a JSON backup in the folder bookmarkbackups.

    You can use this button to go to the Firefox profile folder:

    See also:

  • How can I get a new tab automatically opens the display of the google search page?

    When I open firefox, I see my google home page, but when I opened a new tab it shows the homepage of searchnu. It used to be empty and I don't know how or why he changed it, but can you tell me how to get my tabs automatically opens showing www.google.co.uk please?

    COR - el, please stop automatically repost these unnecessary links and provide some specific measures, provable and reliable to get rid of the searchnu.

  • How can I write snapshot of my data to the file measured every 5 seconds

    Hello

    I try to take a snapshot of my stream once every 5 seconds and write it to a. File LVM. I have problems with the VI "write to a measurement file. The pace at which it writes data to the file seems to be dictated by the 'Samples to Read' parameter in the DAQ assistant. I tried placing the VI 'Write in a file measure' within a business structure and the launch of the structure to deal with a "time up" VI. As a result only in a delay of 5 seconds before the insiders 'Write in a file as' VI. Once the VI 'Write in a file as' is launched, it starts writing at 20 x per second. Is there a way to change it or dictate how fast the exicutes VI 'Write in a file measure'?

    My reason for slowing down the write speed are, 1) reduce space occupied by my data file. (2) reduce the cycles of CPU use and disk access.

    The reason why I can't increase the value of 'Samples to Read' in the DAQ Assistant (to match my requirement to write data), it's that my VI will start to Miss events and triggers.

    I don't know I can't be the only person who needs high-frequency data acquisition and low-frequency writing data on the disk? However, I see a straight road to key in before that.

    The equipment I use is a NI USB DAQ 6008, data acquisition analog voltage to 100 Hz.

    Thanks in advance for your help

    See you soon

    Kim

    Dohhh!

    The re - set feature has not been put in time elapsed VI!

    Thank you very much!

    See you soon

    Kim

  • How can I reinstall an application "to date" in the creative clouds

    I recently turned to a new Mac.  My creative Cloud applications migrate all very well, except Dreamweaver.  During the opening, I gewt a mistake.  I guess I just need to reinstall, but when I go to the Application Manager, it is said that Dreamweaver is updated.  How can I reinstall the application from the creative clouds?

    Run the Creative Suite cleanup tool, let the AAM to reinstall.

    Mylenium

  • How to use record group to insert data into the hierarchy tree?

    Hello

    I had a hierarchical tree in my block and I want to use the record group to display
    in the hierarchy tree, call david_tree. He did work for the code I try below
    and I think it might be that the create_group_form_query was wrong? or miss an order?


    DECLARE
    htree;
    rg_data RECORDGROUP;
    v_ignore NUMBER;
    BEGIN
    htree: = Find_Item ('tree_block.david_tree');

    rg_data: = CREATE_GROUP_FROM_QUERY ('rg_bank',
    "select name, short_name".
    || "from css_banks");

    -Fill the record with data.

    v_ignore: = POPULATE_GROUP (rg_data);

    -Transfer the data from the record group to the hierarchical
    -tree and bring it to display.

    FTREE. SET_TREE_PROPERTY (htree, FTREE. (RECORD_GROUP, rg_data);

    END;


    Thank you


    David

    David,
    You get an error with your code? Looks like you took your example code help Forms. I don't really see a problem with the code, but the forms example gives an example of how create the record group used by the HTree so the Receiver General may be the cause of the problem. When I used the HTree, I used the FTREE. Procedure ADD_TREE_DATA to fill the tree. When I started working with HTree I created a wrapper package to simplify the process. You can watch how I work with the HTree in a demo that I published called: forms and how to: create a shape of the HIERARCHICAL tree.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • How can I develop a new version without changing the old?

    I have an air application that I am on the point of build and exit.

    What is the best method to develop new features without touching the original file of the 1.0 project. I can't copy and paste into flash builder.

    And I don't want to start a new project for version 1.1, how guys do you deal with that? Export the fxp maybe?

    Version control.

    I suggest Git for a simple local set up. And if you want a nice graphical interface, or you can integrate directly into Eclipse (Flash Builder).

  • How can I get a report containing data on the current month and the next month

    How can I get next month?
    I want a report that include data on the current month and next month.

    My solution is "Closing Date". "" Fiscal month "> = Valueof (NQ_SESSION. CURRENT_MONTH)
    S 'closing Date '. "" Fiscal month "< = MONTH (CURRENT_DATE + 30)

    But this show only the information between the current month and the date of the day + 30 days

    Does anyone have a better solution?

    You can meet the next email [email protected].

    Greetings!

    GON,

    Add the near field date in your report, add a filter and choose between. Place the cursor in the first box and select Add - SQL expression, paste into the first expression that I gave you. Repeat for the 2nd box and voila it will filter you need. If you are unsure, then use the superior / equal to the value for the first term and the lower than the 2nd.

    see you soon
    Alex

  • I just bought a MAC pro. I signed in but none of my apps to my other apple devices are in section purchased from iTunes. How can I get this new macbook to access the apps I bought before I bought the macbook?

    I just bought a macbook pro. I failed to access applications that have been purchased before buying the macbook. I use the same apple ID. How do you get apps already purchased?

    Hi SupaDupaTrini,

    If you don't see the applications you have previously bought for download, I would first examine the history of your purchases using iTunes on your MacBook Pro software:

    See your purchase history in iTunes on Mac or PC store
    https://support.Apple.com/en-us/HT204088

    If you do not see your purchase, it can be hidden. Learn how do to hide or show items in your purchase history.

    If you can't find an item that you purchased from the iTunes Store in the last 90 days, report a problem. For older purchases, contact the iTunes Store supportand some purchases, billing and redemption.

    Download your latest purchases
    https://support.Apple.com/en-us/HT201272

    Before you can access a purchase, you must do the following:

    1. To log in with the Apple ID you used for the original purchase. Use the following steps to see what Apple ID allowing you to download something.
    2. Check if the purchases you are looking for are hidden. If your purchases are hidden, you can see them not even after following the steps below. Learn how to view purchases.
    3. See if content is available for the redownload. Previously purchased may not be items not available if they are no longer on the iTunes Store. Also, make sure that you are in a country whereyou can redownload points. If you have changed your Apple ID from one country to the other, you cannot download items you purchased in a previous country.

    Take care

  • How can I transfer more 64-bit data to the target host?

    Hi all, I currently use fpga PCIe-7851r card to drive my camera. There were 64 lines to remotely control. So what I did generates the commands on the host pc and transfer it to the target via DMA FIFO. The data type of the FIFO is U64, i.e. each digit control 64 DIO lines. But the issue becomes complex when I transfer 66 command-line. I tried to create 2 FIFOs, but I can hardly do the 2 Sync FIFO.

    I think I might be able to create 2 tables U64, one contains the original 64 line, s command and the other for the 2 line (a loss) information. And then I have them interleave in hospitality and decimate them in the target. There should be enough cycles to it. But I don't think it's a good solution. Is there a better method? Thank you.

    LabVIEW 2009, Windows XP, PCIe-7851R

    Kind regards

    Bo

    Using the techniques highlighted in this tutorial:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4534

    You can use code like this:

  • How can I create a new gradient based on the current fill color that I am applying it?

    I often need to add gradients to shapes that already exist and already have a fill color. I want to add a gradient that would be a mixture of the color that is already there and the black.  Gradients of new totally ignore what existed before. Is it possible to include the fill color that is already there in the slope?

    In fact, you can skip the step of swatch. You can drag the fill color directly from the toolbar at the appropriate end of the fitting band gradient in the gradient/panel palette; Then, apply the gradient. Be careful, though - you can end up creating a new unwanted color along the gradient stop.

Maybe you are looking for