sql怎么查询重复的数据出现的词次数并且不去重

求解答

FineReport YK6cgBHo 发布于 2023-8-2 17:38
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共4回答
最佳回答
0
用户k6280494Lv6资深互助
发布于2023-8-2 17:39(编辑于 2023-8-2 17:42)

select * from b

Having Count(*)>1

https://blog.csdn.net/weixin_43167662/article/details/127734546

最佳回答
0
runnerLv7资深互助
发布于2023-8-2 17:42(编辑于 2023-8-2 17:43)
最佳回答
0
StevenzhangLv3见习互助
发布于2023-8-2 17:57

select t1.aa,(select count(*) from table1 t2 where t2.aa=t1.aa) from table1 t1

最佳回答
0
yzm8Crhb1021448Lv5初级互助
发布于2023-8-2 17:58
  1. -- 开窗函数

  2. select sid,student_id,count(sid) over(PARTITION by student_id order

  3. by student_id) 及格数   from score where num>= 60;

  • 5关注人数
  • 191浏览人数
  • 最后回答于:2023-8-2 17:58
    请选择关闭问题的原因
    确定 取消
    返回顶部