Simple date format update/cleansing not working

Dear All,
Some rows are not being updated after update
create table X(
Surname varchar2(20),
dob varchar2(20),
dobupdate varchar2(20));
insert into X values('Hookman','22-Apr-78','22-Apr-78');
insert into X values('Beverly','21/06/1966','21/06/1966');
insert into X values('Wickham','01/23/1985','01/23/1985');
insert into X values('Logmann','26/Dec/1972','26/Dec/1972');
insert into X values('Scooby','30.04.1966','30.04.1966');
insert into X values('Trumph','15-August-1967','15-August-1967');
insert into X values('Delaware','Aug-03-1961','Aug-03-1961');
insert into X values('Wicked','03.Sep.1961','03.Sep.1961');
insert into X values('Orlando','18.September.1961','18.September.1961');
SURNAME DOB DOBUPDATE
Hookman 22-Apr-78 22-Apr-78
Beverly 21/06/1966 21/06/1966
Wickham 01/23/1985 01/23/1985
Logmann 26/Dec/1972 26-DEC-1972
Scooby 30.04.1966 30-APR-1966
Trumph 15-August-1967 15-August-1967
Delaware Aug-03-1961 03-AUG-1961
Wicked 03.Sep.1961 03-SEP-1961
Orlando 18.September.1961 18.September.1961
9 rows selected.
=====================================
--Code below is meant to update person Beverly
Update x set dobupdate = to_char(to_date(dobupdate,'DD/MM/YYYY'),'DD-MON-YYYY')
where dobupdate like '__/__/____';
error - not valid month
=======================================================
--Code below is meant to update person  Trumph
Update x set dobupdate = to_char(to_date(dobupdate,'DD-MONTH-YYYY'),'DD-MON-YYYY')
where dobupdate like '__-_____-____';
0 row/s updated
=========================================================
--Code below is meant to update person Orlando
Update x set dobupdate = to_char(to_date(dobupdate,'DD.MMMM.YYYY'),'DD-MON-YYYY')
where dobupdate like '__._____.____';
0 row/s updated
Where am I going wrong. I hvae no problems with updating other records in the table except fot just these three patterns.
Help please.
Cube60

Thanks Warren, both suggested codes did not work and I can see why now. Alex has pointed it out.
Alex brought me to realise Wickham's DOB is in the American format. The update query could not resolve that format and how to update it but at least it could have updated that of Beverly and left that of Wickham.
After deleting Wickham completely, the update query worked on Beverly.
Am just doing some data cleansing from a poorly designed Access database now meant for Oracle.
So nothing can be done to resolve such mixture of date formats, I mean Uk and American.
But now, Why are the update statement below coming with 0 records updated.
The dates to be update are written like this 15-August-1967 and 18.September.1961 respectively
--Code below is meant to update person Trump
Update x set dobupdate = to_char(to_date(dobupdate,'DD-MM-YYYY'),'DD-MON-YYYY')
where dobupdate like '__-__-____';
0 row/s updated
=========================================================
--Code below is meant to update person Orlando
Update x set dobupdate = to_char(to_date(dobupdate,'DD.MMMM.YYYY'),'DD-MON-YYYY')
where dobupdate like '__._____.____';
0 row/s updated
many thanks
cube60
Message was edited by:
cube60

