sql查询
来源:互联网 发布:excel删除重复数据 编辑:程序博客网 时间:2024/06/08 06:28
select newtable.documentId from(
select distinct t4.id as documentId from t_document t4
left join t_document_record t1 on t4.id = t1.documentId
left join t_document_issued t2 on t4.id = t2.documentId
left join t_document_pass t3 on t4.id = t3.documentId
where t4.c_state <> '0' and t1.c_state = '0' and (t1.fromGroupId = '' or t2.fromGroupId = '' or t2.toGroupId = '' or t3.userId = '' or t4.fromGroupId = '' )
order by t4.c_createtime desc
) newtable
0 0
- sql查询
- SQL查询
- SQL查询
- sql查询
- sql查询
- sql 查询
- sql查询
- sql 查询
- 查询sql
- sql查询
- SQL查询
- SQL查询
- SQL 查询
- SQL查询
- sql查询
- SQL查询
- SQL查询
- sql查询
- 用kd树的最近邻搜索
- android 5.0 修改默认壁纸
- 【Unity】Unity中使用C#脚本调用JS脚本的使用方法
- Shell脚本
- namespace的用法
- sql查询
- 如何让android studio在运行时自带签名
- JXL Excel模版模版下载(1)
- Activity的生命周期笔记
- iWatch报错: Authorizationsession time out
- 使用fiddler监听分析移动端的请求和响应方法
- 垃圾回收器种类
- 递归分支的思想求最近对问题
- hdoj 1870愚人节的礼物