Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Collation Help

Status
Not open for further replies.

markroberts

Technical User
Oct 11, 2002
10
GB
I am currently working on a database where collation settings are set to be Character Case sensitive. This is causing me no end of grief as alot of the data has been entered in lots of different cases.

For example the word Property Expenses could be in 500 times in a table but in 3 different cases, Upper, Proper and Lower.

How can I change my query so it could pick up all the different cases.

My SQL query is

SELECT *
FROM ppms.units
WHERE Unit_Stat = 'Property Expenses'

Many Thanks

Mark
 
SELECT *
FROM ppms.units
WHERE Upper(Unit_Stat) = 'PROPERTY EXPENSES'

Don;t use Select * either; it is a bad programming practice. Use only the fields you need.

Questions about posting. See faq183-874
 
Thanks a lot. I only used the select all as a quick example.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top