distinct 和join 一起使用的问题 select distinct a.* from x , y where x.id=y.id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct a.* from x , y where x.aa=y.aa and x.bb=y.bb select *from X as twhere not exists(select 1 from x where id = t.id and AA < .taa) 我是想知道distinct 和 join 能不能可不可以在这里使用,怎么使用 1,看不出b表与数据结果有什么关系2,数据组果的取的以每个id为分组的第一条记录,自己插到临时表用identity列,或在sql2005中用row_number 数据好像没有必然的联系select top 1 * from X group by X.ID SQL SERVER2008 R2 安装问题 请帮忙 ssis 导入突然变慢 级联菜单如何建表。。 使用SqlServer Management执行数据库脚本后找不到创建的表 菜鸟 求教 一个 sql统计 sql安装问题 怎么用SQL语句得到某几个字段的数据类型? 高分求教,如何得到记录的状态?在线等待 帮帮我吧,出问题了! 求一条(或一组)分类汇总的SQL语句. sql server business intelligence development studio
from X as t
where not exists(select 1 from x where id = t.id and AA < .taa)
2,数据组果的取的以每个id为分组的第一条记录,自己插到临时表用identity列,或在sql2005中用row_number
数据好像没有必然的联系
select top 1 * from X group by X.ID