This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-17. For the latest, interactive version please visit https://mariadb.com/kb/.

Does MariaDb ColumnStore supports PIVOT

Does the MariaDb ColumnStore engine supports PIVOT?

Answer Answered by Roman Nozdrin in this comment.

Hi,

Both MariaDB and MCS don't support PIVOT clause as it is in SQL Server. However you can pivot the data using CASE as it is described by Markus Winand here [1].

Regards, Roman

1. https://modern-sql.com/use-case/pivot

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.