- 4
- 0
- 约小于1千字
- 约 20页
- 2018-08-05 发布于贵州
- 举报
数据库练习课件
;;;;;综合题以下题目基于如下数据库应用模型:商品销售管理系统;;;;;;;;;;create proc find_salers_A @start_date datetime,@end_date datetime as declare @sum_total numeric(10,2), @sum_every numeric(10,2),@ssid char(4)
select sid,sum(sqty* price) as salesum into #temp1 from sell_log
where sdate= @start_date and sdate =@end_date group by sid
select @sum_total =sum(salesum) from #temp1
declare find_cursor cursor for select sid,salesum from #temp1
open find_cursor
fetch next from find_cursor into @ssid, @sum_every
while @@fetch_status=0
;;;
您可能关注的文档
最近下载
- 三菱电梯三菱扶梯介绍PLUS2.ppt VIP
- 住宅建设用地使用权自动续期规则.PDF VIP
- 一例胸腔积液患者的护理查房PPT.pptx
- 某水库除险加固工程国民经济评价.doc VIP
- 《浙江省房屋建筑和市政基础设施工程施工图设计文件审查技术指南(2025年修订版)》.pdf
- 低钾血症诊治与管理专家共识(2026).pptx VIP
- 中国圆锥角膜诊断和治疗专家共识学习与解读PPT课件.pptx VIP
- 2024 KDIGO 临床实践指南:慢性肾脏病的评估和管理.pdf VIP
- 2026网络安全为人民,网络安全靠人民 网络安全主题班会课件(共41张PPT内嵌视频).pptx VIP
- 中国电力统计年鉴2025+中国电力企业联合会.docx
原创力文档

文档评论(0)