How can i make update efficient

Hi,
I have one update statement updating column from value coming from cursor. And its taking time I don't wanna use cursor and update the statement.
<CODE>
DECLARE
CURSOR c1 is select distinct hicn , h from provider_assign_logic;
begin for x in c1
loop
UPDATE provider_assignment_logic p
SET p.provider4 = (SELECT provider_id FROM (SELECT *
FROM provider_assignment3 p3
WHERE hcc = x.hcc
AND trim(hicn) = x.hicn
AND provider_id NOT IN (SELECT provider1
FROM provider_assignment_logic p1
WHERE trim(p1.hicn) = trim(x.hicn)
AND p1.hcc = x.hcc)
AND provider_id NOT IN (SELECT provider2
FROM provider_assignment_logic p1
WHERE trim(p1.hicn) = trim(x.hicn)
AND p1.hcc = x.hcc)
AND provider_id NOT IN (SELECT provider3
FROM provider_assignment_logic p1
WHERE trim(p1.hicn) = trim(x.hicn)
AND p1.hcc = x.hcc)
AND ROWNUM = 1
ORDER BY claim_count,service_date DESC))
WHERE p.hicn = x.hicn
AND p.hcc = x.hcc;
commit;
end loop;
<CODE>
Can you please let me know how i can write update statement efficient without cursor.
Thanks for help!
Appreciated!
Thanks,
Nick
end;

btw it's , not <CODE> - see the FAQ for more formatting tips.
Also there's a COMMIT inside the loop.                                                                                                                                                                                                                           

