第一范文网 - 专业文章范例文档资料分享平台

数据库原理及应用孟彩霞版实验3~8 - 图文

来源:用户分享 时间:2025/9/24 15:35:36 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

(select *

from 学生选课表SC SCZ

where SCZ.Sno=SCX.Sno and SCZ.Cno=SCY.Cno));

47.

select Sno from 学生选课表SC where Cno='1' union select Sno

from 学生选课表SC where Cno='2';

(2) 6.

select CustomerID,GoodsID,OrderID from Orders

where Quantity>200 order by OrderDate;

7.

select * from Orders

where CustomerID in (select CustomerID from Customers where City='北京');

8.

select * from Orders

where CustomerID not in (select CustomerID from Customers where City='天津');

9.

select Customers.CustomerID,CName,City,OrderID, GoodsID,Quantity,OrderSum,OrderDate from Customers left outer join Orders

on Customers.CustomerID=Orders.CustomerID where City='西安';

(3) 5.3-4

select jno from J where jno not in (select jno from SPJ,S,P

where SPJ.sno=S.sno and SPJ.pno=P.pno and city='天津'

and color='红');

5.3-5

SELECT DIST PNO FROM SPJ WHERE SNO='S1' SELECT JNO FROM SPJ WHERE PNO='P1'

AND JNO IN (SELECT JNO FROM SPJ WHERE PNO='P2')

(4)

试验6 1

2 (1) 54

Create view c_学生表Student as

数据库原理及应用孟彩霞版实验3~8 - 图文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c3rupt8xt6077t6k14chx_5.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top