Data Comparison from the DB during Search?

Hi,

I have a search text box where i will key in the data

like "TigerWoods" where the data in the Database is like

"TIGerWooDs". So when i pass the name as a paremeter in the

DAO layer and send the parameter in a query to find the name. It is giving me no result since the name entered in the text box does not match with the data in the DB(with upper & lower case letters). Where the name is the same. where it should accept the name entered and give me the result like name found.

One thing is that i can't convert by name into uppercase or lowercase

letters in my application. Becos, the DB will have the name in any format (with both upper & lower case letters). How to solve this pbm. pls. do provide a soln. to this pbm. since this is quite urgent...

Thanks,

--JavaCrazyLover--

[854 byte] By [AnanthJavaa] at [2007-11-27 8:14:11]
# 1
Hi,You can try by converting the text entered by the user to upper case and convert the db value to uppercase before comparing them in the query. Check the string functions available in your database and change the query.Regards,Rakesh
rakesh_mscita at 2007-7-12 19:58:41 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

Rakesh,

The problem is that i can't change the parameter which i am passing to the DB to upper or lower case as well as the data in the DB to upper or lower case. Without that is there any possibility to do a comparison that will match for both the datas? Pls. do respond...

Thanks,

--JavaCrazyLover--

AnanthJavaa at 2007-7-12 19:58:41 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...