transfer of some columns from one table to another table...?

I had 2 table... .one is PAYMAST n other TBL... In PEXMAST & TBL 10 collar each, I had and I want to transfer 4 columns of TBL to PEXMAST...

How do I do this. ???

A table must be regarded as line and column.

When you say a column, it should be associated with a line.

Here is an example

Let's say I have two table T1 (ID, NAME) and T2 (ID, Name1)

Now if I say I want to spend for T2 T1 name1, what I will do?

1 create a column name1 in T1.

alter table t1 add name1 varchar2(50)

2. put up-to-date T1 by joining T1.ID and T2.ID like that.

update t1
   set t1.name1 = (select t2.name1 from t2 where t2.id = t1.id)

As you can see you need a column ID to define the relationships between the two table T1 and T2. If you have one, you can do the same with yours.

Tags: Database

Similar Questions

  • Copy some files from one user to another

    Hello!

    How can I copy (not share) some files from one user to another?

    The reason for this is because we rename users to other allocation model.

    Thank you!

    You must share the folders you want to transfer the ownership of the new username, or one responsibility that the new user has (I guess that's an Oracle Applications EUL). The user connects to Discoverer more with their new name. They open the workbook (s) and then do a SAVE AS. Who will save the workbook with them as the new owner. You must then sign with the old name of the owner and to delete these old files (after the first backup them) once you are sure that everything works fine. Yes, it is a nasty process. What we do is we use a "dummy" username when we create/modify the workbooks. In this way the fictional user name is the owner of the workbooks. So, it does not matter if a person leaves or if you change the user naming conventions. If you have many users to create cabinets, then a dummy user name doesn't quite work. You could always submit an enhancement request to Oracle for a copy function. I hope that you will get a lot of customers to support such a request.
    John Dickey

  • What is the best method to transfer a virtual machine from one PC to another?

    I am a novice in VMWare workstation. I created my first SharePoint 2010 development VM, and my boss wants me to give him a copy of my SP 2010 VM. He told me to just give him the. VMX file, but I believe that there must be a better method to transfer a virtual machine from one PC to another.

    Thanks in advance.

    Coltrane.

    Coltrane,

    to transfer a virtual machine from one PC to another, shut down the virtual computer and copy the complete folder with all the files (vmx, vmdk,...) on another PC.

    A thin to keep in mind (outside the Windows license) if the virtual machine is one attached to your network, you must change the copied disk - as you would with a cloned physical system - to have a unique host name, MAC address and IP address.

    André

  • How to transfer a pod cast from one phone to another iPhone 9.1 left a5 for a 6 phone and want to transfer the pod casting

    How to transfer pod cast from one phone to another iPhone, moved from 5 to 6 and wants to point of transfer of the pod cast on the latest phone.

    I have no idea what you mean by 'moved from 5 to 6' or 'transfer point '.

    Podcasts, such as most of the data transfer directly to another iOS device.  To get podcasts on your new phone, you re - download, sync from iTunes on your computer or restore a backup containing them.

  • Transfer programs and files from one computer to another

    My old computer is an HP ME edition. I transferred programs and files to a HP with Vista Home Premium. Will the old programs and files, my computer run more slowly, and can I remove the old ME programs and files without interfearing with Vista OS?  Thank you

    First of all, you can not transfer programs from one computer to another - well, you can try, but it almost certainly won't work because the programs must be installled to make sure that ALL the files and registry entries are added correctly and created.  Delete, nothing like you have transferred because it will be of no use and just take place.

    As far that range from data, you can transfer data and should not affect the performance of your system (unless you have a LOT of files - and I mean a LOT).  Move them to the appropriate folders in your user profile to make them easier to find (and backup).

    Certainly, you can delete the old program files and data that you have transferred without causing any problem for Vista.  Just be careful that you ONLY delete these files and do not delete Vista files accidentally while you do.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I transfer win 8 activation from one PC to another?

    How to transfer an activation Win 8 Pro (upgrade) from one system to another? I tried to win 8 on an old PC and when I was happy with it, I uninstalled from there and then installed on my new PC. Although Windows has accepted my product key during installation, it would not activate me with him saying that he had already been activated on another machine. Can you help me?

    First, you need to remove the computer, he is currently installed, this means that you must format the disk or reinstall the previous version of Windows. You are then free to use the key on the other computer. You may need to reactivate by phone:

    You can download it from there and use your product key to upgrade:

    http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only

    See:

    http://techingiteasy.WordPress.com/2012/11/06/part-1-how-to-upgrade-using-the-Windows-8-Upgrade-Assistant/

    then:

    http://techingiteasy.WordPress.com/2012/11/07/part-2-How-to-upgrade-using-the-Windows-8-Upgrade-Assistant/

    Activation of the phone:

    1. press the Windows key + X , and then click run, and then type: slui.exe 4

    2. then press the ENTER"" key.

    3. Select your "country" in the list.

    4. choose the option "activate phone".

    5. stay on the phone (do not select/press all options) and wait for a person to help you with the activation.

    6. explain your problem clearly to the support person.

  • How to transfer Presets of metadata from one mac to another

    Hello

    My question is how can I transfer the Presets for metadata (information about the creator and their Contact information, etc.) from one computer to another? I just changed from one mac to the other. The Lightroom database was still on the external hard drive, I have just connected a new Mac now, but the preset metadata are empty when I connect from the new mac. When I connect from the old mac it are still there.

    Any help appreciated.

    Dakota

    The metadata presets folder is stored with all other templates and predefined settings to users / ~ / Library/Application Support/Adobe/Lightroom you can navigate your way there through the operating system or open the preferences of Lr Presets tab panel, then click on button labeled folder show Lightroom Presets...

  • Problem transfer of site Web from one PC to another.

    I'm trying to transfer a site from one PC to another, but it does not work on the second PC. I tried to export the site definition and transferring individual files, also to anything will do.

    This is the same copy of Dreamweaver CS4 on both machines (version 10.0, build 4117) but it behaves as if Dreamweaver does not exist on the second PC, even when I opened it first.

    The fact that the first PC runs Windows 7, while the second PC running Windows XP would affect any on it? Or I'm doing something else wrong?

    You do not export the site files.  You just have to copy them from one location on the source computer to the same location on the target computer.  The best way to do is to copy and paste the ROOT FOLDER and all subordinate files will come along for the ride.

    Now, this should give you an exact mirror of your original files and their location on the new computer.  This is how you did it?

    If this is the case, then we will need to see a page that does not display properly learn more about what might happen.  You can post a link to one of these online pages?

  • When I try to transfer Photoshop CS5.5 from one Mac to another, my serial number is 'invalid' on the new Mac.  Why is this happening?

    I transferred my photoshop from one Mac to another before. I've disabled my Photoshop on the old computer, downloaded a free trial on the new and entered my serial number to reactivate Photoshop on the new computer.

    I got a new computer again and this time Photoshop said that my serial number is "invalid". I can't understand why.

    Thanks in advance.

    You CAN be hitting the problem of El Capitan with older programs

    This information is a MUST to install old programs on Mac El Capitan

    -You can't get the same error message, but these two links will help with older programs

    Install CS5 on Mac 10.11 https://forums.adobe.com/thread/2003455 can help (also for others than CS5)

    -also a TEMPORARY security change https://forums.adobe.com/thread/2039319

    FAQ on the Mac 10-11 https://forums.adobe.com/thread/1979303

  • Correspondence of the columns from one table to another

    I have a database column that contains the name of a person. I have another table that has a column that contains the names separated by a comma.

    I want to match records where all records of two columns have a corresponding name. I tried this:

    < cfquery name = "MyQuery" datasource = "myds" >

    SELECT *.

    OF TBL_A

    WHERE TBL_A.customername IN (#DifferentQuery.ListOfNames #)

    < / cfquery >

    Everything that I try results in only get a recording. Basically, I want to get all records from a table where one of its columns contains the name of a column in another table.

    It's a many-to-many relationship. That is to say an editorial can be linked to many ads, and vice versa.  He is best represented with three tables. Such as:

    Table: [Editorial] column: [EditorialID (PK), EditorialText,...]

    Table: Columns of the [advertiser]: [AdvertiserID (PK), AdvertiserName]

    Table:   [Editorial_Advertisers] columns: [EditorialID, AdvertiserID]

    The name of the advertiser throw himself into a column...

    my client can decide which ads get related to which editorials

    The third table stores the relationship between ads and editorials.  So instead of storing a list of advertisers, you need to insert record for each EditorialID + AdvertiserID combination. You can then use joins to retrieve all the advertisements for EditorialID 123.

    SELECT  a.AdvertiserName
    FROM     Editorial_Advertiser ea INNER JOIN Advertiser a ON ea.AdvertiserID = a.AdvertiserID
    WHERE   ea.EditorialID = 123
    
  • Copy columns from one Table to the other with PL/SQL in Apex

    So my goal long-term is to throw this PL/SQL statement in a trial DMBS_SCHEDULER Apex 4.1 to create historical snapshots of the data a week but I'm hooked on this code:

    declare
    V_DEKIT_ID varchar (255);
    V_NT varchar (255);
    Number to resume;
    Date of V_DDATE;

    Start
    for DEKIT_ID in (select * from DKT_HIST)

    loop

    Select DEKIT. DEKIT_ID in V_DEKIT_ID of DEKIT;
    Select DEKIT. NT in DEKIT V_NT;
    Select DEKIT. QUANTITY back of DEKIT;
    Select CURRENT_DATE in double V_DDATE;

    insert into DKT_HIST (DEKIT_ID, NT, QUANTITY, DDATE)
    values (V_DEKIT_ID, V_NT, V_QUANTITY, V_DDATE);
    end loop;

    end;

    I enter this code in the SQL prompt in the SQL workshop and it is said that she is treated, but when I look at the destination table (DKT_HIST), there is no data. Any help would be appreciated.  In this code I want to copy the three columns of the DEKIT table as well as the current date and copy them to DKT_HIST for each row in the table DEKIT.

    Thank you

    -Steve

    The reason why your code did nothing is probably because your loop, using the history table. And since there no data in the historical table first, there is nothing to loop.

    BUT!

    Good code is the task with the least possible effort. Which in your case should result in a code similar to this:

    begin
       insert into DKT_HIST (DEKIT_ID,NT,QUANTITY,DDATE)
       select DEKIT_ID,NT,QUANTITY, trunc(sysdate)
       from DEKIT;
    end;
    
  • How to copy columns from one table to another

    Hai All


    How to copy the contents of the array to another

    For example, first name of the table is T1 and I have 10 columns and data are here and I need to create a table T2

    But I don't need the header, but not the values of all the 10 columns of T1 to T2, but not values


    Thanks and greetings

    Srikkanth.M

    Why not?

    create table test1
    as
       select * from emp
       where 1 = 2;
    

    Kind regards.

    LOULOU.

  • How to transfer files and settings from one computer to another?

    Original title: transfer user

    How can I transfer (acct users) all programs and files frm lptp one to anther?

    Hi shannonprovence,
     
    -What version of the operating system is installed on the other computer/laptop?
     
    Here are some articles that will help you transfer files and settings:
     
     
     
    If the migration from Windows XP to Windows 7, see:
     
  • How can I transfer the Firefox profile from one user to another on my pc (win XP)

    At work, I use Firefox as my default browser.
    In my business, the COMPUTER administrator installed new system s/w on the companys main server and changed user names.
    So now firefox lost information (profile) I already had on my pc.
    Now in the folder "C:\Documents and Settings\", I have 2 users.
    The one with the old username and the other with the new user name
    Also I can not any connection any longer in my pc with the old username because the administrator has also changed the domain name.
    How can I transfer the profile that I had (with a lot of useful bookmarks etc.) of the former user name for the new user name?
    Thank you in advance!
    Yannis

    http://support.Mozilla.com/en-us/KB/recovering+important+data+from+an+old+profile

  • Any possible way to transfer apps and appdata from one phone to another?

    I have a Cliq which I had problems with. I recently got a warranty replacement of T-mobile and I'm just curious to know if there is any way I can copy my apps and appdata from the old phone to the new. As much as I don't mind reinstalling applications and everything, I'm just curious, if there is a way to copy them? Help much appreciated.

    You can use some applications on the market. One is called Astro and the other is called Mybackup. They will save more apps as well. I do not recommend that you use mybackup as a backup contact since I had a problem with this part. The two must be installed before you can restore your dos applications. Note: I don't think that they record details of the app and after that you use them apps will appear on the market in the downloads of updates. All your paid apps will be there in my download after logging in return. I heard that if you go to downloads after you set up, you are free and paid apps will show for the first time , you go to the market. I have not tried yet.

Maybe you are looking for