how to preserve column names on dynamic pivot
问题 Sales data contains dynamic product names which can contian any characters. Dynamic pivot table is created based on sample from Crosstab with a large or undefined number of categories translate() is used to remove bad characters. In result pivot table column names are corrupted: missing characters and spaces are removed. How to return data with same column names as in source data ? I tried to use quote_ident(productname) as tootjakood, instead of 'C'||upper(Translate(productname,'Ø. &/+-,%',