下载此文档

数据库答案 第三章习题参考答案.pptx


文档分类:IT计算机 | 页数:约9页 举报非法文档有奖
1/9
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/9 下载此文档
文档列表 文档介绍
1

Select sno from spj
Where jno=‘J1’;

Select sno from spj
Where jno=‘J1’ and pno=‘P1’;2

Select sno from spj, p
Where = and jno=‘J1’ and color=‘红’;
或:
Select sno from spj
Where jno =‘J1’ and pno in
(Select pno from p
where color=‘红’ );
3

Select jno
From j
Where not exists
(Select *
From spj, s, p
where = and =
and = and =‘天津’
and =‘红’ );
4

即查找:不存在这样的零件y,供应商S1供应了y,而工程x为选用y。
Select distinct jno
From spj z
Where not exists
(select *
from spj x
where sno=‘S1’
and not exists
(select *
from spj y
where = and =));
51. 找出所有供应商的姓名及其所在城市。
Select sname, city
from s;
2. 找出所有零件的名称、颜色、重量。
Select pname, color, weight
from p;

Select jno
from spj
where sno=‘S1’;
6
所使用的各种零件的名称及其数量。
Select ,
from p, spj
where = and =‘J2’;

Select distinct pno
from spj
where sno in
(Select sno
from s
where city=‘上海’);
7
6. 找出使用上海产的零件的工程项目名。
Select jname
from j,spj,s
where =sp

数据库答案 第三章习题参考答案 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数9
  • 收藏数0 收藏
  • 顶次数0
  • 上传人421989820
  • 文件大小67 KB
  • 时间2021-01-13