SQL中DISTINCT 后面有多个字段, 如何操作
来源:互联网 发布:淘宝司法拍卖车攻略 编辑:程序博客网 时间:2024/06/05 15:49
select distinct b.oldid,max(b.unit) --max(b.unit)是重点
from [MBOM] a join MaterialData b on a.[Component] = b.[NewId]
where a.[Processing] ='830'
group by b.oldid,b.unit
order by b.OldId
- SQL中DISTINCT 后面有多个字段, 如何操作
- distinct后面接多个字段
- sql distinct某个字段
- SQL中distinct
- sql中distinct用法
- sql如何部分distinct查询?
- SQL中distinct的用法 and 查询编号最大的字段
- Sql语句操作表中字段
- mysql中通过sql操作字段
- oracle中distinct多个字段
- distinct去掉mysql中重复字段值
- Oracle中对Clob字段进行Distinct
- distinct去掉mysql中重复字段值
- mysql中去除重复字段-distinct
- SQL中distinct的用法
- SQL中distinct的用法
- SQL中distinct的用法
- sql中distinct的用法
- Html Table 样式
- Jquery Easy UI
- Android日志系统Logcat源代码简要分析
- Effective C++学习心得(续2)
- 关于系统架构的杂想
- SQL中DISTINCT 后面有多个字段, 如何操作
- [VC++]如何得到桌面窗口的句柄(桌面图标)
- php 测试连接mysql
- dom4j 写简单XML文件
- gridview中获取主键的值
- JS制作有遮罩层的模式对话框
- 权限问题引起的 asp.net Excel 报错
- JDBC 连接Oracle 技巧
- 用Apache Commons Betwixt2 在XML与Java对象之间相互转换