简体   繁体   中英

SQL Query help in MS Access?

done //my attempt not working

SELECT *  
FROM Placement, Internship  
WHERE Placement.i_code=Internship.code   
WHERE Student.f_id <> Internship.f_id  

[INNER JOIN and LEFT JOIN cannot be used]

Relationship table:

![Relationship table][1]

Is this what you need?

SELECT Student.*
FROM Student, Placement, InterShip
WHERE Placement.i_code=Internship.code   
AND Placement.s_code=Student.id
AND Student.f_id <> Internship.f_id  

BTW: Why don't you want to use Joins?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM