subquery correlated for update of the

Dear all,

I want to update the table below in a single update statement. Please find the details below. (I went through the FAQ to find out how to post queries for discussion. even if I made a mistake by posting my request, its my humble request to all, kindly you correct me where I got the error)

Version Oracle which I use is - Oracle Database 10 g Enterprise Edition Release 10.2.0.3.0 - production

Structure of the table (REFR) is

ACCTIDNUMBER
ACCTCODEVARCHAR2 (20)
ACCTSTANDVARCHAR2 (20)

and the data in the table (REFR) is

ACCTIDACCTCODEACCTSTAND
1ATFD-ic
1afded-ic
1afvse-ic
2ahbese-id
3kjfsese-id
3kjfs-ic
3kjftyh-ic

now I need single update statement to update the value of colum ACCTSTAND as

1. where registrations ACCTCODE for ACCTID ending with 'ic' I need to update as "acctic.

2. in the case where registrations ACCTCODE for ACCTIDending with 'id', I need to update as "acctid".

3. where registrations ACCTCODE for ACCTID ending in 'ic' and 'id' I need to be updated as 'acctid '.

Example of output

ACCTIDACCTCODEACCTSTAND
1ATFD-icacctic
1afded-icacctic
1afvse-icacctic
2ahbese-idacctid
3kjfsese-idacctid
3kjfs-icacctid
3kjftyh-icacctid

Thank you very much

Hari.

Update REFR r.ACCTSTAND set r =.

