1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
【以下的回答经过翻译处理】 以下是使用窗口函数的另一种替代方案:
SELECT barcode, sequence, d FROM (
SELECT barcode, sequence, d, rank() OVER (PARTITION BY barcode
ORDER BY length(sequence) desc) AS r
FROM "db1"."barcodes"
) as windw
WHERE windw.r = 1
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전