Similar Messages

  • How can I make sure iTunes doesn't stop updating my podcasts

    OK I'm subscribed to multiple podcasts, but I don't always get a chance to listen to them so some of them will stop updating and it says something like "iTunes has stopped updating this podcast because you haven't listened to any episodes lately".
    How can I make sure it doesn't do that? When I do get to listen to my podcasts, I would really like it if they weren't 3 weeks old.
    Message was edited by: MacAttakk

    someone made a script that fixes this. It seems to work for me. If you want it to do it automatically just make an iCal even for every 3 days or something that runs this script.
    http://dougscripts.com/itunes/scripts/download.php?sc=updateexpiredpodcasts

  • Hey there! So I plugged in my ipod to my computer and it didn't show up where it normally does. I need to update my song list. How can I make it appear? It doesn't come up in Iphoto. A few days ago my sispluggeditintoanothercomputerbutidon'tknowwhatshedid

    Hey there! So I plugged in my ipod to my computer and it didn't show up where it normally does. I need to update my song list. How can I make it appear? It doesn't come up in iphoto either. A few days ago my sis plugged it into another computer but I don't know if she synched it to the other computer, and frankly, she won't remember. I have tried updating itunes, charging the ipod, restarting the ipod/computer, and the rest of what the apple site said to do. Ps I have the latest ipod touch
    I need help stat! Please help!

    I'd say your sister messed up and your iPod is toasted.
    Think about it...  She plugged it in to another computer, she doesn't remember what she did (yeah, right), and now your iPod is not being recognized by your computer... 
    Also take into consideration how old is your sister, and how much does she know about electronics?

  • How can I make a new genius mix? Apple has made two automatically, but I would like one based on other genres within my iTunes library. I have tried updating my genius mixes to no avail.

    How can I make a new genius mix? I do not want to make a genius playlist. Genius has already created two mixes but I would like another based on other genres within my extensive music library. I have tried updating Genius from Store>Update Genius but to no avail. Thank you!

    Hi. The two user tips both describe a sequence of steps that should get your library from the point where it threatens to wipe data from your device to where it is syncing normally, while recovering as much information as possible. It may still be necessary to wipe and reload the device but this should only take place once all the data that can be recovered has been recovered.
    Doing step 1 of 8 and then complaining things aren't the way you want them to be yet strikes me as premature...
    Since you appear to have all your media content, and we are discussing an iPod classic, not an iOS device, the main worries are already taken care of. What's left is ratings, playcounts, playlist membership and checked status. Since your device holds only part of your library at best you could only recover the missing data for the content that is on the device using third party tools.
    Recreating the previous checked/unchecked status of every track in your library from where you are now may not be that easy. Syncing with selected playlists has many advantages, one of which would have been that you would have a named playlist that could have been retrieved by 3rd party software if you had used this method.
    You haven't explained what caused your problem in the first place, but if you have a Previous iTunes Libraries folder holding old copies of your iTunes database (generated with each iTunes update) then it would be possible to restore the most recent of these and then update the library with any changes in your media folder.
    BTW Apple doesn't offer free support for this kind of issue with iTunes.
    tt2

  • Connect 2 iPhones with 2 different apple ids to the macbook for updates and backup through iTunes match and iCloud. How can i make that happen?

    We have a mac book pro and 2 i phones 4S. We both have different Apple Id's. But we would like to connect both phones to the mac book in order to update photos and itunes match. I subscribed with my apple id to itunes match and it automatically updates apps, music, books etc. However the apple id of my husbands phone is not recognized so his music, apps etc are not automatically updated. The same happens with icloud.
    How can we make the mac book recognize both phones?

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • I have OS 10.4.11 and iTunes 9.2.1 (5). My iPhone 4s does not appear in iTunes. only iPhoto recognize my iPhone. Update of iTunes seems not possible. How can I make appear my iPhone in iTunes?

    I have OS 10.4.11 and iTunes 9.2.1 (5). My iPhone 4s does not appear in iTunes. only iPhoto recognize my iPhone. Update of iTunes seems not possible. How can I make appear my iPhone in iTunes?

    From the box the iphone came in:
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.5.8 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.5 or later (free download fromwww.itunes.com/download)"
    You will need Mac OS 10.5.8 or later in order to get itunes 10.5 or later, in order to connect your iphone.

  • I just bought a (used) Iphone 3gs for wife and it had angry birds and $89 Navigation on it (I paid extra for it).  Once updated and logged into my I-tunes it no longer works? How can I make those apps work?

    I just bought a (used) Iphone 3gs for wife and it had angry birds and $89 Navigation on it (I paid extra for it).  Once updated and logged into my I-tunes it no longer works? How can I make those apps work?

    Apple doesn't have anything to do with this other than enforcing the DRM protection. The developers of this content expect to be paid if someone wants to use their content. When you purchase content in the app store, you purchase a license to use the content. This license does not permit you or anyone else to resell or give this content away. The individual you purchased the phone from simply does not have the right to sell or give away any purchased content on the phone. You were deceived.

  • I am making an iMovie trailer on my iPad 3(updated) and I recorded a few clips on my iPad Camera but they are not being detected on the iMovie Videos section. How can I make them show up?

    I am making an iMovie Trailer on my iPad 3 (updated) and I recorded a few clips using my iPad Camera but they are not being detected on the iMovie Videos scetion. How can I make them appear so I can use them in my trailer?

    Hi Stuck-in-NY,
    If you are looking to transfer your purchases to your computer, you may find the following article helpful:
    Apple Support: Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Regards,
    - Brenden

  • I have recently updated my computer and it has imessage on it but sometimes they dont send them to my phone how can i make all the messages be on both?

    i have recently updated my computer and it has imessage on it but sometimes they dont send them to my phone how can i make all the messages be on both?

    See Here  >  About Messages
    Using Messages  >  http://support.apple.com/kb/HT3529
    Troubleshooting Messages  >  http://support.apple.com/kb/TS2755
    Mac 101: Messages
    http://support.apple.com/kb/HT5395

  • Since updating to ios7 i can no longer partially download emails and this is using up all my data plan. How can I make Mail only be partially downloaded again?

    Since updating to ios7 i can no longer partially download emails and this is using up all my data plan. How can I make Mail only be partially downloaded again?

    YEA!  My jurryrig worked!  To all with this problem:
    You CAN have podcasts in a regular playlist IF you convert them to a standard MP3 first.  So, yes, a lot of manual labor
    The good news: if, like me, it is a track that you listen to frequently (in my case meditations for sleep and relaxation) then the time is worth it.  I will mess with automator later to see if there is anyway to script this!  Then, less work for me and more for my mac.
    Here are the steps:
    Select the file from your Podcast folder.
    Change all data you need -- "artist," "album" etc...
    Make a copy of the cover art for this file by dragging it to the desktop.
    Select the Advanced -> Convert ID3 Tags menu item.
    Check ID3 tag version, and select "v1.0" from the drop-down menu.
    Drag the file to the desktop (this will make a copy of the MP3 on the desktop)
    Delete the file from the iTunes list.
    Drag the copy of the file you have on the Desktop back into iTunes.
    Search for the file in the Library, and add the cover art again to the file.
    Now the file is out of the Podcasts folder and works like a regular MP3 file inside iTunes. You can re-add it back to playlists!

  • My Iphone5 is frozen as I was updating. Message from iTunes - Unknown Error. But now can't restart. How can I make it restart

    My Iphone5 is frozen as I was updating. Message from iTunes - Unknown Error. But now can't restart. How can I make it restart

    Hey sokkas,
    Thanks for the question. I understand you are experiencing issues updating your device. The following resource may assist you:
    If you can't update or restore your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT1808
    Additionally, if you are receiving an error message when attempting to update or restore, see the following:
    Resolve iOS update and restore errors
    http://support.apple.com/kb/TS3694
    Thanks,
    Matt M.

  • ITunes updates podcasts each hour but won't refresh. When I sync my iPhone, it gets yesterdays podcasts and I have to manually hit refresh to make it update. How can I make it automatically refresh?

    iTunes updates podcasts each hour but won't refresh. When I sync my iPhone, it gets yesterdays podcasts and I have to manually hit refresh to make it update. How can I make it automatically refresh?

    I think figured out what is going on here... If you have set your Windows OS time manually, Apple iTunes will not honor the time you set in Windows XP...
    In my case, I had not applied the Windows update that changes the Daylight savings rules. No big deal I thought... I can easily correct the time manually. Well... iTunes will not like it if you do that. You have to have your daylight savings rules set correctly on the PC. Microsoft has a free program called TZEdit that will let you adjust the DST boundaries.
    Once I set the rules correctly and then set my time keeping back to "Automatic" it fixed it. Hope this helps...

  • I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    It's not clear why Apple made this change; speculation (which is not really allowed in these forums) is that it was done to protect the privacy of the caller.

  • Until the most recent update when the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?

    Until the most recent update when the url that I wanted in the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?

    cor-el, thank you so much. That fixed it, but does this mean I can't use AVG Safe Search.Is there a substitute? I do like the security (hopefully real) that it offers. What now? How do I get out of Safe Mode?
    Sherry

  • After updating to mavericks on my MacBook, the screen keeps saying "setting up your mac." It has been like this for hours! How can I make it go faster?

    After updating to mavericks on my MacBook, the screen keeps saying "setting up your mac." It has been like this for hours! How can I make it go faster? It's has been like this for 4 hrs.

    I don't think your mac is setting up. It's stuck.
    I would:
    hold the power button until it shuts down
    unplug all peripherals
    do a safe boot (restart and hold down the shift key until you see the apple logo).
    If it starts up in a safe boot, then you can try restarting with a normal boot.
    If it does not start with a normal boot, then you probably have some incompatible third party software. Likely culprits are:
    MacKeeper
    CleanMyMac
    third-party antivirus software
    any other "cleaning" or "optimizing" or similar third party "utilities".
    A good place to start would be to uninstall any of those (while in safe mode) and then restart.

