- 1
- 0
- 约小于1千字
- 约 20页
- 2018-06-08 发布于贵州
- 举报
数据库练习PPT课件
;;;;;综合题以下题目基于如下数据库应用模型:商品销售管理系统;;;;;;;;;;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
;;;
您可能关注的文档
最近下载
- 2022年江苏省常州市中考数学一模试卷.pdf
- 精神分裂症阳性与阴性症状量表(PANSS).docx
- 2025年十堰市茅箭区中小学教师招聘笔试真题试卷及答案.docx VIP
- 【GB50273-2022 】锅炉安装工程施工及验收标准.docx VIP
- 科技项目设计任务书.doc VIP
- (高清版)DB42∕T 1301-2017 《荆门黑羽绿壳蛋鸡》.pdf VIP
- 急性淋巴细胞白血病.pptx VIP
- 信号与系统实验(MATLAB 西电版)实验11 连续LTI系统的频域分析.pdf VIP
- JB_T 14458-2024《土方机械 张紧装置》.pdf VIP
- 北京市地方标准《污水单位产品能耗限额》的研究与思考.pdf VIP
原创力文档

文档评论(0)