·好象distinct跟top是不能一起用的,你可以先distinct到一个视图,在用top查询出来
·只显示distinct后面的字段,怎样把不排除重复的字段也显示呢
·select distinct * from table 
·多谢,不过不是要排除完全重复的项,而是要排除10项中8项相同的信息,用select distinct table.字段1,table.字段2~~~~
·select distinct * from table
·用distinct关键字呀,MMpro写的就没错儿
·直接在后面加个where子句: where 每天 not in (select distinct 每天 from 逐月表)
·select * from A where key not in (select distinct key from B)
·可以使用 select 语句加上 distinct 参数统计,不妨试试。
·我把这个问题再简化一下,select distinct F1,f2,f3, from table 在这条语句中结果是针对所有字段,我要求是只对F1且
|