如图,我只想显示出标红的数据,该如何写?
------解决方案--------------------
- SQL code
select a.* from tb ainner join(select 编号,时间 from tb group by 编号,时间 having count(*)>1)b on a.编号=b.编号 and a.时间=b.时间
select a.* from tb ainner join(select 编号,时间 from tb group by 编号,时间 having count(*)>1)b on a.编号=b.编号 and a.时间=b.时间