当前位置:
代码迷
>>
Sql Server
>> distinct的用法?该如何解决
详细解决方案
distinct的用法?该如何解决
热度:
93
发布时间:
2016-04-27 21:27:49.0
distinct的用法?
select distinct (职务名称),ID,职务类型,是否管理职务 from 人事职务视图 order by 职务名称
select ID,distinct (职务名称),职务类型,是否管理职务 from 人事职务视图 order by 职务名称
上面的那个不能区分重复的,下面的这个有错误,我改怎么办?
------解决方案--------------------
distinct 只能对一个字段或者一个字段组的select 有效。
或许根据你的需求,你不应该用distinct?
查看全文
相关解决方案
关于大数据表的count(distinct)操作优化,该怎么处理
关于大数据表的count(distinct)操作优化,该怎么解决
HQL中这样写对吗?select distinct stu,tea,cou from Student as stu,Teacher as tea,Course解决办法
关于 distinct,该怎么解决
distinct 和 group by 在查询多列数据去重复时的区别在哪?该怎么处理
查询 DISTINCT 的 跟值【高难度】纠结有关问题
select distinct 列名,count(*) from 表名 group by 列名 的结果怎么导入另一个表中
distinct 有关问题
想要这样的成效sum(distinct xxx)over(partition by yyy)
简单SQL distinct top有关问题 在线立马给分
关键字 distinct 在hibernate中给子表字段排序会报错,该怎么解决
Distinct-等解决办法
关于top 和 distinct 的使用有关问题
怎么优化 “select distinct, min(xxx) from 一张表”
DISTINCT 查询后复制的有关问题
top 1 和 distinct 哪个查询速度快,该如何解决
DISTINCT & GROUP BY的有关问题
请教LS中怎么实现select distinct 域名 from 表单 的功能
关于大数据表的count(distinct)操作优化解决方法
Oracle-18-select话语初步&SQL中用算术表达式&别名的使用&连接运算符%distinct&where子句
SQL SELECT DISTINCT 话语
sql distinct 多列有关问题
[SQL]一个删选数据的例证,使用GROUP、DISTINCT
SQL distinct 跟group by
c# list 查找重复项 Distinct()方法
2018杭电多校day1_D Distinct Values HDU - 6301
Distinct Values hdu
【HDU - 6301】Distinct Values(思维+优先队列)
Mysql中count(*),DISTINCT
SPOJ SUBST1 - New Distinct Substrings(后缀数组[不相同的子串的个数])