-
实验代码适用于Oracle数据库
资源介绍
(1)求供应工程J1零件的供应商号码SNO:
select sno from spj where jno = 'J1';
(2)求供应工程J1零件P1的供应商号码SNO:
select sno from spj where jno ='J1' and pno = 'P1';
(3)求供应工程J1零件为红色的供应商号码SNO:
select sno from spj natural join p where jno = 'J1'and color = '红';
(4)求没有使用天津供应商生产的红色零件的工程号JNO:
select jno from spj where jno not in(select jno from spj natural join s natural
- 上一篇: 华为AAA&Radius培训资料.rar
- 下一篇: oracle 代码?数据库