Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a column in two tables which contain the same values.
But the casing is different..some are capitalized and some are small.
its capitalized in one table and small in the other..so random!.

How do I make both of them in the same case?

Remember same data exists in the column in two different tables..but different casing.
Posted
Comments
PIEBALDconsult 5-Jul-14 15:21pm    
Which do you want?
Member 10562713 5-Jul-14 16:12pm    
I want to know both options..small casing and capital!.also preferably capital casing of first letter of each word!
[no name] 5-Jul-14 16:40pm    
Your problem is not the casing. Your actual problem is the you have 2 tables that have the same data in one of the columns. Normalize your data and your problem will self-correct.
Thava Rajan 7-Jul-14 1:53am    
any other relationship between the tables

Your database is suffering from some sickness (duplicate data) without you knowing the real cause, go see a doctor of "database normalization".
Yes, there is simple sql query to make the values in the 2 columns into same case, but no use. The problem is going to come back again, if the root cause is not tackled, i.e. "database normalization".
Find out the cause and cure here[^]
 
Share this answer
 
v2
if you want to Display data in Upper case then use

select upper(Column_Name) from TbaleName

for lower

select lower(Column_Name) from TbaleName


for both table using join or where Condition
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900