私は現在これを持っています:
DELETE FROM t
FROM (
SELECT
*
, rn = ROW_NUMBER() OVER (
PARTITION BY Street, CAST(PC AS CHAR(4))
ORDER BY CAST(PC AS CHAR(4))
)
FROM Locals where DATALENGTH(PC) < 13
) t
WHERE rn > 1
PC
しかし、列が同じ場合にのみ削除したいです。