Suppose I have the following tables
Students (StudentId int Pk, StudentName nvarchar)
Lectures (LectureId Pk, StartDate, EndDate)
Enrollment (StudentID, LectureID)
When I execute the following query:
select StudentID From Students
I get 8 rows.. And when i execute:
select S.StudentID From Students S join Enrollment En On S.StudentID = En.StudentID
I get 11 Rows
Why is that, and how to use join without retrieving extra rows ? This could be a basic SQL question.. Excuse my ignorance.. I'm just a beginner