How do I automate merging of multiple layers by name?

I have to combine over a 800 files each with sixty layers to create a final document with 60 layers (for an animation). All the 60 layers in each file are named 01, 02, 03 up to 59, 60. Iam using Photoshop CS6 and at present I am merging by using the find/name function, then highlighting all the layers selected and then using 'merge layers'. Is there a quick comand/action to merge all layers with the same names, ie all 01s, all 02s etc without having to merge each set of layers separately.
Any advise gratefully received.

I may have misunderstood the op.
So you need to merge the 60 corresponding Layers from 800 different files?
Could you post a screenshot with the Layers Panel visible? (with the camera icon)

Similar Messages

  • How do I automate merging multiple layers with same name?

    It was suggested I ask this question in this forum - any advise gratefully received!
    I have to combine over a 800 files into one photoshop file. Each file has with sixty layers. The 60 layers in each file are named identically: Layer 1, Layer 2, Layer 3 up to Layer 59, Layer 60. My intention is to create a final composite file with 60 merged layers (for an animation). That is, with all the Layer 1's merged, all the Layer 2's merged, all the Layer 3's merged and so on. What I need is a script which will merge all layers with the same layer name, ie all the Layer 1s, all the Layer 2s etc (ideally without having to merge each set of layers separately).
    I am using Photoshop CS6 and at present I am merging by using the find/name function, then highlighting all the layers selected and then using 'merge layers'.
    Any ideas?
    Best
    JR

    This might be close, it will prompt for a folder containing all the 800 files, it will use tif or psd files.
    Once you have selected the folder sit back and watch...
    #target photoshop
    app.bringToFront();
    main();
    function main(){
    selectedFolder = Folder.selectDialog( "Please select input folder");
    if(selectedFolder == null) return;
    var fileList = selectedFolder.getFiles(/\.(tif|psd)$/i);
    open(fileList[0]);
    checkBackGround();
    setLayersVisOn();
    for(var z = 1;z<fileList.length;z++){
        open(fileList[z]);
        checkBackGround();
        setLayersVisOn();
        dupLayers(app.documents[0].name);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    if(z % 9 == 0) mergeSameNamedLayers();
    mergeSameNamedLayers();
    function checkBackGround(){
    activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
    if(activeDocument.activeLayer.isBackgroundLayer){
        activeDocument.activeLayer.name=activeDocument.activeLayer.name;
    function twoOrMoreSelected(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref);
    if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) )  return true;
    return false;
    function mergeSameNamedLayers(){
    //Get a list of the layer names
    var layerNameList = getNamesPlusIDs();
    //create an array for unique layer names
    var uniqueName = new Array();
    for(var s in layerNameList){
        if(layerNameList[s][2] == "false") uniqueName.push( layerNameList[s][1].toString());
    //now we should have unique layer names
    uniqueName = UniqueSortedList( uniqueName ).sort();
    //select all layers with the same name, merge them and set blendmode
    var BlendMode = new String();
    for ( var w in uniqueName){
        deselectLayers();
        for(var z in layerNameList){
            if(uniqueName[w].toString() == layerNameList[z][1].toString()){
                //select these layers and get blendmode.
                BlendMode = layerNameList[z][3].toString();
                selectLayerById(Number(layerNameList[z][0]), true);
    if(twoOrMoreSelected()) activeDocument.activeLayer.merge();
            setBlendMode(BlendMode);
    function setBlendMode(blendMode) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var desc2 = new ActionDescriptor();
    desc2.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), stringIDToTypeID(blendMode) );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), desc2 );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    function deselectLayers() {
        var desc01 = new ActionDescriptor();
            var ref01 = new ActionReference();
            ref01.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc01.putReference( charIDToTypeID('null'), ref01 );
        executeAction( stringIDToTypeID('selectNoLayers'), desc01, DialogModes.NO );
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function selectLayerById(ID, add) {
        add = (add == undefined)  ? add = false : add;
    var ref = new ActionReference();
    ref.putIdentifier(charIDToTypeID('Lyr '), ID);
    var desc = new ActionDescriptor();
    desc.putReference(charIDToTypeID('null'), ref);
    if (add) {
      desc.putEnumerated(stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelection'));
    desc.putBoolean(charIDToTypeID('MkVs'), false);
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO);
    function dupLayers(DocName) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var ref2 = new ActionReference();
    ref2.putName( charIDToTypeID('Dcmn'), DocName);
    desc.putReference( charIDToTypeID('T   '), ref2 );
    desc.putInteger( charIDToTypeID('Vrsn'), 5 );
    executeAction( charIDToTypeID('Dplc'), desc, DialogModes.NO );
    function selectAllLayers() {
        var desc29 = new ActionDescriptor();
            var ref23 = new ActionReference();
            ref23.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc29.putReference( charIDToTypeID('null'), ref23 );
        executeAction( stringIDToTypeID('selectAllLayers'), desc29, DialogModes.NO );
    function setLayersVisOn(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ))
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(!desc.getBoolean(stringIDToTypeID('visible'))){
                var list = new ActionList();
                list.putReference( ref );
                desc.putList( charIDToTypeID('null'), list );
                executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
             desc.hasKey( stringIDToTypeID( 'smartObject' ) )  ?  SO = true :  SO=false;
             var blendmode = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'mode' )));
    Names.push([[Id],[layerName],[SO],[blendmode]]);
    return Names;

  • How to change blending mode on multiple layers at the same time

    I'm using CS5. I have a document with about 70 layers. I would like to change the blending mode to "lighten" for each layer. Is there an easy way to do this?

    Photoshop doesn't allow multiple layer editing. That's why the styles are grayed out. Only 1 layer at a time.
    What version are you talking about?
    CS5 definitely let’s one apply a Style to multiple Layers.
    rfcommagere, I don’t know how to make it much clearer:
    • set the Blending Mode on one Layer
    • with that Layer selected create a Style with »Include Layer Blending Options« checked
    • select all other Layers that should have that Blending Mode
    • click the Style in the Styles Panel

  • How do I create holes through multiple layers?

    I'd like to use boxes to punch holes into the layered artwork below them. I want the result to look exactly like this image, but with the white boxes being transparent holes.
    This seems so simple, but I can't find any combination of layers/pathfinder tools/compound shapes/or clipping masks that will produce this result. No matter what, I end up losing part of the artwork (usually the topo lines and the black bar).
    What am I missing??
    Thanks in advance for any advice.

    mirvlem,
    You may:
    1) Select the boxes to become holes and Object>Group (if nort already);
    2) Select everything and in the Transparence palette flyout tick Make Opacity Mask with Clip unticked and Invert mask ticked.
    There seems to be no need for multiple layers, but the Opacity mask punches through them all right.

  • How To Do Frame animation w/ Multiple Layers Per Frame

    So I'm working on an 8-bit character template as game art. I've got multiple layers (ie: Hat Apparel, Body, Pants, Shirt, Neck Apparel, Mouth Apparel). I want all of these to be animated in their own layers. Is there a way to do that? I have all of the layers  inside a group but I couldn't figure out a way to have a group in a frame. It would only take single layers per frame. I am not very advanced at Photoshop, I've dabbled but work more on the 3d/programming side of game design so sorry in advance if I over-complicate this

    For example this animation was made with two layer.  The top layer the jjmack linked letters has a layer mask that is not linked to the layers content. The other layer is the background layer. The first frame I created was both layers visible with the jjmack layers content positioned off canvas upper left and the second frame I created was both layers visible with the jjmack layer content lower and off canvas to the right. I had Photoshop generate all the frames tween them.

  • How can I automatically create the files with serie-name?

    Hello, Everyone,
    I have a question again.
    How can I automatically create the file with a serie-filename?
    e.g. I have a program, it will repeat 5 times, and every time it will create a bmp-file, and I want to let this program automatically save these 5 files with a Serie-filename like File001.bmp, File002.bmp, .... File005.bmp.
    How can I do it?`
    Thanks a lot.
    Regarts,
    Johnny

    Hi Deepu,
    one more comment
    The format code should be "%04d" to get leading zeros and have filenames with same length...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do you create PDF of multiple layers in Illustrator CS3 so each layer is on separate page?

    I am using CS3 and designing business cards. I have 10 names layed out as a separate layer in Illustrator.
    I am now trying to save the Illustrator file as a PDF so that each business card appears on 1 page in 1 PDF document.
    The PDF is saving as one page with all the names jumbled together rather than as separate pages. Clicking "Create Acrobat Layers from Top-Level Layers" does not work. Does anyone know how to save multiple page PDF from a layered Illustrator file? Thanks.

    with a script probably check with the Illustrator scripting forum
    the is away you can manually do it but it is quite cumbersome you make a document large enough to tile to the number of pages you need in the pdf.
    then position in order of the tiles the art  and as you position the art you also create a new layer for that art. You don't actually have a different layer in this case for each page you just really need the art properly tiled.
    You then have to print to pdf or to postscript and then distill.
    Like I say very cumbersome but it was the way they use to do it. CS 4 makes this easier though different layers would still require a script.
    Best to use different artboards.

  • How can I automatically connect to multiple connecting streams? to have 2 way communications foreach

    I need to setup a send stream that will only allow each farID to connect 1 time, and automatically connect to the connector so I ca have 2 way communication.
    I learned if in my onpeerconnect function i do this...:
    var c:Object = new Object;
    c.onPeerConnect = function(subscriber:NetStream):Boolean
       if(ready==ready)
       if(receiveStream==null)
        setupReceiveStream(subscriber.farID);
        return true;
        else
        return false;
    it seems to work fine, and they will start a 2 way connection BUT i want to potentially allow multiple connections, and setup multiple receive streams so im trying to com up with a solution to check if its already streaming to the peer. I wish I could just do this:
    var c:Object = new Object;
    c.onPeerConnect = function(subscriber:NetStream):Boolean
        setupReceiveStream(subscriber.farID);
        return true;
    But, for some reason it just keeps returning true over and over and over it doesnt just do it once on the connect, i get something like this:
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    NetStream.Play.Reset
    NetStream.Play.Start
    So, heres what im trying to do:
    protected function setupSendStream():void
    sendStream = new NetStream(netConnection, NetStream.DIRECT_CONNECTIONS);
    sendStream.addEventListener(NetStatusEvent.NET_STATUS, sendStreamHandler);
    var c:Object = new Object;
    c.onPeerConnect = function(subscriber:NetStream):Boolean
    var test:Boolean=true;
    var THEStream:NetStream = null;
    for each (var stream:NetStream in sendStream.peerStreams)
    if (stream["farID"] == subscriber.farID)
    well=false;
    trace("found it!");
    if(test)
    setupReceiveStream(subscriber.farID);
    trace("returned true");
    return true;
    else
    trace("returned false");
    return false;
    sendStream.client=c;
    sendStream.publish("MyChannel");
    trace("SETUP SEND STREAM");
    cirrusStatus=connectedReady;
    But it seems like after it returns true and runs the setup, so i can have 2 way communication, it runs the onpeerconnect function 1 more time after it returns true, and its a return false and then it makes the play fail and it ruins the connection.
    Any ideas on how I can listen for connects to my sendStream, then have it get the farID and then connect to that farID?
    keep in mind im trying to potentially support multiple connections to my sendstream which i think will be easy, but whats more confusing is having multiple receivestream connections

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • How can you automate to combine multiple photos in photoshop

    i have thousand photos prefer to combine them in a group of 3 photos into one combined photo in an automated process...
    3 photos should line up accordingly one after one ... crop the combined photo to the max size possible ... set the image size of combined photo to 2000 by 1300 pixels ... save the combined photo...
    start with the next 3 photos in the folder...
    is this possible to automate with photoshop cc?...
    thanks for help...
    cheers,

    The contact sheet script is what it is.  If you need more than what it provides, I suggest you create your own custom scripts and actions.
    Record Your Own Actions in Photoshop CC - For Dummies
    How to create your own Photoshop scripts | Photoshop | Creative Bloq
    Nancy O.

  • How do I mail merge from multiple Numbers sheets into a single Pages doc?

    I am trying to mail merge in a Pages doc with more than one Numbers file as a source.
    I am unable to do this, because the target fields only reference a single Numbers sheet. Fields needed from other Numbers sheets to populate my Pages doc show up as 'untargeted' and the merge attempt fails.
    Can anyone help?
    Thanks!

    shefletch wrote:
    I am trying to mail merge in a Pages doc with more than one Numbers file as a source.
    I am unable to do this, because the target fields only reference a single Numbers sheet. Fields needed from other Numbers sheets to populate my Pages doc show up as 'untargeted' and the merge attempt fails.
    The User Guide is clear: we may merge from ONE Numbers table.
    Reorganize your datas so that they are available to the merge process from the first table of the first sheet of the used document.
    External references are your friends to do that.
    Yvan KOENIG (VALLAURIS, France) mercredi 9 septembre 2009 18:01:34

  • How to Apply adjustment layers to multiple layers that have different blending modes ...

    How to Apply adjustment layers to multiple layers that have different blending modes  and keep the colours the same as the adjusment done?
    I work in Animation painting Backgrounds.  My files are sometimes upwards to 200+ layers.
    I will use adjustment layers to quickly balance colours and constrast on top of those many many layers.
    The only way that I know of how to apply adjustment layers it to every single layer  ( by applying I mean I need to get rid of the adjustment layers because we cant use them in production but i need the new colours be applied to all layers underneath ) in a psd is to manually do it By duplicating the adjusment layer 200+ times and  then merging each layer to one of those adjustment layers so that that layer can take the adjustment layers effect permanently.
    The issue is that Within Those 200 layers I have some layers set to Multiply or OVERLAY.    IT obviously wont apply the adjustment layer properly to those layers because those layer blend mode affect the layers under them. The colour wont be the same anymore in the spots that had the multiply blended mode.
    HEres an example of a simple File.  to show what i mean.
    https://dl.dropboxusercontent.com/u/3408266/ball%20layers.jpg
    https://dl.dropboxusercontent.com/u/3408266/ball.psd
    I have 2 adjustment layers up top.  I need to get rid of them by applying them to each layer! I cannot merge any of the layers. We need all those layers for production.
    I can apply the adjustment layers manually and this works GREAT for all Layers set to normal.  THey take on the colour change just FINE.
    However, The issue is that layer 6 and layer 4 are both set to mutiply and this screws up the colour once i apply the adjustment layers to each layer manually...
    How can i apply my adjustment layers to a file like this with some layers being set to multiply while keeping the layers exactly the same configuration  and The new colour taking efffect exactly how i looks before i apply the adjustment layers?
    Now the simple solution is to merge the multiply layers to the layer that it affects HOWEVER I NEED those multiply layers to be seperate! 
    I'm assuming what I want to do is impossible? Hope this isnt confusing.  As far as i know its impossible to do what I want it to do.  but just wanted to ask and see.
    I would REALLY REALLY love to talk to a adobe programmer/ technician/pro working at adobe about this.  Theres just no way to get in touch with anyone... =(
    any thoughts ?

    Sure... if you want to put it that way. Either way its not the desirable outcome. 
    its just frustrating that theres no way to apply adjustment layers to hundreds of layers while keeping them in the same configuration ( blendmodes,  layer order ,  without merging)  while keeping the same end result.
    works great if all your layers are set to normal though..    But I really need to keep shadow layers seperately and be able to adjust on the fly aswell as apply those adjusment to all my layers.
    I suppose that just isnt possible.   I understand the math required for this would be tremendous/ complicated if something like this would ever be implemented.  Would be nice if adobe could come up with some solution to this.  Its really a huge issue in my work flow and theres no alternatives.    How else can I adjust colours to 100+ layers  with a few clicks that lets me play around the the adjustment until im happy with the outcome.    Really wish i could adjust and the quickly apply that adjustment to all my layers regardless of blend mode.   LIke If the Layers with blendmode could somehow take the properties of the adjustment layer and keep adjusting those layers undereathe on top of that blended mode that its doing...   

  • How to multiple layers in the MAP web item?

    Hi experts,
    I'm working on a demo with BWGIS. I encounter several problems with the MAP web item.
    My demo:
    QA results visualized on global (region object - e.g. Europe, Asia), country (country object) and plant level. Use geo-drilldown to navigate into the lower layers functionality to get from the global view to the countries within one region and plants within one country.
    My settings:
    Region is a static geo-characteristic. For region I used the cont200.shp file. Also country is a static geo-characteristic, here I used cntry200.shp. For test I used ARCGIS to draw (points) some example plants in the country shape file. I uploaded this shape file to the plant object (also static).
    My success:
    I'm able to display the QA results in a separate global or country view within the 3.x Web template.
    My problems:
    A) The map web item in 7.0 does not display any data: it looks like no link can be made between the query result and graphic although we installed the latest IGS.
    B) I'm not able to drilldown from a global view to the countries within one region (doubleclick on one region in global view) within the 3.x Analyzer and 3.x Web template.
    My first question is about the concept of BWGIS:
    1) I want to use geo-drilldown (double-click) to navigate to the lower layers. For example in the global view I see only the QA result per region (shape file of region object) -> doubleclick on Europe, I expect to zoom in to Europe and see the QA results for all the countries in Europe (shape file of country object). How do I modell this in the web application designer?
    alt. 1a: 1 map – 1 layer - 1 dataprovider - underneath 1 query with region and country in the row is not allowed, so how to navigate between the two geo-relevant objects?
    alt. 1b: 1 map - 2 layers (2 shape files) - 2 dataproviders - 2 queries, one with QA result per region and one per country -> in that case both will be displayed at the same time, is not what I want. How to navigate between the two layers?
    alt. other ?
    2) I know how to make maps with multiple layers in ARCGIS, but do I need this for BWGIS, because one layer is one shape file? So do multiple layers in the map web item correspond to multiple layers in a ESRI ArcMap Document.
    More specific questions:
    3) Is there a lot of experience with the map web item in 7.0, documentation and working examples? Are there known problems (I can't find anything in sap notes). Is it better to still use the 3.5 Web Application Designer for this?
    4) There is very little information on SAP help, SDN and other forums about BEx Map and moreover the MAP web item. Does anyone have more documentation for me?
    Thanks in advance.
    With kind regards,
    Rick Stoll

    Hi Rick,
    I am working on the same topic. I am strongly interessted in solutions to your open questions, that you pulled forward in the past.
    Did you make any progress?
    Thanks in advance and regards
    Marcus

  • How to merge with multiple updates

    Hi All,
    can someone help with merge and multiple updates when matched ?
    create table foo
    id number,
    name varchar2(30),
    col1 date,
    col2 date
    create table bar
    id number,
    name varchar2(30),
    col1 date,
    col2 date
    insert into foo values ( 1, 'test1', sysdate + 30, sysdate);
    insert into foo values ( 2, 'test2', sysdate + 30, sysdate);
    insert into foo values ( 3, 'test3', sysdate + 30, sysdate);
    MERGE INTO BAR T1
    USING (SELECT id, NAME, col1, col2 FROM foo) T2
    ON (T1.id = T2.id)
    WHEN MATCHED THEN
    UPDATE SET T1.NAME=T2.NAME where T1.Name != T2.Name
    UPDATE SET T1.col1=T2.col1 where T1.col1 != T2.col1
    UPDATE SET T1.col2=T2.col2 where T1.col2 != T2.col2
    WHEN NOT MATCHED THEN
    INSERT (ID, NAME, col1, col2 ) VALUES (t2.Id, t2.NAME, t2.col1, t2.col2);
    Reason for having multiple updates to same row is i want to update the column only if name, col1, and col2 columns have changed. So, I want to first match by rows and then update the columns in bar that have changed in foo.
    Any thoughts on how I might do this in merge ?. I get the foll. error
    ERROR at line 6:
    ORA-00933: SQL command not properly ended
    Thanks
    Vissu

    I think you will be better off reading this link.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9016.htm#SQLRF01606
    It will be something like this.
    MERGE INTO BAR T1
    USING (SELECT id, NAME, col1, col2 FROM foo) T2
    ON (T1.id = T2.id)
    WHEN MATCHED THEN
    UPDATE SET T1.NAME=T2.NAME ,
                          t1.col1 = t2.col2 ,
                          t1.col2 = t2.col2
    where T1.Name != T2.Name or t1.col1 != T2.col1 or t1.col2 != t2.col2
    WHEN NOT MATCHED THEN
    INSERT (ID, NAME, col1, col2 ) VALUES (t2.Id, t2.NAME, t2.col1, t2.col2);Please note this code is untested.
    Regards
    Raj

  • How do you copy a selected area of multiple layers?

    I'm trying to create an animated gif using PS and I can't find out how to copy multiple layers. Right now I have 110 different layers and I want to select the same portion of every layer and copy it into a new file without flattening the image. So I want to be able to start, and end with, 110 layers. The 110 different layers are all separate pictures of my desktop and I want to crop out most of the desktop to focus on one area in particular. Is there anyway to do this?

    One could delete, select next layer, delete, select next layer … which should be Action-able.
    Or duplicate the image and crop it to the intended size.
    Or why not simply put the Layers into a Group and add a Layer Mask to that?

Maybe you are looking for