三、综合应用(1小题,计30分) 当order_detail表中的单价修改后,应该根据该表的"单价"和"数量"字段修改order_list表的总金额字段,现在编写程序实现此功能,具体要求和注意事项如下: (1) 根据order_detail表中的记录重新计算order_list表的总金额字段的值; (2) 一条order_list记录可以对应几条order_detail记录; (3) 在编程前应保证在基础操作中正确地建立了order_list表,在简单应用中为该表追加了记录(注意只能追加一次); (4) 最后将order_list表中的记录按总金额降序排序存储到od_new表中(表结构与order_list表完全相同); (5) 将程序保存为prog1.prg文件。 解答: Prog1.prg程序代码如下: Sele 订单号,sum(单价*数量) as 总金额 from order_detai1 group by 订单号 into table t set talk off use t in 0 index on 订单号 tag xx set order to tag xx use order_list in 2 select 2 set relation to 订单号 into order_detail replace all 总金额 with t.总金额 sort on 总金额/desc to od_new set talk on 附:本题相关表