I have one table, called "likes",that looks like this:
ID1 ID2
1247 1468
1641 1468
1316 1304
1025 1101
And another table, called "Students", that looks like this:
ID Name Grade
1510 Jordan 9
1689 Gabriel 9
1381 Tiffany 9
1709 Cassandra 9
1101 Haley 10
1782 Andrew 10
1468 Kris 10
1641 Brittany 10
1247 Alexis 11
1316 Austin 11
1911 Gabriel 11
1501 Jessica 11
1304 Jordan 12
1025 John 12
1934 Kyle 12
1661 Logan 12
What I'm trying to do is return a new table that has the following columns:
NameofID1, GradeofID1, NameOfID2, GradeOfID2, which would equate to somewhat of an "insert".
Any idea of how I might do this?
Thanks!