发布网友 发布时间:2022-04-24 04:34
共3个回答
热心网友 时间:2022-04-07 16:35
SELECT a.DemandNO,IFNULL(countb,0)+IFNULL(countc,0) as 结果 from tb_dm_demand a LEFT JOIN
(SELECT DemandNO,COUNT(1) as countb from tb_dm_dection GROUP BY DemandNO) b
ON a.DemandNO=b.DemandNO LEFT JOIN
(SELECT DemandNO,COUNT(1) as countc from tb_im_interview GROUP BY DemandNO) c
ON a.DemandNO=c.DemandNO ORDER BY DemandNO
热心网友 时间:2022-04-07 17:53
网页链接MySQL查询语句可以访问此网址
热心网友 时间:2022-04-07 19:28
表达不清楚啊 你把表字段贴出来了啊