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!

Case Sensitive Data

Status
Not open for further replies.

henp

Technical User
Sep 16, 2003
50
US
CommentCalls.Code contains codes that are equal but case sensitive. I have linked this table to another table to show description as the original file has none. The problem that I have is that it pulls not only the description for the lower case codes but also for those equal to it in upper case. Can you help?

Thanks,

Kirsten.

SELECT Commentcalls.Code, Commentcalls.ClientID, Count(Commentcalls.Code) AS CountOfCode, ConsumerCodes2.Field2
FROM Commentcalls INNER JOIN ConsumerCodes2 ON Commentcalls.Code = ConsumerCodes2.Codes
GROUP BY Commentcalls.Code, Commentcalls.ClientID, ConsumerCodes2.Field2;
 
Hi

Answered a similar question a few weeks ago, to do with case sensitive comparisons, achieved the result by comparing the asc() of each character.

Immedaiet thought for you problem is to make a query from each table, with a calcualted column which is the asc() of the characters in the join column, then join the two queries on the calculated column

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top