- Jun 8, 2005
- 360
- 0
- 76
Let's say I have a table name Course. For simplicity, a simplified structure is below:
course_num | name | prereq_course_num
Prereq_course_num is a foreign key referencing Course(course_num).
What would the query look like if I wanted to get the course name, and the name of its pre-req. Note that a course may have only one prereq, but obviously, more than one course may have the same prereq.
course_num | name | prereq_course_num
Prereq_course_num is a foreign key referencing Course(course_num).
What would the query look like if I wanted to get the course name, and the name of its pre-req. Note that a course may have only one prereq, but obviously, more than one course may have the same prereq.