(select

When case (select count (unique substr (r1. ACCTCODE-2, 2)) of r1 REFR where r1. ACCTID = r.ACCTID) > 1 then 'acctid '.

When are. ACCTCODE like '% id' and then 'acctid '.

When are. ACCTCODE like '% ic' then 'acctic"end of double);

Tags: Database

Similar Questions

  • How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please?

    How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please? If possible, please cover all platforms, Mac, Windows, Linux, although the first mentioned is what currently applies to my situation.

    Thank you.

    Such a download is usually recorded in a updates or updates folder in the program folder or the Firefox application.
    You can delete this folder to cancel the download.

    If the files have already been downloaded, then delete the files in the folder updates\0 and updates.

    Mac: /Applications/Firefox.app/updates "/path_to/Firefox.app/Updated.app"
    Linux: "/path_to/firefox/updated"
    Windows: C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates
    
  • in previous versions of firefox (I'm currently on beta 6.0), you can search for updates of the add-on... This seems to be is no longer possible. Where can I get the latest updates for my Add-ons?

    I saw that you can right click on each module in the Add-ons Manager to search for an update on this specific point, but does not search the updates on the whole as before 4? (at least I remember in 3.x I could search for updates on the whole...)

    In the view of the modules, click on the symbol "gear" to the left of the search box.

  • How to replace "apply downloaded update now" with "Check for Updates" in the menu help when the update fails because the downloaded update files are missing but the "Ready to install update" window keeps appearing?

    Question

    I have another type of problem with Firefox

    Description

    Window "Ready to Install" Firefox "Software Update" appeared. The folder "C:\Program Files\Mozilla Firefox\updates\0" contained the files update.mar, update.status and update.version. Each of the 3 files have been deleted. The next time that Firefox has been started, no update occurred because update files were missing. In the Menu bar, clicking Help showed in the menu drop-down that "apply downloaded update now" was always on the list. By clicking on "Apply downloaded update now" open "Software Update" window "Ready to install update", so that Firefox still considers that the update files exist, but they do not. In the window "Software Update", by clicking on "Restart Firefox" restart of Firefox, but once again it there's no update, and remains "apply downloaded update now" on the Help menu. How can "Apply downloaded update now" be replaced by "Check for Updates" so the update files can be downloaded?

    Version of Firefox

    3.6.3

    Operating system

    Windows XP

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3

    Plugins installed

    • npmnqmp - 989898989877
    • NP-mswmp
    • Adobe PDF plugin for Firefox and Netscape "9.3.2.
    • Default plugin
    • Foxit Reader plugin for Firefox and Netscape
    • Shockwave Flash 10.0 r45
    • Version 1.0.3 copyright 1996-2009 The VideoLAN Teamhttp: / /www.videolan.org/

    You can manually reset the software update feature by closing Firefox and remove the file "updates" (which seems you have done) and the two files "active - update.xml" and "updates.xml" - these are in the installation (C:\Program Files\Mozilla Firefox) directory or in the profile folder (C:\Documents and Settings\nom_utilisateur\Application Data\Mozilla\Firefox\Profiles\something.default).

    If it does not, see our KB article How to resolve the failure of the update of Firefox update error message - the section of 'last resort' can be useful, or or read this article from MozillaZine KB, software update.

    Please let us know how the above work, and if we can be of further assistance.

  • Error "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer. "after replacing hard drive

    I've upgraded to a replacement hard drive, but Windows Update won't work now. Everything else seems OK.

    The error is: "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer.

    I restarted the computer a couple of times and in respect of the Services runs it the Windows Update service.

    Operating system is Vista 64 bit.

    Original title: Windows Update

    I've upgraded to a replacement hard drive, but Windows Update won't work now. Everything else seems OK.

    The error is: "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer.

    I restarted the computer a couple of times and in respect of the Services runs it the Windows Update service.

    Operating system is Vista 64 bit.

    After the upgrade to the bigger hard disk, I found that the technology Intel Rapid Storage Technology driver should be updated. Once this is done Windows update ran properly. Microsoft Fixit did not help in this circumstance.

  • Cannot install Windows update, the error message "" Windows update canoe currently check for updates, because the service is not running ".

    Initial version of updated title: windows

    My "Windows update" is not updated. The problem started recently and its shows the error message "Windows update canoe currently check for updates, because the service is not running. You may have to restart your computer "." I tried it with several reboots, but there still is not up to date. Kindly help.

    Hello

    Have you made changes on the computer before this problem?

    Method 1:

     

    Troubleshoot problems with installing updates.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Method 2:

    Try the procedure described in the following article and check the status of the issue.

    http://support.Microsoft.com/kb/822798

    Restart the computer and check it please for windows update.

    Hope the above information is helpful.

  • Can't get updates for Windows, "Windows Update cannot currently check for updates, because the service is not running." You may need. "" Restart your computer.

    When I try to install the updates I receive the message "Windows Update cannot currently check for updates, because the service is not running."  You may need. "" Restart your computer,   It does not also. check me the update history

    Hello

    1. you made any hardware or software changes the computer recently?

    2. What is the number of update?

    3. do you get this message for all the updates?

    Follow these methods and check if that helps:

    Method 1:

    Step 1.

    Unplug all external devices, restart the computer, and then try to install updates.

    Step 2:

    I suggest that you follow the steps mentioned and try to start the Windows update service.

    Check if the following services are running.

    (a) Background Intelligent Transfer Service

    (b) cryptographic Service

    (c) Windows Update

    (d) Windows Installer

    a. Click Start, type "services.msc" (without the quotes) and press ENTER.

    b. double-click the service name in the Services list.

    c. under the general tab, next to startup type, make sure that automatic is selected.

    d. If the service is not already running, under Service status, click Start and then click OK.

    e. once the services are started and defined as running, try to install the updates and check.

    Method 2.

    You can follow the steps in this article: http://support.microsoft.com/kb/2509997

    Warning check disk.

    Important: All by performing the check disk on the hard drive if bad sectors are found then check disk try to repair this area, all available data on this sector can be lost.

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/)

    How to back up and restore the registry in Windows

    See also: the problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

  • "The Windows Update cannot currently Check For Updates, because the Service is not running. You may have to restart your computer.

    Unlike before, I can't launch the Windows automatic update service now, I suspect that my computer is infected virus, I just install demo version free of McAfee internet security and run a full scan, no infection has been detected.

    Description:

    When I click on Windows update for all programs at startup, pop out window update, and then I click on "check update", out another part: list "" Windows Update cannot currently Check For Updates, because the Service is not running. "You may need to restart your calculater ', then I restart the computer a few times, the same problem still persists. before I was using microsoft essential secruty with no problems, but now I can't seem to complete the definition of update, so I think this problem could be related to Windows Update and decide to uninstall MSE and replace it with McAfee, but it does not work.

    any help and suggestions would be very appreciated.

    Hello

    Steps 2 to 6 to identify the program that is causing the problem if the clean boot solves the problem.

    Try the procedure described in the following article to improve your computer's performance.

    Optimize Windows 7 for better performance.

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    Ways to improve your computer's performance.

    http://Windows.Microsoft.com/en-us/Windows7/ways-to-improve-your-computers-performance

  • After installing Windows 7 using MDT, Windows displays the message "Windows Update cannot currently check for updates because the service is not running.

    Hi all

    I worked on creating a better system for my business get an OS up-to-date with all the required software, settings, and drivers. I have previously using WDS as autonomous and just syspreping images and pushing them up until he became incoherent and corrupting of the parts of the image. I did a little surfing on the web and discovered that many computing professionals use MDT to produce images of quality with all the customization they need. So that's the problem.

    The image works fine. I'm able to customize the way in which I need to and get most of my successful deployed pilots (problem with trackpad drivers), but the error message I get when I try to run a windows update is "windows that update cannot currently check for updates because the service is not running." After I received this message I check my services and it shows the update of Windows running service and long-term as well running services. Tried to restart as suggested and still no results. Undertook research for a possible fix and still nothing.

    Any help?

    It became quite a headache for me. Thank you guys

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand that you have problems with the installation of Windows Update.

    If you your computer are connected to a domain network?

    If Yes, then post your query in TechNet forums because they have more expertise in this issue to help you better. Please follow the below link to do the same.

    T echNet Forums for Windows 7 
    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking

    Hope this information helps.

  • Java will not update when checking for updates to the addon of Firefox 17.0.1

    Firefox 17.0.1, xp, sp3

    I got to tools > Add-ons, search for updates. It says 'Java (TM) Platform SE 7 U9' and "Java Deployment Toolkit 7.0.90.5" as obsolete.

    I am the part update and download updates. But, when I check it again, Firefox tells me that they are still not updated.

    I remove all the Java Control Panel and check with 'Hijack this' and ccleaner, reboot the computer, and then do the Java download again on the Java site connected by Mozella firefox links updated. I do all the updates process.

    After I check again when the update control module, it still shows both the Java above as always be exceeded.

    (What is happening here

    See for possible solutions:

  • Error "Windows cannot check for updates because the service is not running.

    I am using windows vista 64-bit ServicePack two on my laptop. I recently had to install new hard disks. Since then, Windows update does not work. When I check the updates dialog box appears indicating that Windows cannot check the updates because the service is not running. I used the Microsoft fix - it tool, and it recognizes that there is a problem, but cannot fix. History of the update is completely empty. I would appreciate any ideas on how to solve this problem.

    Please read this article:

    http://support.Microsoft.com/kb/2730071/en-us

    Another suggestion is maybe disable the updates of Windows

    Reset.

    Activate the Windows updates.

    Try again. (Worked for some)

    http://Windows.Microsoft.com/en-AU/Windows/turn-automatic-updating-on-off#turn-automatic-updating-on-off=Windows-Vista

  • Public API for update of the Phase of time because any spending Plan and revenue Plan

    Hello

    Is there a public API on draft update of the Phase of time against zero in terms of spending and revenue Plan?

    Steps to manually configure the time Phase for the spending and revenue plan Plan:

    Project > finance > Budgets and forecasts > change the scheduling Options > click OK > select Plan type Budget > change > tab parameters of the Plan:

    On the spending Plan section > time Phase = "period of PA.

    On the revenue plan section > time Phase = "period of PA.

    I followed note 1292958.1 to check what are all the APIs available on projects now but I do not find any API for the Phase of time.

    Thank you

    Diana

    A colleague helped me with a response.

    According to the 1295817.1 note - you can use the PA_BUDGET_PUB. UPDATE_BUDGET API to change the setting time_phased_code on 'P' (PA_Period), 'G' (GL_Period) or "n" (no steps) as well as the version of the financial plan information.

    Thank you

    Diana

  • Error number: 0 x 80240025 when you try to search for updates on the update site

    Trying to find updates on the download site. Something I've done many times before

    Hi Chris,

    It seems that your computer is connected to a server/network on the right?

    Becuse that this issue is on the rights to run the windows update.
    Your computer has got a 'rule' do not allow to download updates.

    It can be attached with the following text:

    Group Policy setting
    If you check the registry key DisableWindowsUpdateAccess, you
    likely to find the following:
    HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate
    DisableWindowsUpdateAccess REG_DWORD (1)

    S-1-5-18 cards to the SYSTEM ACCOUNT

    To correct this problem, set the value to 0 or delete the key.
    You may also need to check that you don't have a group policy which
    keep setting this value to 1 to avoid the problem to occur after a
    policy is refreshed.

    Kind regards

    Joel

  • Firefox keeps looking for updates when the new tab open.

    I'm under the latest version of Firefox (40.0.3) with adblocker more like my single addon. However whenever I try to open a new tab it take ages to open because Firefox is constantly looking for an update. It takes 2-3 minutes each time. Did you try refreshing Firefox, uninstall and reinstall without success. My system is 8.1 Win on a Lenovo PC i7. Everything worked well until the last FF update. I have no problem with the same version installed on my laptop.
    Any help/suggestions would be apprciated. Thank you.

    As long as it works. Play well.
    Please report your last post as solved while others will know.

  • Satellite A500 boot UEFI/legacy option - request for update of the BIOS-

    I am the proud owner of a Satellite A500 PSAR9A - 02S 001
    I was very happy with it over the years.

    However, when you try to dual boot, I use in all sorts of problems.

    I really need uefi/legacy startup options to be unlocked in the bios menu
    I think that this feature is present
    However there is no options to configure in bios, please release an update for this.

    Please, I beg you.

    It would help me a lot.
    Not too much talk of what all the other hidden settings in the bios u could also unlock.
    I'd appreciate any help in this

    Post edited by: Bigwheels

    As far as I know, Toshiba offers a few changes of BIOS options and is not also a part of the BIOS updates.

    What kind of problems you have with dual boot?
    What is preinstalled on your computer? Post please some info on exact OS install.

Maybe you are looking for

  • I can't download the file in the browser

    I have a alcatel one touch 2040d, no download link in the browser does not download the file andHow to upgrade firefox os1.3 2.0 in my phone

  • Thunderbird crashes whenever I try to attach a file

    Whenever I try to attach a file that Thunderbird crashes Firefox when I try to use the e-mail program online on Yahoo o/s is 7 below is windows error reporting. eScription: A problem caused this program to stop interacting with Windows. Signature of

  • Download TOSHIBA Value added Package

    I just uninstall the TOSHIBA value added package from my laptop because I had problems of Visual support cards, but now I can't find the last version of the added value of Toshiba pack on the website www.isd.toshiba.com.au/support in order to downloa

  • Executable file

    I'm looking for advice run a stand-alone executable on a computer that does not have LabVIEW. I understand that when I generate the executable file and move the computer free of LabVIEW, I need to install the runtime. My question relates to create mu

  • EOS Solution Disk v28.1 on Mac installation problem.

    Yesterday, I received the EOS camera 700 d and when I tried to install the EOS Solution Disk nothing happened. Nothing seems to happen when I click on the install icon. This happened to someone?