请完成以下实验内容:declare cust cursor forselect customerno,customername,address,telephone,zipfrom customeropen custbeginendclose custdeallocate cust(2) 利用游标修改 OrderMaster 表中 Ordersum 的值
declare ordermas cursor forselect a
orderno,sum(b
quantity*b
price)from ordermaster a,orderdetail bwhere a
orderno=b
ordernogroup by a
ordernoopen ordermas begin update ordermasterend close ordermasdeallocate ordermas结果查看:select *from ordermasteras declare chan cursor forselect employeenofrom employeeorder by employeeno descopen chanbegin ENDclose chandeallocate chanexec chansheng 3(产生三个)as declare chan cursor forselect employeeno,employeename,salaryfrom employeeopen chanbegin ENDclose chandeallocate chan执行:exec empname '李'(6) 创建存储过程,要求:输入年度,计算每个业务员的年终奖金额
年终奖金=年销售总额×提成率
提成率规则如下:年销售总额 5000 元以下部分,提成率为 10%,对