Question
· Nov 17

SQL grouping, values converted to uppercase, unicode symbols lost

I'm playing with some anayltic queries against FHIR server tables. The HSFHIR_X0002_S_Patient.addressCity table contains a lot of cities which names contain german charachers such as ä, ö and ü.

The following query works fine:

select value from HSFHIR_X0002_S_Patient.addressCity

But this one converts city names to uppercase, and characters with umlauts are lost, so instead of "Köln" or "München" I see KOLN and MUNCHEN:

select ac.value, count(ac.value) as cnt
  from HSFHIR_X0002_S_Patient.addressCity ac
  group by ac.value
  order by 2 desc

I'm using DBeaver with IRIS official JDBC driver.

UPD: distinct also makes city names malformed:

select distinct(value) from HSFHIR_X0002_S_Patient.addressCity
Product version: IRIS 2024.1
Discussion (2)1
Log in or sign up to continue