湖南省);3.
统计各省地级市的数量,输出省名、地级市数量select T_City.ProID,ProName,count(CityID) as cc from( T_City join T_Province on
可以给表起个别名,将T_City表的别名设为tc,将T_Province的别名设为tp。
查询拥有20个以上区县的城市,输出城市名,区县数量select CityName,count(DisName) disCount from ( T_City tc join T_District td
区县最多的3个城市是哪个省的哪个市,查询结果包括省名,市名,区县数量select tp.ProName,tcd.CityName,tcd.ci from(select ProID,CityName,count