1 select 供应商名 from 供应商1 where 城市 like '北京'2 select 职工号,仓库号 from 职工1 where 职工号 in (select 职工号 from 订购单1 where 供应商号 like 's3')3 select * from 供应商1 where 城市 like '北京' and 供应商号 in (select 供应商号 from 订购单1 where 职工号 like 'e[1,3]')4 select 城市 from 仓库1 where 仓库号 in (select 仓库号 from 职工1 where 职工号 in (select 职工号 from 订购单1 where 供应商号 like 's4'))其它的自己慢慢写吧!有点累!
select * from 订购单,职工,仓库,供应商 where 订购单.职工号=职工.职工号 and 订购单.订购单号=供应商.订购单号 and 职工.仓库号=仓库.仓库号
以此类推。。。
7.select count(*) from 职工1 where工资>1220 8.select* from职工1 where 工资>avg(工资) group by 职工号应该对~
1.select 供应商名 from 供应商1 WHERE 城市=“北京”