See below 3 counts to give you a brief idea of ββthe table data. All skCitizen in [dbo].[LUEducation] are present in [dbo].[LUCitizen]
SELECT COUNT(*) FROM [dbo].[LUCitizen]
See below 2 queries,
SELECT C.skCitizen,E.skCitizen FROM [dbo].[LUCitizen] C LEFT JOIN [dbo].[LUEducation] E ON C.skCitizen = E.skCitizen WHERE E.skSchool = 24417
In the last two queries, the first question confuses me. There I expected 115000 rows , but only 4 rows displayed. In my opinion, the full lines from [dbo].[LUCitizen] will be shown, then 4 lines from [dbo].[LUEducation] will be LEFT Attached.
Why are the two requests different?
Forgive me if this is a duplicate question.
source share