请问这个select怎么写?谢谢 select * from t1 a where f1 in (select f1 from t1 group by f1 having count(f1)>1) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from t1 a where f1 in (select f1 from t1 group by f1 having count(f1)>1) select * from t1 a where f1 in (select f1 from t1 group by f1 having count(*)>1)order by f2 select t1.* from t1 right join(select f1 from t1 group by f1 having count(f1) > 1 ) as t2on t1.f1=t2.f1 order by t1.f1,t1.f2 select * from t1 where f1 in (select f1 from t1 group by f1 having sum(1)>1) table: t1f1 f2 f32 10 13 9 15 13 16 11 13 11 15 8 17 9 13 8 2请问如何选择出f1有相同的并且f3为1的呢?比如上面的就选择出f1 f23 93 115 85 13谢谢~~ select * from t1 where f1 in (select f1 from t1 group by f1 having sum(1)>1) 一条删除语句,报错 这样的SQL如何来写?在线等 求一解法,分不够我加 怎么用sql判断text 类型的长度或是否为空..谢谢.. 在线等:安装SQL时总是出现错误 sql远程联接问题 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server 不存在或访问被拒绝--请教高手们 同步复制的问题,在线等待,急~~~~~~~~~~~~~~~~~~~~~~~~ MSSQL更改字符集的问题.(我不是MM) 我新学sql 碰到问题了请大家执教一下 将char转换成十六进制的数,各位高手请进!(高分) 各位高手,帮小弟看看这个存储过程吧,感谢!
where f1 in (select f1 from t1 group by f1 having count(*)>1)
order by f2
(select f1 from t1 group by f1 having count(f1) > 1 ) as t2
on t1.f1=t2.f1 order by t1.f1,t1.f2
f1 f2 f3
2 10 1
3 9 1
5 13 1
6 11 1
3 11 1
5 8 1
7 9 1
3 8 2请问如何选择出f1有相同的并且f3为1的呢?
比如上面的就选择出f1 f2
3 9
3 11
5 8
5 13谢谢~~