473,795 Members | 2,914 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyphenated Name Field

I have designed databases but have never come across any complications due
to the ridiculous situation of a hyphenated last name. As a database
designer (very junior level) I disdain anything unwieldly, and consider this
unwieldly.

I haven't dealt with it, as I said, but I figure if I do, I'd simply design
the text field to not accept hyphens, so Smith-Barney would be stored as
SmithBarney, or even Smithbarney as I commonly have the forms automatically
apply a Title Case to everything entered.

It is standard practice in many databases to leave such characters out, in
phone numbers for example even when an "input mask" is designed and it's
prompting you how to do everything and it asks you if you want to store the
hyphens the default is that it doesn't. This seems to be the smarter way to
go, as it prevents formatting pecularities from messing up searching &
sorting etc.

Is this how Smith-Barney should be dealt with--prevent the hyphen? Or would
feminazist-clients become too upset?

PS--this is NOT a troll message, not trying to upset anyone--again, I have
designed databases and am asking as such, as I have never come across this
yet but figure one day I will

LRH
Nov 13 '05
14 5514
Larry R Harrison Jr wrote:
I hate strays from the norm which complicate
things,


And that's what you will always have to contend with as a DB developer.

8)

Be prepared for furrowed foreheads of clients who are upset when they
discover a miniscule fraction of data is not dealt with. Those clients
will view such an app as garbage and will be unable to appreciate the
work and elegance you may have driven yourself into the ground to
provide... just because of that small fraction. Been there, done that. 8(
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #11
Thanks for the heads-up. It does sound like something I'd encounter. I can
see it now--people flipping out because they try to enter "piou0" in the ZIP
CODE field and expecting it will magically recognize it as valid & process
it somehow.

I did have something happen a few years ago, when I designed a database to
import data from an Excel sheet but then it couldn't because the data came
"un-normalized," I basically would've had to "dumb down" my design to import
his data. It would have resulted in un-normalized data, insomuch that the
sales table would've had the names and addresses & phone numbers of each
sales client, when it had been designed to have a separate table for these
clients with only the id field of the client linked in the sales table. I
consulted on the newsgroup--should I "dumb down" my design so it could
import the data, or keep it & explain to the client that he needed the
supplier of the data to supply it in a slightly different format to be more
compatible with my database. Every last poster here voted the latter, and
that's what I did. I did so kindly, but it's what I did.

I lost the client. But I figured--I shouldn't dumb down my database,
especially since doing so would remove many of the features he had actually
been the one to ask for. I did later on, as my expertise improved, learn how
I could've actually done this for him. But at the time I couldn't. Live &
learn.

LRH
"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote in message
news:d7******** **@coranto.ucs. mun.ca...
Larry R Harrison Jr wrote:
I hate strays from the norm which complicate things,


And that's what you will always have to contend with as a DB developer.

8)

