Database: cre_Students_Information_Systems
Question: Which students take 2 courses? List student id and details.
SQL:
SELECT T1.student_id ,  T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2