I am a bit confused when trying to construct a query that brings the Names (from the ENAME column) of all the employees (from the employees table) that were not registered in the JAVA course (from the table registrations). the column attendee is the employee's foreign key (course code JAV)
Try the following query, which brings me the employee records that are in the other courses, omitting jav.
SELECT A.ENAME, B.COURSE
FROM EMPLOYEES A
INNER JOIN REGISTRATIONS B ON A.EMPNO=B.ATTENDEE
WHERE A.EMPNO = B.ATTENDE AND COURSE <> 'JAV'
However, I do not want you to bring me the name of someone who has ever registered in the jav course. ex:
cod|ename|course
1|Juan |sql
2|Pedro|sql
1|Juan |jav
Now, what I'm looking for is something similar to:
cod|ename|course
2|Pedro|sql