CONCAT(column) OVER(PARTITION BY…)? Group-concatentating rows without grouping the result itself
问题 I need a way to make a concatenation of all rows (per group) in a kind of window function like how you can do COUNT(*) OVER(PARTITION BY...) and the aggregate count of all rows per group will repeat across each particular group. I need something similar but a string concatenation of all values per group repeated across each group. Here is some example data and my desired result to better illustrate my problem: grp | val ------------ 1 | a 1 | b 1 | c 1 | d 2 | x 2 | y 2 | z And here is what I