文件名称:oracle数据库实验代码
文件大小:19KB
文件格式:DOCX
更新时间:2022-05-26 03:30:39
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