Removing Duplicate Records  and Merging with the previous record

Hi
Can any one help me in doing this..
I want to delete a duplicate record from the current table.If there is one more record of the same kind. Compare the two records and fill the columns which are empty. Then Merge it. and Remove the duplicate record...Before deleting the record move it into the backup table..
with regards
srikanth

I understand conceptually what you're after. At a detailed level, though, you're going to have to enunciate some specific rules to enforce.
1) What makes row A a duplicate of row B? Is it just the Name column? Some combination of columns? Something else?
2) What is the exact rule for merging rows? Among other questions
- If you have multiple non-NULL values for a particular column, which column wins? If you have one row that is Manchester, NH and one that is Nashua, NH, which would you keep?
- Does the merge logic depend on the particular column (i.e. perhaps you want the city & state to come from one row whereas first and last name can come from different rows)
Justin

Similar Messages

  • MY system folder, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac) How do I remove them

    I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac).  For the most part the dupes are an exact copy, but not always.  I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas

    pacull,
    Use iCal>View>Show Notifications to choose what to do with the notification.

  • I bought a movie on iTunes and when it loads up I can only play the bonus features and not the actual film. The title screen is also glitched and merges with the scene selection. I don't think it downloaded properly. what can I do?

    I bought a movie on iTunes and when it loads up I can only play the bonus features and not the actual film. The title screen is also glitched and merges with the scene selection. I don't think it downloaded properly. what can I do?

    It happens sometimes. Delete the current copies, don't hide from iTunes in the cloud if prompted, close iTunes, reopen, download from iTunes Store > Quicklinks > Purchased > Music > Not on this computer.
    While downloading click the download icon at the top right and uncheck Enable simultaneous downloads. You may find it more reliable that way.
    tt2

  • I currently have an I5 and as with the previous I4, both buttons have failed and now my battery lasts almost six hours if I don't use it. I cannot upgrade my phone until March, 2015 even though I recently upgraded my phone to the More Everything Plan.  Am

    I currently have an I5 and as with the previous I4, both buttons have failed and now my battery lasts almost six hours if I don't use it. I cannot upgrade my phone until March, 2015 even though I recently upgraded my phone to the More Everything Plan.  Am I destined to be a nonuser for three months until I can upgrade. This is very unacceptable as I've been a Verizon Wireless customer for probably 20 yrs!

    As a 20 year customer of ours, we certainly appreciate your loyalty Richey_Rich. I know the importance of ensuring you have a properly operating phone. Can you please clarify which button on the device is not working? Is there any physical or water damage to your phone? Any applications that stay running?
    Thank You,
    MichelleL_VZW
    VZW Support
    Follow us on Twitter @VZWSUPPORT

  • Validating record by checking all the previous records

    hi all
    i have a tabular form where i have values like
    from_acc to_acc
    100 200
    200 300
    400 450
    now when i enter a new record everytime i want to check the values from the firs record
    i want to make i a record level validation
    i want to know in which trigger can i write the code because in when validate record go_record is not allowed
    can any one help me how to go about it
    hi i want to make sure that the new record that user enters does not overlap any of the values of the from_acc and to_acc hence i need to navigate from the first record to the second last record .
    thanks
    mandar
    Message was edited by:
    bindok mulga

    U can use this type of code in when-validate-item trigger.
    (Here I am validating country name of countries table)
    declare
         vc_country varchar2(1);
    begin
         select 'x'
         into vc_country
         from countries
         where upper(country_name) = upper(:countries.country_name);
         message('Duplicate');
         raise form_trigger_failure;
    exception
         when no_data_found then
          null;
    end;
    Also when-new-record-instance-trigger has(countries datablock level) the code
    post;
    But I prefer to go for when-validate-item trigger combined with Kevin's method..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Executing the sam SQL Query again and again on the same records?

    Hi currently we have a system that will compute certain charge information base on a file finance department send to us from another system
    The problem is that their file contains of Account with bank records and account with no bank records.
    for thos account with bank records it will just send to us and we will just update it..and those account will be updated...
    but for those account that have no bank records ..it will send to us again and again..and these no bank records account will accumulate
    the finance department mention that there is not much they can do on their side except sending us the file
    is there any gd solution for this people kind to share?

    Well one simple solution which i can think of is to persist Non-bank accounts in a Serializable Object and save it in a temporary cache.
    Now before running a query on them and then trying to update the database checkout the peristed cache, check whether data records exist their or not
    if they do, dont update that records in the database.
    or define your database tables in such a way that there is an indication of abt bank & non-bak records and write a query / procedure in such a way that it do not update the duplicate non-bank records.
    Hope this might help :)
    REGARDS,
    RaHuL

  • Consider the previous record i on-commit

    Hi,
    I wrote a trigger on-commit:
    if :SYSTEM.CURRENT_BLOCK='SQTIPO' then
    if :SQTIPO_DET.MANSIONEC is null then
         message('Making the data on SKILL.');
         message('Making the data on SKILL.');
    end if;
    end if;
    commit;
    but if I move within the first and post a new record makes me enter without SQTIPO_DET.MANSIONEC values seen that only the control of the last record and not on the previous ones.
    What can I do?
    Thank you.

    When I create a new record result in an on-commit trigger :
    if :SYSTEM.CURRENT_BLOCK='SQTIPO' then
    if :SQTIPO_DET.MANSIONEC is null then
    message('exploit the data on SKILL.');
    message(' ');
    end if;
    end if;
    commit;
    but if they create no value to the other blocks of detail and in the end unless I'm in error asks me if I want to save your changes.
    If I can confirm I no longer go out until I say so.
    The error that I see is:
    INSERT INTO SQTIPO_DET(SQTIPOC,MANSIONEC,NUM_UOM,PERCINIZIO,PERCFINE,CODICE_ROLE) VALUES (:1,:2,:3,:4,:5,:6)
    ORA-02291: integrity constraint (MARIA.FK_SQTIPO_DET_SQTIPO) violated - parent key not found
    thanks ;)

  • How to leapfrog selected record and going to the next one

    Hi ,
    My DB 11G , OS Linux Redhat ,
    i have a Linux script to read the name of the files listed on the Table , then open those files and save the content on another table , i need to speed up the process by running this script multiple time , so i need to
    read the first record (File name ) then running the script again to check if the record already selected then go to the second record and so on .
    is there any way to check the selected row then leapfrog this record  and going to the next record .
    Im already tried (for update skip locked ) but this will  return ( no row selected message when locked ) and  when running on the 2 Scripts  it will considering it as same session and always will be the same .
    my query is (
    select bi_file_name
    from dbm_cdr_head
    where bi_file_name like 'hd_auto%' and bi_auto_status=35;)
    thanks

    Really its about 1 million file per day ( Telecom CDRS Calls Details Records) updated every minutes , i think its very difficult to keep track by External Tables ,
    thank you for you advice about advanced queuing i will going to read about this new concept for me

  • HT201441 i bought my iphone secondhand, and the previous owner didnt deltete his find my iphone account, so when i restored it i know cant access my phone, i need help as i have no way of getting intouch with the previous owner whatsoever :/ help!

    i bought my iphone secondhand, and the previous owner didnt deltete his find my iphone account, so when i restored it i know cant access my phone, i need help as i have no way of getting intouch with the previous owner whatsoever :/ help!

    Welcome to the Apple community.
    Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone.

  • I am trying to get into my new 2nd hand phone but have no details to his account and no contact with the previous owner

    i am trying to get into my second hand but have no details on his account and no contact with the previous owner how do i get in?

    If it has an activation lock set, you can't. Unless the previous owner removes it, the device is useless to you; Apple won't do this unless presented with the original receipt of purchase, and then only for the registered owner(unless they're dead).
    (110446)

  • I'm attempting to sync several albums from itunes to iphoto.  When select to sync all albums it copies over the previous recorded album.  I tried to sync the Albums individually and the same thing happens.  Any ideas on how to sync my albums?

    I'm attempting to sync several albums from itunes to iphoto.  When select to sync all albums it copies over the previous recorded album.  I tried to sync the Albums individually and the same thing happens.  Any ideas on how to sync my albums?

    Hi NWL1,
    Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Have a great day,
    Mario

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • Bought a new iphone and i cant activate it unless the previous owner deletes the account from their icloud but i lost contact with the previous owner how can i fix this?

    bought a new iphone and i cant activate it unless the previous owner deletes the account from their icloud but i lost contact with the previous owner how can i fix this?

    Take it back where you got and and get your money back.
    As has been pointed out, if there was a "previous owner", the phone is not "new". Thephone you purchased is most likely stolen. If whoever you bought it from won't give you your money back, turn it over to the police.

  • How do i uninstall iphoto? it was preinstalled on my macbook pro when I bought it used and I can only update with the previous owners password.

    how do i uninstall iphoto? it was preinstalled on my macbook pro when I bought it used and I can only update with the previous owners password.

    Do you have the current MacOS X version 10.10.2?
    Then you can simply move iPhoto from the Applications folder to the Trash,
    sign into the App Store with your own AppleID
    reload the "Featured" main page of the AppStore with ⌘R,
    then download iPhoto with your own AppleID.
    Make a backup of your iPhoto Library, before your launch the new iPhoto the first time,
    If your current system is not Yosemite, you can only buy a boxed iLife 11 version of iPhoto to install it independent of the previous owner.

  • I've found no way to sort.  For example, if I type the group "Rush" into the search bar, I get a list of songs recorded by rush and literally thousands of other songs and artists with the word rush in them. There is; however, no way to sort the results.

    I've found no way to sort search results in itunes.  For example, if I type the group "Rush" into the search bar, I get a list of songs recorded by rush and literally thousands of other songs and artists with the word rush in them. There is; however, no way to sort the results. 

    In the Search box click on the black Arrow and UNTICK the Search Entire Library.
    Then the Search results in Songs view will be displayed in the main Grid and you can sort them by clicking on the column headers.
    You can also turn on the column browser which can help with filtering

Maybe you are looking for

  • Cannot disable compatibility mode for all users once enabled

    I work for a school district technology department. For a computer lab that is using an old version of adobe Photoshop, we tried turning compatibility mode to windows xp and set it to run as administrator for all users in hopes that it might fix some

  • Is there a link to download BBOS?

    Hi All Anybody can tell me is there a link to download BlackBerry Z10 's OS? Thanks and Regards Solved! Go to Solution.

  • BILLING and PHANTOM CHARGES

    I have had verizon fios for about a year now. Every month I have had to contact them about charges for stuff I did not order. Movies channels and packages I did not order keep showing up. They put the MLB package on my bill and I had to call back 3 m

  • Safari-alert keeps popping on iphone5s...how to remove this?

    hi everyone! i have an iphone 5s with upgraded ios to 8.1...i was using safari to  search for movies when this popup came and continuously block my screen and asked me to call a number....it was showing safari-alert suspiciou activity mighthave been

  • AspectJ with real time java

    Hi Does real time java supports aspectJ with Load-time weaving ( LTW ) ? ( compile time weaving )