WingedPanther said:
SELECT COURSES.* FROM COURSES INNER JOIN PEOPLECREDITS ON COURSES.COURSE=PEOPLECREDITS.COURSE WHERE PEOPLECREDITS.NAME='Bob';
Side note: you should probably have a foreign key relation between COURSES and PEOPLECREDITS.
i appreciate ur fast reply
the query u gave me wont work , anyhow i guess the problem is with my explanation
the project is about helping students in specific university's and specializations to calculate their gpa
the table courses contains all of the courses of all universitys and specializations , if the students chooses a course it will be added to the peoplecredits table ,however the subject is i want to return all of the courses that a student hasnt taken yet ,
selecting course from courses where people.credits!=courses.course and peoplecredits.name (or people.name) = 'bob';
is it well explained or do u need any further information ?