USER ID | string_col |
---|---|
100001 | Here |
100001 | there |
100001 | Apple |
200002 | this is |
200002 | that is |
200002 | Apple |
200002 | Cell 4 |
这是我的原始表&;我想使用单词"Apple"作为触发词, for each 用户ID连接上面的所有内容.
下表是我要查找的输出:
USER ID | string_col | Result |
---|---|---|
100001 | Here | null |
100001 | there | null |
100001 | Apple | Here There |
200002 | this is | null |
200002 | that is | null |
200002 | Apple | this is that is |
200002 | Cell 4 | null |