Good day! Faced the following task: it is necessary to select all students who have completed all the specified courses. He wrote his guesses below, but this request selects those students who have passed at least one of the indicated ones.
SELECT student.Id, student.FirstName, student.LastName, student.MiddleName FROM student INNER JOIN coursegroupe AS cg ON cg.IdCourse IN ( '045d4fdd-83ac-45d5-9c7b-cd8e9ce85bf6','e2b59d3c-9c1e-44f5-aa9c-190ce8f063b2') INNER JOIN groupestudent AS gs ON gs.IdGroupe = cg.Id WHERE student.Id = gs.IdStudent;