Avatar of mrong
mrong
 asked on

character set mismatch in Oracle

I got "ORA-12704: character set mismatch" error with the following query in Oracle. Any suggestions?

select 'Clerk1' as Clerk_Name from TBL1
union
select distinct Clerk_Name from TBL1
order by Clerk_Name;


Thanks.
Oracle DatabaseSQL

Avatar of undefined
Last Comment
Peter Anzenberger

8/22/2022 - Mon
SOLUTION
dsacker

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
slightwv (䄆 Netminder)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mrong

ASKER
select 'Clerk1' as Clerk_Name      
          *
ERROR at line 1:
ORA-12704: character set mismatch

Clerk_Name: NVARCHAR2(50)
slightwv (䄆 Netminder)

Use the CAST I posted and the select from DUAL dsacker posted.

Make sure you read what I posted about the ORDER BY.
Peter Anzenberger

Thank you for your example. It helped a colleague of mine a lot. He went home with a happy smile on his face.
Your help has saved me hundreds of hours of internet surfing.
fblack61