i have two tables which are Courses and Departments
the Courses table contains 2 attributes (CourseID,CourseName)
the Departments table contains 2 attributes either (DeptID,CourseID)
the department number 2 have 5 courses.
now .. i want to make a stored procedure that creates a table contains the following attributes (DeptID,courseNo1,courseNo2,courseNo3,courseNo4,courseNo5) depends on the previous two tables