我有一张表,其中列为 columna,并且数据在同一行:columnna-----------------a,b,a,b,a,b,a,b我试过了,但是不好duplicated_rows AS ( SELECT *, ROW_NUM...
我有一张表,其中的列 columna
在同一行中有数据:
columna
-----------------
a,b,a,b,a,b,a,b
我试过了,但效果不好
duplicated_rows AS
(
SELECT
*,
ROW_NUMBER() OVER (PARTITION BY columna) AS row_num
FROM
tablea
)
SELECT *
FROM duplicated_rows
WHERE row_num > 1;
不确定如何删除重复项以便获得结果
columna
-------
a,b