Database: cre_Students_Information_Systems
Question: What are the ids and details of the students who take 2 courses?
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