Hello,
I have a table as shown below. I need to write a sql query that tells
me what courses are common between Tom and Jim.
Name CourseID
-------------
Tom 1
Tom 2
Tom 3
Jim 1
Jim 3
Jim 4
Output needs to something like:
CourseID
--------
1
3
Appreciate all your help.
Thanks, Subhash
I have a table as shown below. I need to write a sql query that tells
me what courses are common between Tom and Jim.
Name CourseID
-------------
Tom 1
Tom 2
Tom 3
Jim 1
Jim 3
Jim 4
Output needs to something like:
CourseID
--------
1
3
Appreciate all your help.
Thanks, Subhash
Comment