473,800 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Correct casing User last name retireved from database

Hi,

We are having this problem here on our project where we store all
firstnames, lastnames in the oracle database in uppercase, when we retrieve
the data to be used in web application and email letters, we do a propercase
on the names. But, for names like O'Rieley, McDonald, propercasing the name
returns Orieley, Mcdonald. Our client/customer requires us to display it as
ORieley, McDonald. Did anybody come across a similar situation or does
anyboday have suggestions as to how we could resolve this issue with the
minimum possible effort.

Any comments, suggestions will really be appreciated.

Thanks,
Shabana
Nov 16 '05 #1
4 1978
Shabs,

Personally, I would have stored the proper case in the database, and
then written the code to modify the values from the database. Now, you will
have to guess at what the proper casing should be (as there are not any
rules that can help you, which the McDonald case illustrates).

I think the best solution would be to store the names properly, and then
change the code that works with the values to expect that. I know it's more
work now, but in the long run, it will work out better for you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Shabs" <Sh***@discussi ons.microsoft.c om> wrote in message
news:10******** *************** ***********@mic rosoft.com...
Hi,

We are having this problem here on our project where we store all
firstnames, lastnames in the oracle database in uppercase, when we
retrieve
the data to be used in web application and email letters, we do a
propercase
on the names. But, for names like O'Rieley, McDonald, propercasing the
name
returns Orieley, Mcdonald. Our client/customer requires us to display it
as
ORieley, McDonald. Did anybody come across a similar situation or does
anyboday have suggestions as to how we could resolve this issue with the
minimum possible effort.

Any comments, suggestions will really be appreciated.

Thanks,
Shabana

Nov 16 '05 #2
Not the best solution by any means, but I've seen this before. On your
database table store the names in their proper case and have another field
for the uppercase values, put a trigger on the table to update the other
field anytime the proper case field is set.

Company where a friend works does this, they do it as Searches in their
Oracle database is case sensitive, as I guess yours is hence the storing of
the uppercase. This gives them the display field to use on letters and web,
but also allows them to do the upper case searching without having to
convert the case every time they select from the table.

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:#c******** ******@TK2MSFTN GP10.phx.gbl...
Shabs,

Personally, I would have stored the proper case in the database, and
then written the code to modify the values from the database. Now, you will have to guess at what the proper casing should be (as there are not any
rules that can help you, which the McDonald case illustrates).

I think the best solution would be to store the names properly, and then change the code that works with the values to expect that. I know it's more work now, but in the long run, it will work out better for you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Shabs" <Sh***@discussi ons.microsoft.c om> wrote in message
news:10******** *************** ***********@mic rosoft.com...
Hi,

We are having this problem here on our project where we store all
firstnames, lastnames in the oracle database in uppercase, when we
retrieve
the data to be used in web application and email letters, we do a
propercase
on the names. But, for names like O'Rieley, McDonald, propercasing the
name
returns Orieley, Mcdonald. Our client/customer requires us to display it
as
ORieley, McDonald. Did anybody come across a similar situation or does
anyboday have suggestions as to how we could resolve this issue with the
minimum possible effort.

Any comments, suggestions will really be appreciated.

Thanks,
Shabana


Nov 16 '05 #3
Wayne,

Instead of wasting the column space, why not just have an SP that will
apply the upper case to the value in the select and the parameter passed in?
It just seems like a waste of space.

In addition, the programmers against the database will have to remember
to always upper case, and then always compare against the new column. Not
the best thing, IMO.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wayne" <Me******@commu nity.nospam> wrote in message
news:u4******** *****@TK2MSFTNG P09.phx.gbl...
Not the best solution by any means, but I've seen this before. On your
database table store the names in their proper case and have another field
for the uppercase values, put a trigger on the table to update the other
field anytime the proper case field is set.

Company where a friend works does this, they do it as Searches in their
Oracle database is case sensitive, as I guess yours is hence the storing
of
the uppercase. This gives them the display field to use on letters and
web,
but also allows them to do the upper case searching without having to
convert the case every time they select from the table.

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in
message news:#c******** ******@TK2MSFTN GP10.phx.gbl...
Shabs,

Personally, I would have stored the proper case in the database, and
then written the code to modify the values from the database. Now, you

will
have to guess at what the proper casing should be (as there are not any
rules that can help you, which the McDonald case illustrates).

I think the best solution would be to store the names properly, and

then
change the code that works with the values to expect that. I know it's

more
work now, but in the long run, it will work out better for you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Shabs" <Sh***@discussi ons.microsoft.c om> wrote in message
news:10******** *************** ***********@mic rosoft.com...
> Hi,
>
> We are having this problem here on our project where we store all
> firstnames, lastnames in the oracle database in uppercase, when we
> retrieve
> the data to be used in web application and email letters, we do a
> propercase
> on the names. But, for names like O'Rieley, McDonald, propercasing the
> name
> returns Orieley, Mcdonald. Our client/customer requires us to display
> it
> as
> ORieley, McDonald. Did anybody come across a similar situation or does
> anyboday have suggestions as to how we could resolve this issue with
> the
> minimum possible effort.
>
> Any comments, suggestions will really be appreciated.
>
> Thanks,
> Shabana



