经典sql
作者:互联网
SELECT
a.*,(select now())signUp,
CASE
WHEN b1.id IS NULL THEN
'未报名' ELSE '已报名'
END sate,
( SELECT COUNT( 1 ) FROM group_look_applicants c WHERE c.group_look_id = a.id ) sum1
FROM
group_look a
LEFT JOIN group_look_applicants b1 ON a.id = b1.group_look_id AND b1.telephone = "18857499211"
标签:group,look,sql,b1,经典,id,SELECT,applicants 来源: https://www.cnblogs.com/yylwy/p/15679667.html