dbTalk Databases Forums  

Need some help on Normalization

comp.databases.sybase comp.databases.sybase


Discuss Need some help on Normalization in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM






On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
  #12  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM






On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
  #13  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM



On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
  #14  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM



On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
  #15  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM



On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
  #16  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM



On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
  #17  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Need some help on Normalization - 10-14-2008 , 02:55 AM



On Oct 10, 6:43 am, David Kerber <ns_dkerber (AT) ns_wraenviro (DOT) com> wrote:
Quote:
In article <62ed393e-9794-4c4f-a34a-b0eca18ecf10
@i76g2000hsf.googlegroups.com>, techtechx... (AT) gmail (DOT) com says...


D) Separate the phone number into separate fields.

That has nothing to do with normalization, unless you are going to store
numbers in a separate table, with the area code being a key field (which
is going way overboard, IMO). Also not if you want to be able to handle
different countries (because every country has their own style for
writing a phone number), though you might want to store the country code
as a separate field.
It really depends on your application. For example, I need to separate
the country code from the rest of the number, because we send messages
to people's cell phones using an SMS service provider. Their rules
mandate that we have to send them the country code in a separate
field.

Other than that, there are absolutely no consistent rules for
formatting a phone number, especially between different countries, and
very often even within the same country. I'm tempted to carry two
versions of the phone number, one with punctuation and formatting
stripped out. It would be easier to search, because you could do { and
phone like '%1234%' } and not worry about where or whether the person
put dashes or spaces or pluses or parentheses, etc. etc. etc.

:-)


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.