Similar Messages

  • Formatted Search for Delivery Date field in SO not working

    Hi All
    Can anyone help me as to why my formatted search is not working?
    I am currently using SAP B1A SP01 Patch 19.
    I have created a user query as follows:
    SELECT $ [$10.0.DATE] + 5
    When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
    Any ideas?
    Thanks and best wishes
    Gail

    HI Gail,
    If I am not mistaken you want to add days to the posting date...if that is so then try this out:
    SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
    Set The indicator to Auto Refresh when the fields change
    Nagesh

  • WSUS "Self-update is not working" after new certificate

    After creating a new self-signed certificate in SBS 2008 wizard we get the following error:
    Text: Self-update is not working
    Source: Windows Server Update Service
    Event id: 13042
    I know that it must be something simple. But I can not find the solution.
    Can anyone help me with this problem?
    Thanks

    Hi,
    Based on your description and this error message, this issue may be caused by:
    The Default Web Site is not running and/or has a site binding for SSL (HTTPS).
    The Selfupdate virtual directory has the "Require SSL" checked under the SSL settings.
    For more details, please refer to the following KB and check if can help you to solve this issue.
    WSUS 3.0 Self-update is not working on Windows Small Business
    Server and Event ID 13042 is generated
    If anything I misunderstand or any update, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • TS1538 Ios 5.1.1 update did not work

    The update did not work.  I downloaded the udpate last night, through ITunes and did the update this afternoon.
    The phone hung during the update, and now only shows the connect to itunes on the screen.  Itunes does not see the phone.
    When I look in the device manager, I see the drives listed in the Other Devices, and there are two of them listed as "Apple Mobile Device (Recovery Mode)  Tried to update them, but the dirives are no longer on my pc, where Apple said that they should be.
    I am clueless now. 
    The last update had a simular problem.
    This is an IPhone 4

    Then you should try uninstalling iTunes and all of its components as by following this guide: Windows XP or Windows Vista/7, then reinstall iTunes.  This should replace the drivers.  You must follow this guide exactly or it will not be successful.  Note: uninstalling iTunes will only remove the application; it will not touch your iTunes library, data or your iPhone backup.

  • G50-45 : windows 10 update is not working

    Hi G50-45 : windows 10 update is not working ive installed 6 times whole 3 gb data ... BUT its not getting installed .. this is the error Search results for "WindowsUpdate_80200056 OR WindowsUpdate_dt000"‎ (1) ive tried installation via usb tooit ask for serial number .. when i enter serial of 8.1  it says login as normal windows and then restart please suggest regards rahul

    HI ive just retried to do install.. it says : something happened .... and then installaed stopeed at 30 % regards

  • Windows update does not work after using System recovery disk

    I have a Toshiba Satellite c655 with WIndows 7 64 bit Home premium. The hard drive died on it, so I purchased a new hard drive and purchased the appropriate Recovery media from Toshiba. I followed the directions and installed the 3 disks on to the new hard drive. But Windows update does not work I get the following error: Windows update can not currently check for updates, because the service is not running. You may need to restart your PC    No matter what I try, I can not get it to work. And it will not let me install Windows Defender either. Any ideas or help would be appreciated. Thank you in advance for your time on this matter.
    Solved!
    Go to Solution.

    I get errors saying A problem is preventing the troubleshooter from starting.
    That makes two similarities to the following thread. Both Windows Update and Troubleshooters fail to work correctly.
       Trouble with reinstall of Win7 64 on a L505-ES5018
    The fix was to install a new hard disk driver.
       Intel Rapid Storage Technology
    -Jerry

  • Phone not working after OS update, phone not working after OS update

    phone not working after OS update, phone not working after OS update

    I do have a questiion.  I started the most recent iOS update on my iPhone last night and before it was ever completed a message appeared on my screen.  It is a pic of the docking/charging cord with an arrow pointing to an iTunes logo...HELP!!!!!  I have tried holding down the home key and power button several times and the same message continues to appear. 

  • Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working

    Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working.
    I have tried reseting to factory settings by removing battery and holding down the power switch for more than 5 sec but this does nothing.
    Any ideas would be greatly appreciated as I think with so much unwanted data on the desktop and other places the whole os will crash very soon.
    Thanks, Rick

    The hard drive may be dying anyway, or the directory damaged because it is so full.  You should never let the hard drive get over 85% full.
    A -36 error is a read/write error.
    All you did with the power is reset the SMC.  Does nothing to reset everything to factory settings. 
    Do you have your original 10.4 installer discs for the MacBook?
    Is your data backed up?

  • Safari is not working on the Mac. Internet is fine, mail, App Store etc all working and connecting to Internet fine. Done the latest software update, still not working. When selecting a web address from bookmarks or typing in search bar, partial blue bar.

    Safari is not working on the Mac. Internet is fine. mail, App Store etc all working and connecting to Internet fine. Done the latest software update, still not working. When selecting a web address from bookmarks or typing in search bar, partial blue bar only and coloured wheel appears.

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the malfunctioning extension by uninstalling and reinstalling it. That will revert its settings to the defaults.
    If extensions aren't causing the problem, see below.
    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MEASAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER!

    I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MESSAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER! ALSO IF I KILL MYSELF I WILL HOLD YOU PERSONALTY RESPONSIBLE.edit

    There is a world of information in these forums if you use the search function near the top right of this page. Just type in NAS for example and you get many threads on the subject (marked with a green checkmark if it solved the question) another example would be Airport Exterme and sound system. Once you formulate your ideas better then specific questions can be addressed one at a time. You may find that a less expensive choice for a server might be a mac mini. Good luck with your project, ask more specific questions and update you systems profile.

  • Ms updates does not work after recovery win 7 pro on dv4-2167sb

    info on problems with MS updates right after a new install of win 7 pro: does not install updates and will not install SP1 from down load . I used recovery disks I made. The OS [win 7 pro] recovered great but MS updates did not work from  the get-go..  {Personal Information Removed} HP NEEDS TO GET ME OS RECOVERY THAT WORKER I HAVE 4 OF THIS DV4-2167SB 'S
    Been on the phone with hp [not US] for more than hr.  talked to two svr. hungup on 3 times,  HP needs some New VP's.

    Hi VP_IA_DOT,
    I saw your post and forwarded it to the right people for their review. You should hear back from someone shortly via private message on this Forum.
    Thanks,
    NicNac - HP Support Forums Moderator
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • My auto updates are not working. I cannot find where to download Camera Raw 8.1 for Photoshop CS6.

    My auto updates are not working! I cannot find where to download Camera Raw 8.1 for Photoshop CS6 (Windows 8 64 bit). My Camera Raw is now at 7.1. I had the online Adobe folks tell me to just download all updates manually. That's great, yet I cannot find camera raw 8.1 to download...
    Please help.
    Thanks, Janet

    there's a direct download link on this page: https://blogs.adobe.com/lightroomjournal/2013/06/camera-raw-8-1-and-dng-converter-8-1-now- available.html

  • Update will not work, I get an error message that says error 7 (windows error 126

    The new update will not work for me, I am running Windows Vista. I have never had any problems installing updates before, but this time I get a message
    So I found the directions to uninstall itunes, I uninstalled itunes, apple software update, then I am unable to uninstall apple mobile device support. Since it says to uninstall them in order, I didn't go any futher. I did restart and got this message
    I tried redownloading and reinstalling but I am back to where I started from, can someone HELP?
    Thanks

    This is asked and answered dozens of time each day.  A forum search (right side of this page)  will find answers to many questions like this quickly.
    Disable your firewall/security software and try again.

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • Java 7 Update 11 Not Working with Firefox

    For me, the problems described in the thread "Java 7 Update 10 Not Working with Firefox? " Java 7 Update 10 Not Working with Firefox?
    are continuing with Java 7 Update 11.
    Windows 7 64 bit
    Firefox 18
    The problem is that "Java(TM) Platform" is missing from the plug-in list.
    I've uninstalled Java 7 Update 11 and reinstalled Java Update 9 which correctly installs the plugin and restores Java functionality which was broken immediately upon installing both Java 10 & 11.

    981243 wrote:
    So why not using Ju11 ? You can workaround the issue. It would sucks but still be safer than using Ju9.
    Also ask Mozilla forums if Firefox has options where to search for plugins.
    Or try 64-bit Firefox.As I explained in both threads ...
    Java 7 Update 10 Not Working with Firefox?
    Java 7 Update 11 Not Working with Firefox
    ... neither jre7u10 nor jre7u11 are working ... and they are BOTH broken with the same problem ... "Java(TM) Platform" pliugin is missing from the plug-in list. It cannot be enabled, because it simply is NOT there. A suggestion was made the jre7u12 will be the "fix" for this issue ... so I installed the Update 12 Preview and it sis ALSO broken, no "Java(TM) Platform" in the plug-in list.
    The ONLY Java version that actually works for me is jre7u9.
    As far as installing Firefox 64bit ... I see no future in installing a browser that has been discontinued.
    http://www.computerworld.com/s/article/9233976/Mozilla_suspends_work_on_64_bit_Firefox_for_Windows
    Even though Mozilla relented due to backlash, I continued development will be a somewhat low priority.
    http://www.computerworld.com/s/article/9234997/Mozilla_compromises_on_x64_Firefox_after_user_backlash

Maybe you are looking for

  • Can Apple fix the 12 bit audio problem once and for all?

    I have had persistent audio problems from I Life V3 all the way up to I Life 06. Sometimes it is synch issues. Sometimes it is audio dropping out. I have been through the various forums and applied the various remedies with some successs, some failur

  • How to check the database connection using OCI

    I am working on enhhancement of very old application developed using C and OCI. It has a background process which acts as a middleware for interaction of any other front end process with oracle database. Any processes, which needs to interact with da

  • Problem accessing Tomcat !

    Hi, I am trying to access Tomcat from a network outside my LAN. It works fine within my LAN but doesn't work outside it. When I type ipconfig on my server machine, i get the following lines Connection-specific DNS Suffix . : wiu.edu IP Address. . . .

  • How to turn of "find my iphone" from my windows computer

    So i forgot my password i just made for my iphone. I tried to restore it but it said i needed to delete find my iphone from my device. Obviously i cant get into my phone and i dont have a Mac so can someone please help me out!! I need to know how to

  • Zen 32 GB locks after sync with AudibleManager or WMP 11

    Have a new Zen 32 GB and after syncing Audible content using either Audbile Manager or WMP , the player locks - screen goes dark, blue light on side stays on. This is repeatable! If I hit the reset button with the paper clip, the blue light turns off