Put a name field in the courses table, and then use the coursecode to be the link between the two tables. Here's an example:
courses:
coursecode int primary key auto_increment
coursename varchar
briefdesc varchar OR text
courseaims:
courseaimid int primary key auto_increment
coursecode int
Using this design, each coursecode has one name, and you link the name to courseaims via the coursecode.
i.e. SELECT * FROM courses,courseaims WHERE courses.coursecode=courseaims.coursecode ORDER BY coursename ASC;
or something like that, only selecting what you actually need. The key here is to link the two coursecode fields (they can be named whatever you want, as long as they are linked together).