有三个表ipywy ,khzl,khhfms
ipywy 表字段是
xinm 员工
khzl表字段是xinm 员工,zhbh 帐户编号
khhfms表字段有zhbh,khname 客户名称.year 年,month 月
我想通过sql语句来实现一个东西。
select a.xinm,count(c.khname) from ipywy a,khzl b,khhfms c 
where a.xin=b.xinm and b.zhbh=c.zhbh
where year='2003'  and month='3' group by a.xinm
select a.xinm,count(c.khname) from ipywy a,khzl b,khhfms c 
where a.xin=b.xinm and b.zhbh=c.zhbh 
where year='2003'  and month='4' group by a.xinm
我只能得到2003年3月份的每个员工对应的客户数,怎样才能得到每个员工对应的客户,
和3月份新增的客户
因为2003,3,员工新增了5个客户 2003,4 员工新增了8个客户 
如果我要查询2003,4月份每个员工对应的客户数,新增客户数