Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 03-08-2007, 11:07 AM   #1 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Altering mailing lists or AddressFinder

Hey guys,

When you purchase lists or use AddressFinder, how do you mass-reformat addresses? The org I work for is very particular in their formatting. I use an access query for AddressFinder which is pretty much set... however the list I just purchased (and others in the past) have a different set of horrible formatting.

The series of queries I use is below:

SELECT AddressCleanup.ADDRESS,
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(
[ADDRESS],
" E "," East "),
" W "," West "),
" N "," North "),
" S "," South "),
"Central Park West","Central Park W"),
"Central Park W","Central Park West"),
"Sutton Place South","Sutton Place S"),
"Sutton Place S","Sutton Place South"),
" Avenue "," Ave "),
" Ave "," Avenue "),
" Suite "," Ste "),
" Ste "," Suite "),
"# ","#"),
"#","# "),
" 1st "," First "),
" 2nd "," Second "),
" 3rd "," Third "),
" 4th "," Fourth "),
" 5th "," Fifth "),
" 6th "," Sixth "),
" 7th "," Seventh "),
" 8th "," Eighth "),
" 9th "," Ninth "),
" 10th "," Tenth "),
"Route 10 Apt","Route 10, Apt")
AS CnAdrPrf_Addrline2
FROM AddressCleanup;
SELECT AddressCleanup.ADDRESS,
Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(
[ADDRESS],
"Apt ","Apt. "),
"Parkway Apt","Parkway, Apt"),
"Avenue Apt","Avenue, Apt"),
"NW Apt","NW, Apt"),
"NE Apt","NE, Apt"),
"East Apt","East, Apt"),
"West Apt","West, Apt"),
"North Apt","North, Apt"),
"South Apt","South, Apt"),
"Boulevard Apt","Boulevard, Apt"),
"West Penthouse","West, Penthouse"),
"South Apt","South, Apt"),
"Drive Apt","Drive, Apt"),
"Plaza Apt","Plaza, Apt"),
"Street Apt","Street, Apt"),
"Street Office","Street, Office"),
"Street Floor","Street, Floor"),
"Street Room","Street, Room"),
"Street Suite","Street, Suite"),
"Road Apt","Road, Apt"),
"Lane Apt","Lane, Apt"),
"Lane Unit","Lane, Unit"),
"PO Box","P.O. Box"),
"Court Apt","Court, Apt"),
"Place Apt","Place, Apt")
AS CnAdrPrf_Addrline2
FROM AddressCleanup;
SELECT AddressCleanup.ADDRESS,
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(
[ADDRESS],
"Street #","Street, Apt."),
"Avenue #","Avenue, Apt."),
"NW #","NW, Apt."),
"South #","South, Apt."),
"Boulevard #","Boulevard, Apt."),
"Broadway Front","Broadway, Front"),
" Fl "," Floor "),
"Place Apt","Place, Apt"),
"Square Penthouse","Square, Penthouse"),
"Court Unit","Court, Unit"),
"Terrace Apt","Terrace, Apt"),
"Avenue Floor","Avenue, Floor"),
"Square Apt","Square, Apt"),
"Mgmt","Management"),
"Road Unit","Road, Unit"),
"Street Floor","Street, Floor"),
"Avenue Floor","Avenue, Floor"),
"Drive #","Drive, Apt."),
"Broadway Apt.","Broadway, Apt."),
"Street Lobby","Street, Lobby"),
"Drive Unit","Drive, Unit"),
"Avenue Suite","Avenue, Suite")
AS CnAdrPrf_Addrline2
FROM AddressCleanup;
SELECT AddressCleanup.ADDRESS,
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(
[ADDRESS],
"Avenue Basement", "Avenue, Basement"),
"Avenue Lobby","Avenue, Lobby"),
"Avenue Penthouse","Avenue, Penthouse"),
"South Unit","South, Unit"),
"Point Apt","Point, Apt"),
"Way Unit","Way, Unit"),
"Street Penthouse","Street, Penthouse"),
"Avenue Room","Avenue, Room"),
"Circle Apt","Circle, Apt"),
"NE Unit","NE, Unit"),
"NW Suite","NW, Suite"),
" Ph "," Penthouse "),
" Penthouse ",", Penthouse "),
" St,"," Street,"),
" Uppr "," Upper "),
" Frnt"," Front"),
" Hl"," Hall"),
" Rvrside "," Riverside "),
" Drv"," Drive"),
" Pl "," Place "),
" Grand Street"," Grand St"),
" Grand St","Grand Street")
AS CnAdrPrf_Addrline2
FROM AddressCleanup;

SELECT AddressCleanup.ADDRESS,
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(Replace(Replace(
Replace(Replace(Replace(Replace(
[ADDRESS],
" Grand Street"," Grand St"),
" Grand St","Grand Street"),
" Rockefeller Plz"," Rockefeller Plaza"),
"Plaza Floor","Plaza, Floor"),
" Plz", " Plaza"),
" Street"," St"),
" St"," Street"),
" Rm "," Room "),
"Street Room","Street, Room"),
"Street Front","Street, Front"),
"Lbby","Lobby"),
"Broadway Room","Broadway, Room"),
"Broadway Floor","Broadway Floor"),
"Avnue","Avenue"),
"Amrcas","Americas"),
"Ln Room","Lane, Room")
AS CnAdrPrf_Addrline2
FROM AddressCleanup;
SELECT AddressCleanup.ADDRESS,
Replace(Replace(Replace(Replace(Replace(Replace(
[ADDRESS],
"Park Avenue","Park Ave"),
"Park Ave","Park Avenue"),
"Fifth Avenue","Fifth Ave"),
"Fifth Ave","Fifth Avenue"),
"Union Square East","Union Square E"),
"Union Square E","Union Square East")
AS CnAdrPrf_Addrline2
FROM AddressCleanup;

Last edited by Peter Gulka; 03-08-2007 at 11:29 AM. Reason: added CODE tags to make it look prettier :) Then removed thum cuz it looked worse
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
lists


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Cheap Gas - Loans - Credit Counseling - Credit Card Consolidation
All times are GMT -6. The time now is 06:08 PM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70