Searching addresses

Hi,
I have an ADDRESS table which stores components of an address e.g. level, building, street name, street type,...etc. Many of the fields are optional. I was wondering what's the best way to find out if a given address is in the table. I was thinking of creating a search column on the table which I could use to find addresses that were a close match to the given address and then do a full match on the records found.
The values in the search column would be something like upper( Spaces removed( street number|| substr(street name,1,5)||postcode)))
Also is this very good SQL. if not what's the alternative? I realise that functions on columns are not great but I'm not sure of any other way to do it.
Select Address_Id
From Address
Where nvl(street_name,' ') = nvl(l_street_name,' ')
and nvl(street_number,' ') = nvl(l_street_number,' ')
and nvl(street_Type,' ') = nvl(l_street_Type,' ')
and nvl(building,' ') = nvl(l_building,' ')
and suburb = l_suburb
where variables are those prefixed with l_
Thanks in advance.

Hi again,
this is some sample data that I used ...
HOUSE     ST_NAME      ST_TYPE SUBURB CITY
3     Houston      Road     Caulfield   LA
25     Bridge      Way     NULL       NULL     
19     Britman      NULL     Springs    NULLThe code goes like this ...
declare
var1 number := 0;
var2 rowid;
begin
for i in (select rowid rid, lower(trim(a.house)||trim(a.st_name)||trim(a.st_type)||trim(a.suburb)||trim(a.city)) str from addr a)
loop
  select instr(i.str,'bridge',1,1), i.rid into var1, var2 from dual;
  if var1 > 0 then
   -- get details from that table using the rowid & add more logic
  end if;
end loop;
end; I hope this solution was in the near by vicinity of your requirement ... ;-)
Do elaborate, if there is more.
PN : Note the usage of 'TRIM' & 'LOWER' in the cursor of the FOR loop.
Regards,
Madhu.

