求救SQL语句!返回无重复记录!在线等待!!!!!!!! 以前这个问题我看到过,可是刚才搜索没搜索到!请大家帮忙!我是用‘pname’和‘xh’两个字段来确定一条记录的,那么请问我想返回无重复记录的所有记录集!应该怎么写SQL语句?谢谢指教!!!!!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct xh ,pname from table 表:TSelect * From T a where Exists(Select Count(*) From T b where a.pName=b.pName and a.Xh=b.Xh Group by b.pName,b.Xh Having Count(*)=1) select t1.* from t1,(SELECT a,b,count(1) as cFROM t1 group by a,b having count(1)=1) as t2 where t1.a=t2.a and t1.b=t2.b 同意,用select ~~~ from~~~~ group by~~~ having~~~~ select distinct xh ,pname from table select distinct 字段名 from 表名 select xh ,pname from table group by xh ,pname select distinct 字段名 from 表名 group by 已经高定了.快给分吧:select distinct .....后面的照旧 Frxreport 4.3简单使用问题 动态生成的Combobox或edit 怎么限制输入的只能是数字???谢谢 删除问题 菜鸟问题:如何在DBGrid中修改记录,并将更新过的记录存入后台数据库?急 delphi7,如何操作listbox中的item,当单击某项后弹出窗体。 哪位能讲一下vcl的消息机制,专贴这方面得好文章、介绍好书也行! 向大侠请教DLL的问题!在线等待回复!急~~~!!!!! 请问日期型字符如何定义?? 计算邮件附件的大小? 我要去北京!!1—_! 如何用BDE的控件访问ODBC的数据源啊? 朋友给介绍了一个活,使用AUTHWARE做东西,时间一个月,我们3个人做。
Select * From T a where Exists(Select Count(*) From T b where a.pName=b.pName and a.Xh=b.Xh Group by b.pName,b.Xh Having Count(*)=1)
FROM t1 group by a,b having count(1)=1) as t2 where t1.a=t2.a and t1.b=t2.b
from~~~~
group by~~~
having~~~~