Merge help

Oracle 11.2.0.1
Windows

create table customer (cust_id number, cust_name varchar2 (30), address varchar2 (30), mobile phone number (9), bank_name varchar2 (30));
Insert into customer values(100,'ABC','Delhi',123456,'Bank1');
Insert into customer values(105,'XYZ','NY',512455,'Bank-14');
Insert into customer values(102,'AAA','London',524015,'Bank2');
Insert into customer values(108,'ZZZ','Perth',22141,'Bank6');
Insert into customer values(111,'BBB','Delhi',12140,'Bank1');
create table (number of copyto, copyfrom number) transfers;
insert into a values (102 100) transfers;
insert into a values (111 108) transfers;
   CUST_ID CUST_NAME                      ADDRESS                            MOBILE BANK_NAME
---------- ------------------------------ ------------------------------ ---------- ------------------------------
       100 ABC                            Delhi                              123456 Bank1
       105 XYZ                            NY                                 512455 Bank-14
       102 AAA                            London                             524015 Bank2
       108 ZZZ                            Perth                               22141 Bank6
       111 BBB                            Delhi                               12140 Bank1

SQL> select * from transfers;

    COPYTO   COPYFROM
---------- ----------
       102        100
       111        108
After the merge operation (based on the transfer table: cust_name, address, and mobile columns only not bank_name; that is, customer name, address and mobile phone number of 102 cust_id should be replaced by cust_id) 100

Power required:
   CUST_ID CUST_NAME                      ADDRESS                            MOBILE BANK_NAME
---------- ------------------------------ ------------------------------ ---------- ------------------------------
       100 ABC                            Delhi                              123456 Bank1
       105 XYZ                            NY                                 512455 Bank-14
       102 ABC                            Delhi                              123456 Bank2
       108 ZZZ                            Perth                               22141 Bank6
       111 ZZZ                            Perth                               22141 Bank1
Kindly help me, how can I write merge order above.

Thank you.

Something like->

SATYAKI>
SATYAKI>select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

Elapsed: 00:00:00.57
SATYAKI>
SATYAKI>create table customer(cust_id number,cust_name varchar2(30),address varchar2(30),mobile number(9),bank_name varchar2(30));

Table created.

Elapsed: 00:00:00.28
SATYAKI>
SATYAKI>insert into customer values(100,'ABC','Delhi',123456,'Bank1');

1 row created.

Elapsed: 00:00:00.26
SATYAKI>insert into customer values(105,'XYZ','NY',512455,'Bank-14');

1 row created.

Elapsed: 00:00:00.23
SATYAKI>insert into customer values(102,'AAA','London',524015,'Bank2');

1 row created.

Elapsed: 00:00:00.25
SATYAKI>insert into customer values(108,'ZZZ','Perth',22141,'Bank6');

1 row created.

Elapsed: 00:00:00.25
SATYAKI>insert into customer values(111,'BBB','Delhi',12140,'Bank1');

1 row created.

Elapsed: 00:00:00.28
SATYAKI>create table transfers(copyto number,copyfrom number);

Table created.

Elapsed: 00:00:00.36
SATYAKI>insert into transfers values (102,100);

1 row created.

Elapsed: 00:00:00.28
SATYAKI>insert into transfers values (111,108);

1 row created.

Elapsed: 00:00:00.28
SATYAKI>
SATYAKI>commit;

Commit complete.

Elapsed: 00:00:00.26
SATYAKI>
SATYAKI>select * from customer;

   CUST_ID CUST_NAME                      ADDRESS                            MOBILE BANK_NAME
---------- ------------------------------ ------------------------------ ---------- ------------------------------
       100 ABC                            Delhi                              123456 Bank1
       105 XYZ                            NY                                 512455 Bank-14
       102 AAA                            London                             524015 Bank2
       108 ZZZ                            Perth                               22141 Bank6
       111 BBB                            Delhi                               12140 Bank1

Elapsed: 00:00:00.62
SATYAKI>
SATYAKI>
SATYAKI>select * from transfers;

    COPYTO   COPYFROM
---------- ----------
       102        100
       111        108

