表gzb(ID,姓名,基本工资,奖金,个人所得税)现在我创建一个存储过程求总工资和个人所得税小于1000的人数
create procedure salary
@name varchar(50),@id int,@sum int output, @tax int output
as
  select @sum=基本工资+奖金
  from gzb where ID=@id and 姓名=@name
  select @tax=count(*)
  from gzb where 个人所得税<1000
return
declare @su int, @t int
execute salary '周涛涛',6,@su,@t
select @su,@t
调用后为NULL,但是有记录的,不应该为空的,为什么呢?高手帮忙