
模式是最常见的值。您可以通过聚合和获得此信息
row_number():
select idsOfInterest, valueOfInterestfrom (select idsOfInterest, valueOfInterest, count(*) as cnt, row_number() over (partition by idsOfInterest order by count(*) desc) as seqnum from table t group by idsOfInterest, valueOfInterest ) twhere seqnum = 1;
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)