Elapsed: 00:00:00.54
SATYAKI>
SATYAKI>merge into customer o
  2  using (
  3          select o.copyto cust_id,
  4                 c.cust_name cust_name,
  5                 c.address address,
  6                 c.mobile mobile,
  7                 c.bank_name bank_name
  8          from customer c,
  9               transfers o
 10          where c.cust_id = o.copyfrom
 11        ) n
 12  on (
 13        o.cust_id = n.cust_id
 14     )
 15  when matched then
 16    update
 17    set o.cust_name = n.cust_name,
 18        o.address   = n.address,
 19        o.mobile    = n.mobile,
 20        o.bank_name = n.bank_name;

2 rows merged.

Elapsed: 00:00:01.26
SATYAKI>
SATYAKI>select * from customer;

   CUST_ID CUST_NAME                      ADDRESS                            MOBILE BANK_NAME
---------- ------------------------------ ------------------------------ ---------- ------------------------------
       100 ABC                            Delhi                              123456 Bank1
       105 XYZ                            NY                                 512455 Bank-14
       102 ABC                            Delhi                              123456 Bank1
       108 ZZZ                            Perth                               22141 Bank6
       111 ZZZ                            Perth                               22141 Bank6

Elapsed: 00:00:00.79
SATYAKI>

Kind regards.

LOULOU

Tags: Database

