I am working with DatMart with out any tool.I have table where its lists student details.
SystudentID Campus FirstNAme LastName
8 AICASA Ali Mehdi
9 AICASA Ashka Patel
10 AICASA Jane Iwuchukwu-Brooks
11 AICASA Helen Oredeko
A student can enroll into multiple program as below.(It is not fixed)
AdEnrollID SyStudentId Program Term
2671 9 AICASA Fall - 2009 AICASA
2537 11 AICASA Spring - 2009 AICASA
2634 8 AICASA Fall - 2010 AICASA
1853 10 AICASA Fall - 2008 AICASA
Now I am combining these two tables and I want to make one table REP_student where all details I want . But it shouldn't give me two row. (Please see the table structure) IS there any Table type in SQL . What is the best way to achieve it?
SystudentID Campus FirstNAme LastName AdEnrollID SyStudentId Program Term
Thanks