How to exchange the two values in the same column by using the UPDATE?

Hi all

I have a table named TEST, and it has a column called A.

and has values as follows:

A
------
10
20
30
40
50

My question is how to move '10' instead of '20' and '20' instead of '10' in the column? This permutation is only for the first two values (10, 20)

Note: Must be only in SQL, not in PLSQL.

Any advice?

Thanks in advance?

Update
test
the value a = decode(a,10,20,20,10,a);

Alexander gelin
http://nimishgarg.blogspot.com/

Tags: Database

Similar Questions

  • How to get the updated values of the loops while they are running

    Hello

    I am trouble with a very basic problem, how to access the updated values of the "loop FOR" during operation?  Basically, the VI I is currently working on two sub vis calls each sub VI has a loop for, and the two screws may or may not work for the same number of iterations. My goal is to read the values in each terminal within the loop of two sub VIs, in primary VI. I tried to do this using Global Variables, but in main VI it will display only the last iteration of the two value sub live. Could someone please tell me whrere I go wrong? Is there any other/better way to do this.

    I appreciate any input on this issue.  

    Pass a reference of the main VI control to the Sub screws.  See attached example.

  • When you click on a tab open, how to do the update automatically in the body of the page?

    When you click on a tab open, how to do the update automatically in the body of the page?

    Right clicking on a tab open and using the arrow keys now now moves through open tabs. I liked the old versions where just after having clicked on a tab you can directly go to the page with the arrow keys to navigate.
    Y at - it something that I can change the subject: config to change this behavior?
    Thanks in advance.

    Firefox has yet to set the focus in the area of browser if you click on a tab.

    Only with very old browser versions you could set the focus to a tab by clicking a tab.

    This problem is probably caused by an extension.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the start safe mode window or make changes.
  • My phone is locked and needs iTunes to restore it.  I think so?  But I don't want to update.  How to bypass the update.

    My phone is locked and needs iTunes to restore it.  I think so?  But I don't want to update.  How to bypass the update.

    Is it blocked because of the wrong password?

    If Yes: If you have forgotten the password for your iPad, iPhone or iPod touch, or your device is disabled - Apple supports

  • How to make the updates of operating system for the limited user account?

    original title: how to make the updates of operating system for the limited user account?  Limited user account cannot access the Windows Update page, see instead cautioned against MS the most recent must be installed.

    XP Pro SP3 slipstreamed.  New a DBAN nuked HDD installation

    All the OS updates installed from Admin acct before creating the LUA

    AV installed AVAST

    all dot net uninstalled and then reinstalled to resolve a problem installing Quicken

    Updates to auto lit

    Active Windows Firewall

    Three solutions of workaround for Windows XP running as a limited user

    http://blogs.Computerworld.com/16502/three_workarounds_for_running_windows_xp_as_a_limited_user

    Survive a Windows XP Limited user account

    http://techknack.NET/surviving-a-Windows-XP-limited-user-account/

    See the response from Michael Kuntz - re: HAL files

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/thread/e8612ac4-b881-4FB3-85e7-32004932fb5f

    There is an available for installation of SP3 Cd

    Manually installing SP3 using the Microsoft Download Center or a CD

    If you have problems to receive the service pack from Windows Update, you can download SP3 as a standalone package from the Microsoft Download Center Web site, and then install SP3 manually. The installation package is intended for it professionals and developers, but you can always download and install this file.

    You can also order a CD from Microsoft containing SP3. For more information, go to the Microsoft site.

    To manually install SP3 using the standalone package installation or CD

    1. Do one of the following:

      • If you downloaded SP3 from the Web site, to install it immediately, click Open or run and follow the instructions on the screen. To install the program later, click on save and download the file to install it on your computer. When you are ready to install the service pack, double-click the file.

      • If you install SP3 from the Service Pack 3 CD, insert the disc into your computer with your current version of Windows XP running, and Software Update Installation Wizard should appear automatically. If this wizard does not appear, click Start, double-click my computer, click on your CD or DVD drive and then click AutoPlay.

    2. In Windows XP Service Pack 3 page, click Next.

    3. Follow the instructions that appear on your screen.

    4. Once the installation is complete, click Finish to restart your computer.

    5. If you disabled your antivirus software, turn it back on.

  • BlackBerry smartphone how to remove the update of the operating system of your computer?

    Hello! I need help on how to remove the updates to the OS of my computer, I want to erase all other previous and new versions really wanted to clean

    I have tons of updates for my "BOLD" and just want to get rid of them and download an official version to download.

    Thank you

    I just found...

    Control Panel\Programs\Programs and Features\Uninstall or change a program

    Thanks anyway!

  • How to get the update?

    Please tell me HOW TO GET THE UPDATE! I'm pulling out my hair on the Adobe website doing what you can't do. (Sorry I can't help with that.) I have CS5 on Mac OS X and have received a document clearly created in CS5.5. But I can't find the update/update/download on the Adobe site. Thanks for any help.

    If you do not have the upgrade (updates are different and cost nothing... upgrades, you buy, but Adobe does not sell older versions) you may not use, if you could install the trial version which is good for 30 days.

    If you have the upgrade, you can download through one of the following links.  If you want the trial then use the other.

    CS5.5 - http://helpx.adobe.com/creative-suite/kb/cs5-5-product-downloads.html

    You can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS5.5: http://prodesigntools.com/adobe-cs5-5-direct-download-links.html

  • Satellite L30 - 11 d - how to exchange the screen?

    Hello

    I need help to change the screen on a Satellite L30 - 11 d. I accidentally pressed the screen that has a large black spot on him.

    Everything can show me how to change the screen with a new one please?

    Hello

    Unfortunately, you won't find manuals or on the pages of Toshiba disassembly instructions.
    I think that these instructions are made for service technicians only and are not for public use

    In any case, I think there is a lot of information on the internet and I think if you really need this info, then you should google a bit.
    But once again; It s always best to ask a technician for aid of the disassembly procedure is complicated and there is a high risk of damage this part.
    In the worst cases, damage another essential element which would be too expensive.

  • MS Explorer began to install the two updates when I was closing. Install the other ran all night. How to remove the update or complete? __

    Ideasms you have any problems with

    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello

    He's still trying to install? If so use the below, if not you can HIDE it from Windows Updates - right-click on LEATHER.

    Then, you can download it from the Download Center and try to install it. Of course, be sure that you really need the
    Update.

    MS Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    I guess that part of the question could be a driver which is really old or similar should not be loaded.

    This exit Windows updates on (after you have access) and stop the updates of the driver to load.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ---------------------------------------------------

    You can use the solutions in this KB - 3 methods and I listed a little help for them below

    The update is not installed successfully, you receive a message, and the computer restarts when you try to
    install an update in Windows Vista
    http://support.Microsoft.com/kb/949358

    Method 1: Start Windows Vista with the Windows installation media and use the repair feature

    How to do a startup repair in Vista
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    You can also do a safe mode startup repair to access the Recovery Options If you have them available
    or use the DVD as described above.

    This tells you how to access the System Recovery Options
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    Try recovery options Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    Method 2: Start the system in safe mode and then use the system restore feature

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    You can also do a restore of the system of starting with a Vista disk.

    Method 3: Rename the Pending.xml file, and then change the registry (this method is part of the advanced troubleshooting)

    See article below for that.

    You can use this method on the updates that have this problem.
    http://support.Microsoft.com/kb/949358

    Hide the update (click right - HIDE in the updates of Windows) and go to the Microsoft Download Center to download
    and install it.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    ------------------------------------------------------

    Once you are in Windows I was running once again reset here as a precaution.

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058

    Hope this helps sort it out for you.
    Rob - bicycle - Mark Twain said it is good.

  • How to keep the (update or delete, insert) triggering action in the table?

    Hello experts,
    I have create a trigger on update, delete or insert. I insert records into a table which records insert, update, or delete.
    I would also like to insert the revival of whick action the trigger as update, delete or insert.

    Here's my trigger code.

    create or replace trigger BOM_HISTORY_TRIGGER
    after update or delete or insert on BOM_HISTORY
    for each line
    Start

    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    END;

    HOW to keep the action in the table.

    also, there is error:
    WARNING: Trigger created with compilation errors.

    Please help to fix it.

    Thank you best regards n
    Yoann

    >
    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    >
    Unless I've counted wrong you have 9 mentioned columns but try insert 10 items.

  • [CS3 JS] How to force the update of XMP metadata for a thumbnail?

    Hi people,

    In a JavaScript in Bridge CS3, I update a value in the XMP metadata for a thumbnail. Later in the script I want to read the updated metadata XMP of miniature, but often the bridge didn't updated metadata at the time wherever I read it. In other words, my script reads the value before the update. I guess there is a problem of ongoing caching.

    I'm new to the bridge of script, and I hope someone here can offer suggestions on how I can (or even * if * I can) force the bridge to update the cache of the XMP metadata to a file so that when I read it later in the script reflect the recent changes. I tried to use Thumbnail.refresh (), but this does not seem to do the trick. I don't mind a slow script, I just want to be able to read the correct value.

    Thanks in advance for any help!

    -Jim

    Where is the line?

    Thumb.Metadata = new Metadata (updatedPacket);

    Try

    app.synchronousMode = true;

    Thumb.Metadata = new Metadata (updatedPacket);

    approx. synchronousMode = false;

    Metadata default bridge updates arrive in the background and not on the main thread, but using the mode synchronous here your script only continues to the next line, until the operation is complete.

    -David

  • How I restore the update to the BIOS on Satellite U400-157?

    I recently updated a Tempro alert for update of the BIOS for the notebook. Now, I noticed that the screen blanks a few times at PC startup. It was't there before. How do I roll back the update of the BIOS to a previous one.

    I don't get to see the BIOS updated screen other cases other than the time I did the BIOS update.

    Hello

    To be honest I don't understand exactly what your problem is.
    You said:. Now, I noticed that the screen blanks a few times at PC startup.
    Does that mean exactly? Is your black screen until Windows has started?

    To be honest, I put t think the BIOS update would be the reason for which go into the BIOS (press F2) and set the default BIOS settings (F9) and save the changes (F10).

    If you want to recover the BIOS version earlier, then you will need Flash module ROM BIOS using a basic BIOS version BACK. You will find on the European driver Toshiba page only the win versions

  • HP SLate 6 Voicetab: how to close the update of the Android system?

    Hello

    I don't want to install the updates to the Android system. Because the unit will issue.

    For this reason, I have sent in for service. Now, I don't want to install this update problem in the good work unit.

    How can I disable the Android updates. How to remove the notification area.

    Thank you

    HP Slate6 voicetab

    4.4.2 Android

    Update name: System essential updatetes for google android 1.01.07

    Hi there @ESAGLAM

    Welcome to the Forums of HP Support! I understand that you don't want to install an Android update and want to disable the notification. I'm happy to help you with this.

    First of all, you are not obliged to carry out an update of the system. It's up to you to install an update or not.

    One suggestion that has been put forward is to maintain the Notification in your notification window. Then select App Info. From there, you can disable the application. It is often only a temporary solution, because it is a core service of Google app can reactivate itself.

    Google did not include the option to disable the notifications of system update. Often, the only way to do so is by rooting the device or third-party apps. It's something that I can't recommend for several reasons. I refer you to this post in the forum by @SiobhanF with a very useful contribution by @WyreNut rooting.

    Other useful pages, I found related to notifications and automatic updates:

    How to disable the Notifications of App in Android - howtogeek.com

    How to disable the application updates automatic in Android - howtogeek.com

    I hope that this help and if it can help with your problem, please mark this message as a solution.

  • Re: How to run the update to the BIOS of the DOS - Satellite A100 PSAA8A command prompt?

    I'm having some trouble with my GF Satellite A100 (PSAA8A). When installing a new HARD drive with a clean install of XP, I flashed by chance, one of the BIOS when installing drivers. Its kind of bricks now.

    Using a floppy disk CD boot, combined with the update of the V6.00 BIOS, I goes to a DOS command prompt, but not sure where to go now.

    Under * Tradional BIOS update *.
    See the link: [http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/faq.jsp?z=234&service=EU&from=faq_selection&CFID=B IOS & FID = TRO0000000b07]

    It is said:
    + 1. Extract the zip file containing the BIOS upgrade to a temporary folder. +
    + 2. Three subfolders will be generated in the temporary folder. "docs", "update - 3.5' disc', 'Update - CD - R or CD - RW +.
    + 3. Insert a 1.44 MB diskette formatted in the floppy disk drive. +
    + 4. Run the *.exe file in the folder "" Update - 3.5 disk ". Follow the instructions on the screen. A BIOS update diskette will be generated. +

    But there is no 3 folder. There is only a single called S10VWF that contains Winphlash etc. (see photo url). As far as I know, I can only run Winphlash Windows environment due to its GUI. Then what should I do? Help!

    http://img.Photobucket.com/albums/v259/tRUkbOY/S10SWF.jpg

    Hi Brett

    There is a little thing that you have forgotten or supervised.

    The BIOS you downloaded is a version of BIOS to WIN. It s not traditional BIOS update!

    The description published in your ad describes the update using the traditional BIOS.
    But the Toshiba driver page only provides updates of BIOS based VICTORY. The BIOS can be upgraded only from Windows operating system running.

    Please don't mix these two possibilities of updates!

  • How to revive the update of softBricked phone stagefright

    I have a unlocked bootloader moto x XT1095 and after updating stagefright as my phone is blocked on the page "Bootloader unlocked warning."

    I can connect to the phone via fastboot. I want to give a stock image. When I run the command:

    fastboot flash partition gpt.bin

    I get the following error:

    (bootloader) Preflash validation failed

    FAILED (remote failure)

    How can I solve this problem?

    My 1095 has done exactly the same thing, after a lot of pain and suffering and lost hours, I had Flash the stock rom to 4.4.4 and then OTA upgrade up to 5.1 with the patch stagefright. Ignore the part of gpt.bin... It did not work on mine either, and the rest of the flash was very good. However, if you find out how to fix the part of TPG, which would be lovely. I want to clarify that the devs will remove your access to google reader to the stock ROM after a month or so, so if you have access, save them on your hard drive somewhere!

Maybe you are looking for