永发信息网

SQL 查询 问题

答案:5  悬赏:80  手机版
解决时间 2021-05-18 11:00
  • 提问者网友:wodetian
  • 2021-05-17 20:26
查询所有职工工资大于1210元的仓库信息
最佳答案
  • 五星知识达人网友:逐風
  • 2021-05-17 21:53

select * from 仓库表 as A  where not exists (Select * From 职工 As B where b.salary<=1210 and B.warehouse=A.warehouse)


全部回答
  • 1楼网友:一叶十三刺
  • 2021-05-18 00:36
select b1.warehouse,b1.address,b1.area from 表一 b1,表二 b2 where b1.warehouse=b2.warehouse and  b2.salary>1210 我想这一条sql语句应该对你有帮助吧!
  • 2楼网友:woshuo
  • 2021-05-18 00:25

你这不是已经查出来了吗!!!

一个表就是select * from 表名 where area >1220

2个就用inner join on 表名1.warehouse=表名.warehouse

  • 3楼网友:愁杀梦里人
  • 2021-05-17 23:37
select * from 仓库表 where warehouse in (select wareHouse from where salary>1210)
  • 4楼网友:千夜
  • 2021-05-17 23:29

select employees_id,address,area from 表2,表1 where  表1.warehouse=表2.warehouse and 表2.salary>1210

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