I have 3 tables: Student, Course, and StudentCourse, which has id pairs from the other tables to show which students are taking what courses.
I'm trying to display a list of students enrolled in a course, but I'm not sure how to convey that in a single SQL statement.
The code below is just meant to show what I want to do, split into 3 statements.
int cId = "select id from course where name=someName";
int sId = "select studentId from StudentCourse where courseId=" + cId;
final statement: select name from Student where studentId=" + sId;
Sorry for the noob question, I did actually try searching for a solution, but couldn't quite find what I was looking for.