This is my first time using a forum like this for SQL assistance so bear with me! I have a large query set for student data, each student has one row where the primary join table is their application record (all other tables joined onto that). Now, I'm looking to add in degree data, however many students have multiple degrees so it's duplicating the student rows (boo!).
Here is a shortened version of what it looks like:
StudentID CohortTerm DegreeYear DegreeMonth
1 2009 Spring 2011 05
1 2009 Spring 2013 10
2 2012 Fall 2015 05
3 2015 Fall 2017 05
3 2015 Fall 2018 05
Here is what I want it to look like:
StudentID CohortTerm Degree1_Y Degree1_M Degree2_Y Degree2_M
1 2009 Spring 2011 05 2013 10
2 2012 Fall 2015 05
3 2015 Fall 2017 05 2018 05