I have two tables respectively
department_location
and project
I would like to find any projects running at a different location than the department location.
The resulting should be like this:
The code that I've implemented :
SELECT pro.pnumber,pro.pname,pro.plocation,dept.dlocation
FROM project AS pro,dept_location AS dept
WHERE pro.plocation != dept.dlocation AND pro.dnum = dept.dnumber
GROUP BY pro.pnumber,dept.dlocation
What am I missing?
Edit: Here is my.sql file