【发布时间】:2017-11-11 00:28:47
【问题描述】:
我有 3 个表,我正在使用内部联接从表中获取数据。
select b.pic,b.fname,b.lname, a.job_id, a.uid, a.job_title, a.description, a.city, a.position,
a.salary, a.looking_for,a.website,a.date
from job_posting a
inner join users b
inner join job_applied c on a.uid = b.uid and b.uid = c.uid
where c.job_id IS NULL and c.uid IS NULL and a.looking_for = 'student'
以上查询未返回任何数据。是空的。
让我解释一下表格。
job_posting - 包含工作信息。
用户 - 包含发布工作的用户信息。
job_applied - 包含用户已申请的职位。
所以,我想得到那些没有申请的工作。在 Job_paplied 表中,我有 job_id 和 uid。
【问题讨论】:
-
知道了。我需要为此创建一个小提琴。谢谢
-
好吧,我的建议是提供“三样东西”。这可能包括也可能不包括小提琴。
标签: mysql