Similar Messages

  • Search/address bar problem

    whatever i put into the safari search/address bar it just loads the same page? I've restarted & flushed the cache, still the same?

    Thats the one , I had an extension called Popsearch that handled all searches, been on there so long I'd forgotten about it.
    Very grateful for all your help, Thanks.

  • The google search address (?) disappeared from Safari....I went to view and customize and dragged it into safari but it didn't take...the address place is very wide......that's it...I"ve lost google.thanks

    The google search address (?) disappeared from Safari....I went to view and customize and dragged it into safari but it didn't work...the address place is very wide......that's it...I"ve lost google.thanks,

    Search and URL entry have been combined.
    Put your search data into the space and hit return.

  • Firefox for Android: search/address not working

    I just put firefox on my new phone and I found that the search/address bar almost always considers one word searches to be an address, see pic: http://i.imgur.com/1dpIH2L.png (very annoying by the way)
    is there any way to make it properly recognize one word entries as searches, or change it so that it only functions as a search bar?
    And instead of making a 2nd post, is there any way to disable address autocomplete? I can deal with it if not but I just find it distracting.

    Hi,
    What version of Firefox for Android are you using?

  • Enter/search address in maps 3.04

    In 3.01 I click on the search (magnifier glass icon) and I am presented with the option address, how do I do this in 3.04?
    Solved!
    Go to Solution.

    I am in the same situation after downloading 3.04 on my 5800NE. The previous version (don't remember which one, came with my phone), was a breeze to use with the "options" and "back" buttons and "Find place", which would give an option to go by search/address.
    The 3.04 now is very difficult  and frustrating to use. I only see "search" and do not see "Find place" as claimed, and cannot search by address.  Also, there is no feature to find addresses from my contact list directly on the maps.
    Does anyone know how to fix this, or have anyone with the same issue earlier had any luck resolving it?
    armanconquers wrote:
    We are having the same issue Ovi Menu only shows me "Search" instead of "Find Places" to input address. I tried typing the addressess in different formats but it does not work. it cant find anything. it's very frustrating. grrrrrrrrrrrrrrrrrrrrrr!

  • Keyword search address change, has no effect.

    Long time ago I added Google Maps as a keyword search (maps <address>), which hasn't been working for a while.
    After a little research, I've found out, that I had to change the URL for the search, the problem is though, that I can't find the bookmark anywhere! I've tried to create the bookmark again, with the correct URL, but somehow the old keyword has a higher priority, and therefore I'm still directed to the blank Google Maps page.

    See how [[Smart keywords]] feature works.

  • Wrong answers given when searching address book

    Some times when I search my address book for a key word (e.g. king), the cards that are returned in the answer column a) do not have the word or four letters of king highlighted anywhere in them AND b) most do not have the word or phrase of king anywhere in them. That is, too many cards are returned as answers to the search for king and therefore the search function in Address book is not working correctly and it is VERY frustrating. To fix the problem I tried to clean the caches and I repaired permissions and did a disrepair, and I also did a spotlight index rebuild but nothing has fixed this problem. Please help! I'm using Address book 4.1.1 (699) and OS X 10.5.6.

    If you are able to fix the searching problem by editing a card and then searching for it, then it sounds like your database is missing some details. I have a possible solution for you but it is risky and you need to back up your AddressBook folder (or export an Address Book Archive from the File menu).
    1 - Quit all apps except Finder
    2 - Using Finder, go to (home folder)/Library/Application Support/AddressBook/
    3 - Drag your AddressBook-v22.abcddb file to the trash
    4 - Launch Address Book
    What this does is rebuild your Address Book database from the files in the Metadata folder. That should write out the database in a way that includes all of the information required for searching.

  • How can add search address option in MapKit.framework?

    Hello All,
    I want to make a MKMapView to get a user *current Location* and also he can find location *search by address*.
    Please guide me.

    Qickly changed Tramps to Gramps?
    To place a google map in your site, have a look here http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2187524. This will enable you to place a pin on your address.
    To have your address placed in a google.com hosted site, you will need to Google the subject.
    Tramps.
    Oopps
    Gramps

  • Webb search address bar moves behind the key pad on typing since ios8.0.0

    My Google address search bar drops and disappeared behind the keypad I'm using to type,and to continue to see what im typing I toutch and rais e the screen to bring the address back into view I have to do this everytime I enter a search.How can I stop this.Thanks to anyone

    I have found that cancelling the Google app sitting above the address bar,normality returns.One thing though,maybe I have a fat index digit but the cancelling "x" logo only responded when I zoomed it bigger!!! Good luck
    D J Morris

  • Problem searching addresses on my N96

    It seems incredibly difficult.
    I'm sure I'm doing something wrong.
    I hit the search button.
    It asks me to input the country, the city/postcode and then the street name.
    I have done this with varying degrees of success.
    Sometimes it doesn't find the street (why is that?).
    But the most annoying thing is that I can't seem to search a place that isn't a street.
    eg I can't search Kings Cross station and get a result.
    Surely this can't be right.
    How do I search for a train station?
    Any help gratefully received. 
    Solved!
    Go to Solution.

    There's a few ways you can search for an address.
    1. The easiest is to just type in the street name straightaway from the main map screen. There's an all-search box at the bottom of the map screen.
    2. You can search using the search option that you mentioned, but if it's an address, you will need to input the country, city and street name. Everything else can be ignored. I'd ignore the post code too personally. Using postal codes in the searches aren't always successful.
    My recommendation: If you see "searching online" when you search and got no results, you might want to select "Options > Tools > go offline" to conduct searches relying solely on the internal map content to get the information.
    "Searching online" it means you have requested an online internet search using the default connection which can sometimes have better results or in my case for some areas, have no results at all. I prefer searching offline as my default internet connection is my network's internet/GPRS and they charge you for that access. I'm rarely in a WLAN area long enough to make use of the free internet connection.
    If you want to search for landmarks, restaurants, stations, etc, you will probably need to purchase a city guide since what you have in your phone is just the free map and voice guidance navigation (if you bought or got it free).
    To get around this, you can just search for the street and then create your own landmark for that spot for future searches. I use this feature a lot. In the spot where you want to save a custom location, press the middle button and select "Add to my places".
    But city guides are useful if you need a lot of landmark, recreation, etc references.
    "Try not. Do or do not, there is no try."
    If you found someone's comments helpful or like what that person has to say, please give some Kudos to the post!

  • MDG - Query - Duplicate Search & Address Validation

    SAP MDG Experts:
    Please share your ideas/thoughts on the below requirement:
    Requirement:
    Ability to
    Validate Address
    Search for duplicates based on Address & TAX ID (Fuzzy Search)
    In a MDG System ( domains Customer/Supplier ) which is co-deployed on a Transactional ECC, with no DQM installed.
    Note: Was able to set up a exact DB search, but not Fuzzy search as DQM is not installed.
    Thanks & Regards,
    Archana Balliwar

    Thanks Shephalika.
    We are analyzing, if we need DQM now.
    Regarding Enterprise Search(w/o DQM), I have a question, does it work similar to Material?
    Example Scenario:
    Existing Vendors (Business Partners) exists with Name 1 - Values 'ABC Org'. If I start creating new Vendor (BP), with Name 1 - Value 'ABC Orgz', will it be treated as duplicate when Fuzzy search(ES - TREX) is enabled. Material treats this as duplicate. If this works, then we may not need DQM. Any input here, will help a lot.
    Thanks,
    Archana Balliwar.

  • I can't delete in the search/address bar on my cursor moves out of the box

    When I try to delete after typing a word in the search bar after the cursor moves out of the box I can't i have to reload the page before i can start typing again. Also happens when i just click off the box does not let me type any more without refreshing. I get a beep sound when i try to type or reload

    Clear Safari and the reset the iPad again. Settings>Safari>Clear history and website data. Now reset the iPad by holding down on the sleep and home buttons at the same time until the Apple logo appears on the screen.
    I would also reset the router by unplugging it for 30 seconds and then plug it in again.

  • Safari 6.0 Search / Address Bar

    Hi
    Under Safari preferences you can select your search engine, but how can one localize the search? E.g. for South Africa: use google.co.za, not .com.
    Cheers,
    Mike

    Well Safari crashed when I started poking around preferences and deleting certain websites that stored cookies, so I restarted my computer and the problem fixed itself.

  • Search addresses in Contacts/Spotlight 3.0?

    Was hoping that iPhone 3.0 would add the ability to find streets, cities and/or phone numbers stored in Contacts, using the new Spotlight search.
    But no go! How could this have been left out?
    Or have I missed something?
    Peter
    Message was edited by: peterLurie

    Was hoping that iPhone 3.0 would add the ability to find streets, cities and/or phone numbers stored in Contacts, using the new Spotlight search.
    But no go! How could this have been left out?
    Or have I missed something?
    Peter
    Message was edited by: peterLurie

  • I'm Admin but still i'm unable to change search address from my internet Explorer?

    Hello! Genius people. Can you pleases help me to remove this annoying web links from my browser. I'm admin of my computer but i don't know how to change setting for internet explorer from admin access.
    Actually my computer got virus name Arbyaonline.com i bought one ati-virus online it did not manage to remove this http://www.arabyonline.com/?src=1000 from home page of my browser. Even I putt there google many times but it not getting off. 
    So can somebody help me to direct the location of this file so i could delet this..F***** S***
     

    I have not find with the help of Google this name of virus.
    Try to get virus removal
    https://support.norton.com/sp/en/us/home/current/solutions/kb20100816020421EN_EndUserProfile_en_us
    http://www.kaspersky.com/downloads/kaspersky-virus-removal-tool
    http://www.symantec.com/business/support/index?page=content&id=TECH122466
    If removal has not helped, use Sysinternals tools to find the roots of virrus.
    If nothing helps, restore good installation from backup. Hope you have a good backup.
    It is very hard to cure virus infection remotely, even for "geinus".
    Regards
    Milos

Maybe you are looking for