请教一个SQL查询问题 表如下学号 姓名 成绩1 a 552 a 993 c 774 c 885 c 996 e 88如何将相同姓名的学生列出来一个学号对应一个姓名的不列出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Select * FROM 表 Where 姓名 IN(Select 姓名 FROM 表Group by 姓名having count(姓名)>1) select * from table1 where 姓名 in (select 姓名 from (select count(*) as icount ,姓名 from table1 group by 姓名) xx where icount =1) 用这个>>select a.* from table a inner join table b on a.姓名=b.姓名 and a.学号<>b.学号 一个人有多个学号???slect 学号 from (select 学号,count(姓名) a from table group by 姓名) x where a > 1 不好意思 应该是:slect 姓名 from (select 姓名,count(姓名) a from table group by 姓名) x where a > 1 执行with ADOQuery do,不进入while not eof do循环 请教:delphi+word的问题,如下异常... 初学者,问一个很小的小问题。 Eof 的 例外问题!急!! 有谁告诉我为什么?高手请进 一个非常菜的问题 关于sql语句的问题 谁能提供一个简单的编译器吗??delphi或pascal写的! 和进程有关的问题,高手请进 寻找程序主窗体图标.一个基于paradox的学生成绩管理的小程序.采用了多文档窗体,主窗体空的,太难看了.请帮我找一个. 定尖高手请进,急,在线等.... 发现FastReport的一个有趣的问题!
Where 姓名 IN
(Select 姓名 FROM 表
Group by 姓名
having count(姓名)>1)
(select 姓名 from
(select count(*) as icount ,姓名 from table1 group by 姓名) xx where icount =1)
select a.* from table a
inner join table b on a.姓名=b.姓名 and a.学号<>b.学号
slect 学号 from (select 学号,count(姓名) a from table group by 姓名) x where a > 1
slect 姓名 from (select 姓名,count(姓名) a from table group by 姓名) x where a > 1