我想谁在“家具”部门 工作的员工数目我有两个表 教研室 的dept_id DEPT_NAME 100,服装, 200,家具, 2.sales emp_id,sales_amt,dept_id 我已经做了这个..但它没有显示任何结果。 select count(emp_id) from department a join sales b on a.dept_id = b.dept_id group
我想要计算具有特定SKU的商店(商店1-10)的不同数量。这里是我的代码: SELECT distinct COUNT(*) as total_store
FROM(
select distinct st.*
from (select st.*
from store_table st
)st
WHERE st.store between 1 and 10
select sum(total) from (
(select sum(team1_score) as total from country,match_results where country_name=team1 group by country_name as s1)
UNION ALL
(select sum(team2_score) as total from country,m