How to convert SQL Unpivot query to HANA SQL?
问题 How to convert following SQL Server query which uses unpivot to a HANA SQL query. SELECT p.CardName, REPLACE(p.groupcode1, 'QryGroup', '') groupcode1, ocqg.GroupName FROM ocrd UNPIVOT (value FOR groupcode1 IN ([QryGroup1], [QryGroup2], [QryGroup3], [QryGroup4], [QryGroup5], [QryGroup6], [QryGroup7], [QryGroup8], [QryGroup9], [QryGroup10], [QryGroup11], [QryGroup12], [QryGroup13], [QryGroup14], [QryGroup15],[QryGroup16], [QryGroup17], [QryGroup18], [QryGroup19],[QryGroup20], [QryGroup21],