Similar Questions

  • RoboHelp HTML X 5: merged help showing no no ToC

    Hi all:

    Hoping someone can help me here.

    I've been creating merged help for a while now without problems. But you have this problem today after compiling a particular project after a 15-month hiatus. When I compiled the project parent/master, the table of contents shown projects of the child and the InfoBar displays the following message is displayed:

    "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options... »

    I ignored the message and clicked on the child projects to verify if they appear correctly. Each project of the child opened the new instance of Internet Explorer - this has not happened before. The last time that I respected this parent, everything worked well project work and child projects that are open in the same instance of the browser.

    Secondly, when I right click on the message bar and has chosen to allow the blocked information content, the ToC has disappeared.

    Just in case where it is relevant, my predecessor employer all our PC last month and all software should be reinstalled.

    Would it be because of the new version of IE? (My old machine could have an older version.) Or the fact that I did not install the updates in Robohelp X 5? (I get the message that the Macromedia server is down). I have not activated the product, but either.


    Would appreciate any advice/indices.

    Thanks in advance

    Sophie

    Hello

    Usually, you can prevent this message from appearing by activating Mark of The Web (MOTW) in the generation of WebHelp options. The unfortunate part, which is that you said X 5 and X 5 do not offer this option. So the next best thing you can do is to configure IE so it does not present the yellow information bar. To do this, open the Internet Options in IE. Click the Advanced tab and scroll down to the Security section. Place a check in the option 'allow active content to run in files on my computer ".

    Note that this affects only your own computer. If you expect your users to copy the WebHelp files on their local disks of C, you'll have to teach them to perform the same steps. But if you send your content to a Web server, you should not experience this problem.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • problem with merged help

    argggh. Ok. I have (I thought) followed merged help from peter grainge on something simple webhelp merged, but I'm a devil of a time to produce the desired result and update the files published to show what is merged (e.g., child projects).

    the highest of the directory structure that I use is called fruit. within that I ~ main and ~ sub (with the tildes). in ~ sup
    I have two projects of the child: apples and oranges.

    When I publish, the table of contents resulting Watch (repetitions) the parent (what's in ~ hand, not the child projects), and when I look in the Solution Explorer, each project of the child shows the same directory structure as a parent (including the mergedProjects directory). I use lowercase file names when I generate, and even though I specified in each, for example, c:\fruits\testPublish\mergedProjects\apples and c:\fruits\testPublish\mergedProjects\oranges, the result publication shows that the details of the child server go to the directory root (c:\fruits\testPublish).

    what the devil? (and btw, I can't get it works correctly using file of demonstration of stone either.) pls help to correct the error of my ways.

    Thanks for the help. the problem has been resolved.

    I was trying in error to build and publish the subprojects in the master, even if their records were not actually in the project (component). Apparently, I was literally reading directions to stone who has not expressly stated I want to build and publish for each individual subproject. Accordingly, I continued to get the master to generate and disseminate within itself.

  • Merge help print data

    Hi all

    I need help! I design a newsletter using inDesign CS6 CC. My newsletter is 20 pages long and is shipped to the approximately 1000 people. I would like to be able to create a data merge so that I don't have to hand label every newsletter. When I create the fusion of data and export the file as a PDF, I get a large document. I found a way to divide the 1,000 individual records PDF, but I try to print, it's a nightmare.

    Is there a way to create a merged document given in CS6 CC and say somehow the program prints the document in 20 booklets of pages instead of trying to print a brochure it's thousands of pages.

    I'm not affixed to inDesign or Acrobat Pro - or something else in the CC family.

    Thanks again for all the help that can be provided.

    -Eleni

    Just thinking here...

    How VDP treatment works when personalization is that data "mail to" is the side of the cover is printed separately with the VDP, gathered with others and then bound using any method. If such a system would work for you and your printing device, then the front page 1000 PDF which also contains the inside covers) is ran and inserted as a sheet of sliding between the rest. Then the finish is made... automatic folding and discontinuous used liaison? In the contrary case the folder and stapling introduced himself as a second process, or even farmed.

    Mike

  • Why first topic is not display in merged help?

    I created a system to help merged in RH 9, suite "Merging WebHelp - RoboHelp 8 ' of Peter Grainge steps.  When I open the file by default (index) in the parent, the first theme is not displayed and I get this error under heading:

    Internet Explorer cannot display this webpage.

    I can click on just about any subject of the structure of the table of contents and it appears correctly.

    I follow step 8 (which requires to synchronize the table of contents) and made the change in the file whthost.js in the folder of output generated for the parent and the child.

    I also tried looking for this forum before asking that question, using google, according to the guidelines as the forum search is broken. But I couldn't find anything relevant.

    Thanks for your help.

    Jenny


    When this happens, it is certainly because the path to the redirect is not right. Make sure that the relative path is correct and that the target file is where it should be.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Data merge help please!

    First of all, let me say that I am quite new in InDesign, so this can be pretty basic for you, but I'm going to be as accurate as possible.  I am putting together a directory of photos simple enough for our Church and has serious problems with the InDesign data merge.  I have my numbers (Excel) document divided into fields and saved in a .csv file, I am able to select it as the source document and provide the information in my target document.  The problem I encounter is that no matter what I do it's split up my data in separate documents.

    Thus, for example, I have my source list .csv file as follows (more detailed but it is the base):

    Name, address 1, address 2, phone 1

    SMITH, John, 123 random circle, any where, USA 12345, 555-1212

    Now I have my destination InDesign document what follows, clicked on directly from my window of data merge:

    < < name > >

    < < address 1 > >

    < < address 2 > >

    < < Phone 1 > >

    However, my overview displays the following text:

    SMITH, John

    Random circle 123

    Nothing else shows until I click on the tab 'next' for the next document, and then it will show:

    Any where

    USA 12345

    555-1212

    And as a result this page it with the email address... will follow that back to return to the next entry in my database.

    Suggestions?  Ideas?  I was wondering if it has something to do with commas... but I tried going one last, address 1, city, State, Zip format first and it still will fill part of address at a time.  I'm just at my wit's end... Please help!

    For a multiple recorsd merger you must configure exactly a set of placeholder fields ID will dupicate them, as well as the rest of the page (if set up on the page of the document) as many times that can hold using the spacing you specify. If the fields are on the master page, other things on the master page, like headers and footers, will not be duplicated. Many beginners tripped upwards on how to implement a merger of several record.

  • multitrack audio merger help from 2 sources.

    Hi, so I recorded my band of brothers yesterday. Six titles have directly saved in Audition using four Scarlet and two Presonus. I recorded a four other tracks separately with a Tascam, it records onto an SD card. So, today, I imported the audio of the SD card and created additional paths in the project of the hearing. I don't have a problem adding audio, but I can't figure out how to get at automatic alignment. I did something similar to this in Premiere Pro, getting a multi-cam in automatic alignment. I tried automatic alignment of the speech, but my computer ran out of memory and basically crashed. My clips are rather large, more than an hour long, I didn't stop between songs so it is separated into first and second. Help

    How have you managed to get the Scarlett and the Presonus in hearing at the same time? Normally the hearing only accepts an audio interface at a time.

    Even if synchronize you different records manually you may need to separate the files between songs, since it is unlikely that files saved separately held sync for more than a few minutes at a time. Certainly not for an hour or two.

  • Tab 'Search' in the help by displaying not topics merged contributes

    Hi RHelpers,

    Question about merged help.

    Me and my colleague installed the exact version of our software that we will document. We have access to the help system, and we two are looking for the exact term.

    I get results from the main help, but also the merged help there.

    He gets only to the main help.

    Why is he not returning as planned merged Help topics? Any ideas?

    Thanks in advance,

    Jared

    Ah, CHMS merged, you don't mention that although I wondered when I saw on a local installation. Next question is which version of RoboHelp but without worrying about watch using RoboHelp 9 item 13 on my site. I wouldn't mind betting that the parent HHP project has an absolute path in it.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Can I create a fusion help out of two existing projects?

    I have a project RH11 existing (project A) located on the control of Source of RoboHelp.  It is called within the software, it is written for.  My company has developed a software add-on to the original software.  I have about 30% of the aid for the add-on (project B) completed, but is not in Source code control.  The developer's of informs me that the help file must be a help. (I asked this question at the beginning).  Is it possible for me to create a merged project help on two existing projects and it controls Source code?  I created merged help before so I have some familiarity with it. I have RoboHelp of Peter Grainge, creation of site bookmarked.

    Thanks in advance for any direction you can provide.

    We need to know what the developer means by "assistance". Merged help is two or more projects, each with their own production which can be called independently, but can also be made to appear as on the output.

    If that satisfied the stipulation of the developer, then Yes you can configure your existing projects to do. Such parent described on my site would be empty and your two projects would be the child projects. Each of them would be in source code control.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How to merge these two files?

    Hello Adobe Dreamweaver Forums.

    My Question:

    How to merge the two following documents of smaller.js in a document unique largest .js?


    I took action:

    Copy and paste.

    Problem:
    Scripts is no longer loading in the larger document, still charge when connected separately.

    DOWNLOAD:

    Dropbox - merge help (05/16/15) .zip

    Includes:

    "Main.js" - 51 lines, 30KB

    'Fusion-in-hand-1 Jquery.nav' - 2 lines, 1 KB

    "Fusion-in-hand-2 settings" - 2 lines, 1 KB

    Note:

    If the necessary script files can be unpacked using: Unminify JS, CSS and HTML Code

    Thanks for reading and I appreciate the help.

    Not sure what you mean "files are not can-do. In the example, I have even included the jQuery library in goldenrolls.js.

    The only problem you will have is the time it takes to load the page. Take a look at the size of the header image which is ko 5 769,21 with the dimensions of 3, 072px × 2, 304px (scaling 1, 180px × 885px).

    Once the page is loaded, everything works perfectly.

  • Responsive HTML5 with mergedprojects, creates a hyperlink to a file in the project html parent to a child html file and it does not work! The child has with the parent TOC, but need to tie. Help, please!

    Hi group!

    I have a brilliant parent project that serves as a springboard for other projects. Users click a component of software they want and are redirected to a page with a list of all the documentation available for this component. Click on the name of a document and access - a lot of PDF files. BUT I also wish they were able to tie the online help for the component. After having read up on the link through / between projects, I knew that I needed to create a parent project (for the page intro and links brilliant) and projects for children (for software components).

    THEN

    I created a parent sensitive HTML5 project and the projects of two children. I compiled the parent to create mergedprojects files, and then open the projects children and collected to the appropriate mergedprojects folder. I then created a hyperlink to the file list html documentation in the project parent towards the child file software component html (output folder and start page [which is the same as the default theme]) and the link does not work! The child and its table of contents appears in the parent TOC so topics are here, but I can't link to them. If necessary, I can send screenshots.

    Where I am dorking this place?

    Thanks in advance for your time and help!

    Scottie 'needs help' gear

    What is your relationship like? And how did you create the link?

    A typical reactive merged help is structured as follows:

    index.htm (Master home page)

    mergedProjects

    childName

    index.htm (starting page for child)

    A child from the index.htm page link would look like this:... /... index.htm

    Kind regards

    Willam

  • You can merge multiple Webhelp projects?

    Hi all

    Is it possible to merge multiple Webhelp projects separately created so that when you start a project, you can see the table of contents of other projects as well? (that is to say, they would all appear to be part of the same assistance but were actually created separately). I use RH10.

    Thank you.

    See merged help on my site.

  • Link / merge files chm on PC Clients

    Hello

    We have a master project and add in modules that we can distribute separately according to the needs.

    We'd like to have 1 searchable CHM file, but do not want to include all of our plug-in software component modules in the CHM 1 file.

    My idea was that we have 1 main CHM, then search for other CHM the customers PC files (in selected directories) and includes them.

    Is this possible. I'm ready to move on WebHelp it is possible using that.

    I use Robohelp HTML 10.

    Can thanks,

    Joe

    What you need is merged help where the search returns the results of whatever he can find. So if the file contains only the main chm, it will search only that, but if she finds the module A, thus, that too will be sought. It is transparent to the end user.

    My site contains information which aimed primarily to do that with webhelp but it contains some information on doing with ECMS as well.

    I highly recommend experimenting with some new projects with a few topics in each to get your head around the concept.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Merge OCD

    With the help of HR 8.0.2.208.

    My parents TOC looks like this:

    A

    xxx

    B

    C

    D

    My OCD child looks like this:

    A

    YYY

    C

    zzz

    I expect the result to look like this:

    A

    xxx

    YYY

    B

    C

    zzz

    D

    But instead, I get this:

    A

    YYY

    C

    zzz

    A

    xxx

    B

    C

    D

    Is it possible to actually merge?  Looks like they are just added.  I am looking for a solution that doesn't involve work of post-production.  We are updating too often helps to make manual changes every time we build.

    Thank you!

    You didn't say if it is desktop or browser based AIR help but it does not matter too much since this is the way that all the merged help work.

    You get the parent TOC first then the table of contents for each child, or order that you configure in the parent.

    You can see that at file:///Z:/00_RH_TEST_PROJECTS/RH9_Projects/rh9_browser_air_merge/generate/index.htm

    The way I posted to merge will help allows nesting but is not a method I recommend now.

    http://www.Grainge.org/pages/authoring/merging_webhelp/merging_method_original.htm

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Air does not help a valid option for some projects?

    RH9, several projects that are currently deployed as merged webhelp.

    I opened the project that we use as the 'parent' and was able to change the Air outlet, no problem. But when I try to open the other projects that we use as a 'child' projects, it does not allow us to select Air. Even, the option does not display in the output dropdown.

    Is there a setting to be changed? My understanding is that Air can-do merged help projects and makes them in the same way as our existing format, Webhelp.

    Try right clicking on the SSL pod to create a new page layout. Project settings shows that the provisions that are in the project so that you can set the default value. Pretty useless really as you can also do this in the SSL pod.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

Maybe you are looking for

  • ENVY 15 Notebook PC: I cannot adjust the brightness of the screen

    I have a new HP ENVY 15 laptop. My cell phone product is G0T55AV. I use Windows 8 (64-bit). I tried to use the key of brightness on the keyboard as well as brightness settings (in control panal) but it will not adjust. It seems to be stuck at brighte

  • Generate the event

    Hi all I use Labview7.0 and need to generate the automatic event. This means without any button or mouse move the activity on the front panel, I want to generate the event after each interval of time given. How can I fullfill my requirement? Kind reg

  • Gateway NE56R10u no video.

    How can I force video port monitor when starting, or is - ext this automatic when the cable is plugged? Laptop seems to start properly, but both screen and external monitor showing not any video at all. Possible bad mother?

  • App fails when submitted to the provider Portal

    Hi all I have a native application of BB10.2 which loads and works very well in the Simulator.  Twice I've submitted to the app store via the provider portal and twice I get an email back stating that the application could not start on any device.  T

  • Corrupted Windows Installer on the new Windows 7 laptop

    I recently bought a new Dell Studio laptop, running Windows 7 (64-bit).  It is my first experience with this new version of Windows.  After search for and resolve a number of issues, I have still a few that I can't get rid of, and all these point to