Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to group together students who attend multiple schools in MySQL? I have a table composed simply of student and school and I need to
How to group together students who attend multiple schools in MySQL?
I have a table composed simply of student and school and I need to reduce this table to just those students who applied to both PSU and MIT, which would be Amy and Helen. So here's what the before and after would look like: Before: student school Amy PSU Amy MIT Bob MIT Fay PSU Jay PSU Irene PSU Helen PSU Helen MIT After: student school Amy PSU Amy MIT Helen PSU Helen MIT Any general direction I could be pointed in? I'm fairly new to SQL so this may be trivial as I'm not aware of all SQL operations. I believe this can be done with GROUP BY but I'm not sure how. ThanksStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started