> For a CF page I am doing I need to out put matched
> results. However in one table I have last names with a
> suffix like "MOLINA JR" and in another table the last name
> and suffix are in different columns. I need to strip out
> the suffixes as well as the preceding space in the first
> column. Any ideas. I am trying a few thing and it is not
> working.
offhand
left join tabl2 on (table2.lastname = table1.lastname
or table2.lastname like table1.lastname + ' %')
or if you want to match both
left join table2 on (
(table2.lastname = table1.lastname and table2.suffix is null) or
(table2.lastname + ' ' + table2.suffix = table1.lastname))
This is sql server syntax... it's gonna be different for every db...
it's an ugly, PURE EVIL BLACK AS COAL schema you have for the data
there... I have to deal with those at my job too -- hate 'em...
s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196234
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54