编写sql语句查询有奖金的人数以及有领导的人数 要求一个语句
SELECT COUNT(DISTINCT bonus) as num_with_bonus, COUNT(DISTINCT leader) as num_with_leader FROM employees WHERE bonus IS NOT NULL OR leader IS NOT NULL;
原文地址: http://www.cveoy.top/t/topic/fOHw 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
SELECT COUNT(DISTINCT bonus) as num_with_bonus, COUNT(DISTINCT leader) as num_with_leader FROM employees WHERE bonus IS NOT NULL OR leader IS NOT NULL;
原文地址: http://www.cveoy.top/t/topic/fOHw 著作权归作者所有。请勿转载和采集!