group by 分组去重查询


数据库中的数据是这样的:

 

想要看看有几种类型,可以用group by:

  select * from activiti.act_ru_task 
 where PROC_INST_ID_ in (select PROC_INST_ID_ FROM activiti.act_ru_execution where BUSINESS_KEY_ in 
 (select  a.app_id from  bill_data.t_org_br_apply_info a left join user.t_user_info b on a.user_id=b.id where a.app_id in 
 (select b.app_id from bill_data.t_org_br_apply_person b  where 
b.tel_1 like '%15910383%' or
b.tel_1 like '%15910384%')))
 group by NAME_;

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM