Solved

Paradox SQL Case Sensitivity

Posted on 2000-05-18
3
472 Views
Last Modified: 2010-05-18
I want to search for example for the following in a string field independant of case
Blue Green Data
blue Yellow Orange
Computer Blue Data

if i search for blue 'where field1 like '%blue%' I only get one match because of the case how can i get all three matches(Searching case independant)
0
Comment
Question by:flooder
3 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2820240
hi flooder,

well not tested on paradox but its local sql, maybe it works

Select name from phone where upper(name) like upper(:ComapareValue)||'%'

(rebuild it to your needs)

meikl
0
 
LVL 2

Accepted Solution

by:
IPCH earned 30 total points
ID: 2820321
The UPPER works with Paradox too.
Try this:

Select * from Customer where UPPER(Company) like '%C%'

in demo database.
0
 
LVL 1

Author Comment

by:flooder
ID: 2825084
It works great thanks.

Last thought what book would be recommended to buy on SQL for delphi or does it depend on the database and if what book on general SQL is good to buy.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question