Re: Another validation question

Wilson Bilkovich
Tue, 06 Sep 2005 02:04:27 -0000

On 9/3/05, Dewey Howell
<deweyhowell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> I want to prevent people from adding patient into the database with
> the first_name and last_name reversed when it already exists in the
> database.

I''d urge you to think two or three times before doing this.  There are
about a billion valid counter-examples, like Patrick James and James
Patrick.
Do you have something else you could check against, like street
address, e-mail address, etc, etc?  Not sure what kind of application
you''re talking about.
The demographic data I''m usually working with would instantly break
this validation.