发布网友 发布时间:2023-09-29 01:36
共2个回答
热心网友 时间:2024-12-14 13:50
1.select * from customer where name like '张%';追答select count(t1.name) from customer t1 ,city t2 where t1.cityid=t2.cityid and t1.name like '张%'
group by t2.cityname;
不好意思,题看错了
热心网友 时间:2024-12-14 13:50
select a.CityName,count(b.name) as '张姓人数' from City a,Customer b where a.CityID==b.CityID and b.name like '张%' group by a.CityName