how to make an excluding table or query?

ariansman

Registered User.
Local time
Today, 01:41
Joined
Apr 3, 2012
Messages
157
There are two tables. One table is the student name and characteristics from schoolA during the last 20 years. The second table contains the student names and characteristics from California university during the last 20 years. Obviously, some but not all the university students have come from schoolA. How can we find:
1- students form school A who did not go to California university.
2- students from California university who did not come from School A.
Thank you
 
Something like:

1.
Code:
Select A.* 
From SchoolA A
Left Outer Join CalifUniv C
On A.Student_ID = C.Student_ID
Where C.Student_ID is Null
2.
Code:
Select C.* 
From CalifUniv C
Left Outer Join  SchoolA A
On C.Student_ID = A.Student_ID
Where A.Student_ID is Null
 

Users who are viewing this thread

Back
Top Bottom