Need query to find repeating values, please help

I need help with SQL or whatever you guys think is the best way to do this, maybe PL/SQL.
Basically it like this, in the database 10G, there are two field for address:
ADDESS_DELVRY - street address for example would be stored here
ADDESS_DELVRY2 - apartment building, suite number or PBM would be stored here
but sometimes I see the Apartment B-123 in both fields, so I need to find those duplicates, if there is a way.
So for example:
ADDESS_DELVRY - 123 Elm Street Apartment 2B
ADDESS_DELVRY2 - Apartment 2B
This is a problem, because then the Apartment gets printed twice on the mail piece. I think there is a small percentage that have this problem and am trying to find out the best way to ID them, maybe use REG_EXP ??
Not sure, please help, thanks!

Soundex works how it's designed to work, which unfortunately is a very poor approximation at words sounding the same.
Using the UTL_MATCH package is a far better way to check for similarity between strings.
Ok. Given the OPs challenge here; a simple, or messy (we don't know), data cleaning task, I think soundex was worth mentioning.
Also, the reply that "soundex don't [doesn't] work" , given a working example , I think we can safely conclude
that UTL_MATCH is way above his league.
I don't understand how the OP has better use of
SELECT UTL_MATCH.EDIT_DISTANCE('Second Avenue 12 second floor', 'second fl.') dist FROM DUAL;
      DIST
        20
1 row selected.than
SELECT *
  FROM dual
WHERE SOUNDEX ('Second Avenue 12 second floor') = SOUNDEX ('second fl.')
X
1 row selected.given the task at hand, but all right I'm not going to argue either.

Similar Messages

  • Need query to find rows

    hi
    i need query to find out for one perticular row from parent table ,,which references how many rows in how many child tables , and child to child tables. in herirachy fashion.
    if anybody know please help me

    I guess it would be difficult to come up with a generic script to get answer that can help in all situations...you have to see the table definitions in your schema and try...like in case of emp and dept table,
    select * from dept where deptno in
    (select deptno,count(*) from emp group by deptno having count(*)>1)
    (this gives rows from dept table where , for corresponding deptno there are more than one rows in emp table).
    Thanks
    Nirav

  • HT1420 I have the new version of the macbook pro and I cannot find authorize this computer anywhere on itunes. I have read the directions multiple times and still cannot find it. Please help!

    I have the newer version of the macbook pro and I have read the directions on how to authorize your computer to let you download previous song purchases from icloud onto your laptop, but I cannot find where it says "authorize this computer" at all. I have looked for it everywhere and still cannot find it. Please help!

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

  • Hi, how do I manage storage? Disk Utility says "other" is taking up most of my storage but I don't know where to find "other".  Please help!

    Hi, how do I manage storage? Disk Utility says “other” is taking up most of my storage but I don’t know where to find “other".  Please help!

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside a photo or iTunes library will corrupt the library. Changes to such a library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper 2>&-
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective 2>&-
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Ignore any other messages that appear in the Terminal window.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • I tried to find the reset security questions button on manage apple id but couldn't find it. Please help me reset my security questions?

    I tried to find the reset security questions button on manage apple id but couldn't find it. Please help me reset my security questions?

    The reset link, as described in steps 1 to 5 on this page, will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account. If you don't have one then go to (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I tried updating my iPod 5th gen to iOS 8 but it only shows me a picture of the iTunes logo and a charger at the bottom, I'm not sure what this means or what I need to do. Can someone please help me?

    I tried updating my iPod 5th gen to iOS 8 but it only shows me a picture of the iTunes logo and a charger at the bottom, I'm not sure what this means or what I need to do. Can someone please help me?

    After restoring to factory settings/new iPod you will then have to restore from backup
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:                         
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • I lost my ipad and i need the serial number and IMEI , please help me how?

    i lost my ipad and i need the serial number and IMEI , please help me how?

    If you have registered your device, you can go to https://supportprofile.apple.com/ and log into your apple id.  Your devices appear there with serial numbers.
    Additionally, your serial number is included on the original receipt when purchased at any Apple Online or Apple Retail store, or any Authorized Apple Reseller.

  • Do you know of an app like a weekly planner/ diary that I can see and edit in my phone and my boyfriend can on his? Been looking on the app store but can't seem to find one! Please help! :)

    Do you know of an app like a weekly planner / diary that I can see and edit in my phone and my boyfriend can on his? Been looking on the app store but can't seem to find one! Please help!

    Welcome to the Apple Community.
    How about calendar, you can share calendars.

  • HT1937 I would like to help me. My iPhone was lost and stolen and I didn't have configured Find My iPhone. So I could n't find it. Please help me to find it or delete my information and photos. This is my serial No: DN*****TWD. Thank U

    I would like to help me. My iPhone was lost and stolen and I didn't have configured Find My iPhone. So I could n't find it. Please help me to find it or delete my information and photos. This is my serial No: DN*****TWD.  
    <Personal Information Edited by Host>

    If you didn't set up Find My iPhone, there's nothing we can do to help you. Sorry.

  • HT1414 How do i fix my itunes? it wont connect my iphone 3g anymore? i tryed to update my iphone 3g 4.3.5 too ios 5.0.1 and it couldnt update no more. now my computer wont find my iphone. please help me.

    How do i fix my itunes? it wont connect my iphone 3g anymore? i tryed to update my iphone 3g 4.3.5 too ios 5.0.1 and it couldnt update no more. now my computer wont find my iphone. please help me.

    Iphone 3g can only go to 4.2.1

  • My mac has started displaying a message stating "You need to restart your computer".  Web says it's kind of kernel panic! Is this a hardware problem? Do i need to contact my distributor? please help..it annoys me very much..

    My mac has started displaying a message stating "You need to restart your computer".  Web says it's kind of kernel panic! Is this a hardware problem? Do i need to contact my distributor? please help..it annoys me very much..

    Hello welcome to the ASC user to user forums
    please see these support documents
    http://support.apple.com/kb/TS2570
    http://support.apple.com/kb/TS1440
    http://support.apple.com/kb/HT1455
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/HT1379
    http://support.apple.com/kb/ht1379
    http://support.apple.com/kb/HT1509

  • "Unable to Connect" using Firefox and Windows 7. Have tried all the suggestions on this website to no avail. I need firefox for my work! Please help!

    "Unable to Connect" using Firefox and Windows 7. Have tried all the suggestions on this website to no avail. I need firefox for my work! Please help!
    == This happened ==
    Every time Firefox opened
    == Since I downloaded Firefox

    same here my AV is ESET, i already unblock it but no use can't connect to the internet..

  • I purchased as a Download Lightroom 5.5, My pc got a virus. I saved Lightroom on ext. drive. I am trying to reload onto pc BUT it's asking me for a serial number..I cannot find receipt. Please help. I registered when I downloaded purchase.

    I purchased as a Download Lightroom 5.5, My pc got a virus. I saved Lightroom on ext. drive. I am trying to reload onto pc BUT it's asking me for a serial number..I cannot find receipt. Please help. I registered when I downloaded purchase.

    Find your serial number quickly
    You might want to develop a more secure system of saving your serial numbers and other critical information.

  • HT4437 i want to play contents from macbook pro to B&W zeppelin air wirelessly,set up is done but can't see airplay button in iTunes,do i need airport express?why?please help.

    i want to play contents from macbook pro to B&W zeppelin air wirelessly,set up is done but can't see airplay button in iTunes,do i need airport express?why?please help.

    There are at least 3 versions:
    http://www.bowers-wilkins.co.uk/Support/Support/iPod_and_Computer_Speakers/Overv iew.html
    Original Zeppelin - I've had this for several years.
    http://bowersandwilkins.custhelp.com/app/home/p/6,26
    Zeppelin Mini.
    http://www.bowers-wilkins.co.uk/iPod_and_Computer_Speakers/iPod_and_Computer_Spe akers/Zeppelin_Mini/Overview.html
    Zeppelin with Airplay.
    http://www.bowers-wilkins.co.uk/iPod_and_Computer_Speakers/iPod_and_Computer_Spe akers/Zeppelin_Air/
    (I wouldn't regard the MM-1 as a Zeppelin but not sure if B&W call it that).
    I can't do much more to convince you!
    You could always update that wiki
    AC

  • HT5694 I forget my ID and password for find my ipad please help.

    I forget my ID and password for find my iphone please help..

    It should be the same as your Apple ID and password. Do you not remember your Apple ID and password?
    Apple ID: How to find your Apple ID - Apple Support

Maybe you are looking for

  • HP5520 Connection Error 403

    HP5520 Connection Error 403 when attempt to scan even though it shows I am connected to WiFi.

  • The green light isn't coming on on my airport extreme

    I purchased the AirPort Extreme Base station as a recent lightening storm fried my other router.  I have followed the directions for the base station and have even been able to hook up to the internet; however, the amber light on the station is still

  • Ipod SCREEN WENT WHITE ???    ANY ADVISE? PLEASE!!!

    a friend of mine just give it to me...   i put it on charche with the usb port on pc... it was working perfeclty, i could see the apple, than the flashing ( do not unplug )     the screen was working, the menu too. all the funcions were ok... just ha

  • Batch wise Inspection results details

    Dear QM experts, Is there any table / Report which give Batch wise quality details, like out of 1000 inspected Qty, 900 is Quality OK, 50 is Rejected, 20 is re test, 10 in in inspection like this.... Please suggest. Thanks in advance. Best Regards, S

  • Load Balancing to 2 Instances in a 4-Tier System

    Problem:           I need to load balance requests from a cluster of JRun JSP servers through           an IP(IP2) to a set of servers on tier3 containing 2 instances per box, that           are not clustered. I have used WLBS to proxy through IP2 to