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

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

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

SELECT Sno,Grade FROM 学生选课表SC WHERE Cno='1'

ORDER BY Grade DESC;

SELECT *

FROM 学生表Student

ORDER BY Sdept,Age DESC;

1.2 1.2-1 Select*

from Customers where City='上海';

1.2-2

Select goodsname,storage,price,price*0.75 Discount from goods order by price;

1.2-3

Select goodsid,goodsname,price from goods

where goodsname like'%computer%';

1.2-4

Select storage,goodsname,price from goods

where storage between 100and 500;

1.3.1

select sno from SPJ where jno='J1';

3.2

select sno from SPJ

where jno='J1'and pno='P1';

4. 2.1.1

SELECT 学生表Student.*,学生选课表SC.*

FROM 学生表Student,学生选课表SC

WHERE 学生表Student.Sno = 学生选课表SC.Sno;

2.1.2

SELECT 学生表Student.Sno,Sname,Sex,Age,Sdept,Cno,Grade FROM 学生表Student,学生选课表SC

WHERE 学生表Student.Sno = 学生选课表SC.Sno;

2.1.3

SELECT First.Cno,Second.Cpno

FROM 课程表Course First,课程表Course Second WHERE First.CPno = Second.Cno;

2.1.4

SELECT 学生表Student.Sno,Sname,Sex,Age,Sdept,Cno,Grade FROM 学生表Student LEFT OUTER JOIN学生选课表SC

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