Rows to Columns
Rows to Comma Separated String
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM: +-----+-----+ | uid | tag | +-----+-----+ | 1 | 1 | | 1 | 2 | | 1 | 3 | | 2 | 1 | | 2 | 4 | | 3 | 5 | +-----+-----+ TO: +-----+----------+ | uid | tag_list | +-----+----------+ | 1 | 1,2,3 | | 2 | 1,4 | | 3 | 5 | +-----+----------+ |
MySQL
Use GROUP_CONCAT(). This function also works in Infobright.
Continue reading “MySQL/Hive/Presto/Impala Transposition” »
MySQL/Hive/Presto/Impala Transposition by @sskaje: https://sskaje.me/2014/02/mysql-hive-presto-impala-transposition/
Incoming search terms:
- GROUP CONCAT IMPALA
- hive transpose
- transpose row to columns in impala
- IMPALA transpose ROWS to column
- impala sql for transpose
- impala concat
- hive sql transpose
- wrong75u
- impala group_concat 去重
- impala group_concat
- impala groupconcat
- How to join row values to column names impala
- allowcfp
- hive group by column and concat column
- group_concatimpala
- fruit5qv
- familyc82
- eveningrl3
- concat impala
- completelyv53