Maybe you are looking for

  • I can't burn a playlist to a CD-R or CD-RW

    Trying to make a mix CD. Tried two different types of CDs. Downloaded current iTunes update. CD-RW will play in car but not on Bose home stereo. CD-R for music spits CD out and says The attempt to burn a disc failed. The device failed to respond prop

  • How to test credential Mapping

    I have used the default adapter provided by the BEA n also made some services n events working on it sucessfully, and also made a mapping between the remote user n the WLS user in the WLI console.wat i want to know is how do i test the mapping that i

  • Itunes now shows "album by year" - how do I get back to just "album" ??

    my itunes library shows track name, artist, track #, time, year,and used to just show the album name. I know I can sort by clicking on either artist, album, etc. now, suddenly, instead of "album", it shows the heading "album by year" and I can't get

  • Can anyone suggest an international GPS nav app that offers map and POI downloads for offline access and route search?

    I'm going to be in the UK with an American phone, don't expect mobile data, and I'd like to use this app instead of the £30 up charge for a rental GPS... I've seen the free Navfree and the cheap as free MotionX Drive, but have read Navfree has some s

  • Photoshop CS6 CC liquify just has blank grey screen.

    hi i am currently on a trial for CS6 CC version on Windows 8 but every time i try to liquify an image all that happens is a blank grey screen. The weird thing is i can click and edit the area of the grey screen and if i click OK to finish the liquify