Be prepared for furrowed foreheads of clients who are upset when they
discover a miniscule fraction of data is not dealt with. Those clients
will view such an app as garbage and will be unable to appreciate the work
and elegance you may have driven yourself into the ground to provide...
just because of that small fraction. Been there, done that. 8(
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me

Nov 13 '05 #12
Larry R Harrison Jr wrote:
<ji********@com pumarc.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
So is the thinking that the client would be bending things by asking
that this situation be handled.

James A. Fortune

In some cases, absolutely. For example, I have actually had persons before
wonder how come their attempts to enter data crashed when they tried to
enter the state in the Zip code. They enter some names as "O'Brien" and
others as "OBrien" and still others as "O Brien"--only to then wonder why
not all of those are sorted together as if they're the same. They wonder how
come a query they later add themselves for showing "O'Brien" returns
inaccurate numbers because of the other variations entered.

...

In closing--I typically post here with extremely practical questions, not
opiniated ones. I typically ask questions like "what syntax is appropriate
for creating a joint query in SQL." I will make sure to stick to such
questions in the future for the most part and hopefully not waste anyone's
time here; I realize Microsoft MVPs and the like are hanging out here to
help & don't want to get sucked into long-winded opinion discussions. I am
asking as a designer, not trying to be opiniated politically so much as that
the objective here is the protection of data integrity, not sucking up to
people's whimsical fascination with titles & so forth.

LRH


Opinions aside, if O'Brien, OBrien and O Brien are truly equivalent as
demonstrated by a table containing numerous misspellings then you can
run a query on that table to create tblAlternates as a way of merging
the variants.

tblPeople
PersonID PK
LastName Text
....

55 O'Brien

tblAlternates
AltID PK
VariantID FK
Preferred Y/N
NameVariant Text

21 8 -1 O'Brien
22 8 0 OBrien
23 8 0 O Brien

Obviously Preferred will be -1 for the preferred variation. You also
need to take requisite care that two different last names don't have
variants that are spelled the same.

Then in the AfterUpdate event of cbxLastName you can use SQL such as:

"SELECT NameVariant FROM tblAlternates WHERE VariantID IN (SELECT
VariantID FROM tblAlternates WHERE NameVariant = " & Chr(34) &
cbxLastName.Val ue & Chr(34) & ") AND Preferred = -1;"

If this SQL string returns a value you can replace the value entered in
cbxLastName with the the preferred version of the last name. At least
this way you only have to deal with variants that are new.

Opinions on. If people want whimsical titles then our sense of
protection of data integrity should protect those fanciful titles also.
Let someone else burst their bubble. Put the money in your wallet.

James A. Fortune

I will be following this closely:
Earlier this week, Microsoft Chairman Bill Gates said Longhorn, due in
2006, will have a new XML-based document format, code-named "Metro,"
that will be used to both print and share documents.
-- C|Net April 27, 2005

Nov 13 '05 #13

If you don't hate women, perhaps you should not assume that those with
hyphenated names are "feminazis" (as you called them in another post).
Since this is a derogatory term, your use of it distinguishes you as a
mysogynist.

Major error: hyphenated names were not invented by feminists or
feminism. They are very common. Actress Julia Louis-Dreyfus, for
example, has a hypenated name with which she was born. She didn't pick
a hyphenated name. It IS her name. She didn't pick it to make a
feminist statement or to annoy some lowly coder.

Further, plenty of men (such as Julia Louis-Dreyfus' brother and father)
have hyphenated names. Also, many commercial firms use similar
nomenclature (such as in the Smith-Barney example).

It is simply childish to characterize common customs as some sort of
personal affront to you. Further, I think your attitude as a developer
absolutely stinks. Your job is to help the client acheive their goals,
not to scold them for not conforming to your narrow view of the world as
you think it should be. As a developer, I think I have to find a way to
make the data work from the form to the data entry to the queries and to
the reports. That's MY problem and it's my job to solve it.
Accomodations to exceptions are a small price to pay when compared to a
disappointed client.

Were I your client or your supervisor, I'd fire you for your "can't-do"
attitude. Your mysogyny and borderline racism - yes, hyphenated names
are common to people with certain types of national origin - are
unacceptable and expose your employer and your client to liability. You
would be SO fired.

You say all this nonsense while you claim to be willing to accomodate a
client. I guess you are willing to accomodate only those client needs
that conform with your view of the world rather than the reality of the
client's data. That's the OPPOSITE of accomodation.

Your denial that you are hateful or sexist rings completely hollow.
Take your lousy attitude elsewhere and keep your dittohead politics out
of this forum.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #14

If you are not trying to upset anyone, stop trying to upset people with
the name-calling. Completely unprofessional. Makes you look like a
real jerk.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2216
by: Maksim | last post by:
Trying to find out a way how to restrict value of the element by name of an element, it might be not even possible, but anyhow. Let's consider following snippet: <xs:element name="tag1" type="xs:string" /> <xs:element name="tag2" type="xs:string" /> <xs:element name="tag3" type="xs:string" /> .....
10
6566
by: Colleyville Alan | last post by:
I am trying to turn a short and fat (63 columns) table into one that is tall and skinny (7 columns). Basically, I am trying to create a "reverse crosstab" using a looping structure in VBA along with SQL. I'd like to take the name of the column and input it into a descritor field. This isn't the table, but will serve as a better illustration than the real deal. If the table looks like this:
2
1845
by: LoopyNZ | last post by:
Hi, (Access 97) I'm creating a query (QRY_SUMMARY) to join a query (QRY) to itself (QRY_1). I'm returning QRY.* and selected fields from QRY_1. With each field (field_name) I return from QRY_1 I'm appending "_1" to to the end to avoid name conflicts with the fields from QRY, i.e. "field_name" becomes "field_name_1".
11
4435
by: MS | last post by:
The simplest input mask for peoples names is.... >L<?????????????? But what about when you have names like MacDonald, or Mary-Anne? Anyone come up with a good "all round" "idiots" mask that still applies capitals and lower case when required - even for Mac and hyphens?
5
2946
by: David | last post by:
Hi I seem to be getting nowhere with this. I am opening a form which will be used to input Notes into different fields in a table. My problem is changing the unbound field name to the field name in the associated table that this form is based on. Is there anyway I can do this with vba ? I am using a different button object to open this form for the field it is to update. button1 updates unbound field name from text1 to 101Commnets...
4
2594
by: Antonio Tirado | last post by:
Hi, I'm using the OleDB namespace to open a CSV File. I can read the file sucessfully except for hyphenated values. My CSV File contains phone numbers and sometimes these come separated with hyphens (ie: 555-123-4567). These fields come as empty using the OleDB namespace and as dbNull when using the ODBC namespace. Is there a way to prevent this from happening? Thanks in advance,
7
2786
by: Mary | last post by:
I have a student who has a hyphenated first name. If I concatenate the name like this: StudentName:( & ", " & ), it works as expected. If, however, I try to get the first name first by concatenating like this: StudentName: ( & " " & ), only the first name appears. I sure would appreciate any help! Mary
5
3103
by: rajsa | last post by:
Using a setvalue macro, I'm trying to concatenate several fields, all of which are set as 'text', but some of which contain only numbers. (Gathering data from a form into one field, then saving this back to the table) I have got around the problem by using CStr(), but this isn't working for one field, where I have two numbers (page numbers) seperated with a hyphen, e.g. 378-392. If I leave out the Cstr(), I get a Type Mismatch error, if I...
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10448
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9046
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.