Nov 16 '05 #4
The Idea for them was they do so many queries on the data, more than any
writes, that it made sense to do the trigger as they took the hit to convert
the case up front instead of every time they wanted to read the data. I
agree it's not the best option, as I said in the first sentence of my
original post. This is just one way I've seen what he's doing accomplished
and thought I'd pass it on.

Wayne

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:e#******** *****@TK2MSFTNG P09.phx.gbl...
Wayne,

Instead of wasting the column space, why not just have an SP that will
apply the upper case to the value in the select and the parameter passed in? It just seems like a waste of space.

In addition, the programmers against the database will have to remember to always upper case, and then always compare against the new column. Not
the best thing, IMO.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wayne" <Me******@commu nity.nospam> wrote in message
news:u4******** *****@TK2MSFTNG P09.phx.gbl...
Not the best solution by any means, but I've seen this before. On your
database table store the names in their proper case and have another field for the uppercase values, put a trigger on the table to update the other
field anytime the proper case field is set.

Company where a friend works does this, they do it as Searches in their
Oracle database is case sensitive, as I guess yours is hence the storing
of
the uppercase. This gives them the display field to use on letters and
web,
but also allows them to do the upper case searching without having to
convert the case every time they select from the table.

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in
message news:#c******** ******@TK2MSFTN GP10.phx.gbl...
Shabs,

Personally, I would have stored the proper case in the database, and then written the code to modify the values from the database. Now, you

will
have to guess at what the proper casing should be (as there are not any
rules that can help you, which the McDonald case illustrates).

I think the best solution would be to store the names properly, and

then
change the code that works with the values to expect that. I know it's

more
work now, but in the long run, it will work out better for you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Shabs" <Sh***@discussi ons.microsoft.c om> wrote in message
news:10******** *************** ***********@mic rosoft.com...
> Hi,
>
> We are having this problem here on our project where we store all
> firstnames, lastnames in the oracle database in uppercase, when we
> retrieve
> the data to be used in web application and email letters, we do a
> propercase
> on the names. But, for names like O'Rieley, McDonald, propercasing the > name
> returns Orieley, Mcdonald. Our client/customer requires us to display
> it
> as
> ORieley, McDonald. Did anybody come across a similar situation or does > anyboday have suggestions as to how we could resolve this issue with
> the
> minimum possible effort.
>
> Any comments, suggestions will really be appreciated.
>
> Thanks,
> Shabana



Nov 16 '05 #5

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

Similar topics

4
1498
by: cmo63126 | last post by:
I'm not sure if this is bad design or not. It seems flawed, but I'm not sure. Is it wrong to create an instance of a class within the class itself? Any feedback appreciated. public class Article { int articleID; string title; //Constructor: Load Data from DataAccess Class
2
2835
by: R Bolling | last post by:
I am using a routine to check to see if a phone number (PK) has alread been entered, and takes the user to that record if it is found -- as follows: Private Sub Contact_telephone___BeforeUpdate(Cancel As Integer) Dim rs As DAO.Recordset Dim iAns As Integer Set rs = Me.RecordsetClone rs.FindFirst " = '" & Me! & "'" If Not rs.NoMatch Then
1
2546
by: Galka | last post by:
Hello I have a form to enter names and some other personal information. When a name is entered, it is checked against existing records: maybe, such name was entered before? If yes, user is notified and asked, would you like to see the previous record? If user answers yes, form on the screen is scrolled to the record with the same name. All works well, apart from number of record between navigation buttons: it is still the same number of...
14
36863
by: blueboy | last post by:
Hi, I am planning to automate a nighty restore of a DB on another server can someone point me in the right direction with the SQL script to modify the logical file names to the correct path and not the ones carried over with the DB?? i.e the database is to be renamed on the new server any help much appreciated
1
2615
by: kang jia | last post by:
hi currently i am editing signup page, when user enter deupicated NRIC and click signup, they will go to do_signuppage and read the error message and then after 5 seconds, they will be redirected to signup page again, however, this time they go back, all the correct value will be remain. how should i achieve this. my current code for singup.php is like this <html> <head> <link rel="stylesheet" type="text/css" href="gallery.css" />
1
3256
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page again to re-signup, however, i would like to remain all the correct infromation, and let users re-entered their NRIC. how can i do this. can i use Session, but it seems cant work. any one can help me? my code in signup page is like this: ...
3
2053
osward
by: osward | last post by:
Hi, everyone, I had managed to make use of the date link from a simple calendar script to my query table. When I click on the date's link or Prev and Next Month link, The table first row will be that link's day and onwards. I have a problem with the page link part that it won't advance to the next page according but go back according to today's date. This is the calender script section // Display Calandar error_reporting('0'); ...
82
10071
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a) html b) perl script (print and inserting into database) Cheers... Andrew
9
4248
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete or blank and then go back to main page(item a below user registration html page) always, something like goggle or msn login page function... Thanks and Best Rgds, Andrew a) script called from user registration html...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
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
10504
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
10274
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5469
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...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
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.