448700174 edited a comment on issue #12315:
URL: 
https://github.com/apache/shardingsphere/issues/12315#issuecomment-916835191


   select count(*)
                from care_task t,care_task_item i left join (select * from 
care_task_detail d where d.tenant_id = #{tenantId}) d on d.task_item_id = i.id
                where i.task_id = t.id and t.enabled = 1 and t.done_count > 0 
and i.enabled  = 1 and t.tenant_id = #{tenantId}
   
   binding-tables:
                  - care_task,care_task_item,care_task_detail
   
   This can work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to