Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old March 13th, 2006, 09:55 PM
JC
Guest
 
Posts: n/a
Default DB2 Table Editor Search Conditions

I'd like to build a form which does a case insensitive wild card search
on a character field. For example, the resulting SQL might be 'select
last_name from student where ucase(last_name) like '%SMITH%', where the
"SMITH" is a search string pulled from the form. That is, I'd like the
user to just enter 'Smith' and then have DB2 Table Editor perform the
case insensitive search. Is this possible? Thanks.




  #2  
Old March 14th, 2006, 04:55 PM
dsl61992
Guest
 
Posts: n/a
Default Re: DB2 Table Editor Search Conditions

On 13 Mar 2006 13:41:01 -0800, "JC" <jenniecobb@earthlink.net> wrote:
[color=blue]
>I'd like to build a form which does a case insensitive wild card search
>on a character field. For example, the resulting SQL might be 'select
>last_name from student where ucase(last_name) like '%SMITH%', where the
>"SMITH" is a search string pulled from the form. That is, I'd like the
>user to just enter 'Smith' and then have DB2 Table Editor perform the
>case insensitive search. Is this possible? Thanks.[/color]

This should be possible to do by creating a refer-back condition that
references the control that the user enters the name in. The
CaseOrPassword setting for this control can be set to UpperCase which
will allow a case insensitive search if the UCASE function is used on
the column as in your example. Hope this helps.

Mark
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.