Select distinct S.RollNo
From Student S
Where NOT EXISTS (
(Select P.Pcode From Packages P)
Minus
(Select R.Pcode From Registers R Where R.RollNo = S.RollNo)
)
(Select P.Pcode From Packages P)
This selects Pcode of all the packages.
(Select R.Pcode From Registers R Where R.RollNo = S.RollNo)
This selects Pcode of packages that belong to that particular student.
Subtracting second from first will give, Pcode of packages that do not belong to that student. If this does not exist, then that student will be selected. We can say that a student is selected if there does not exist any package which does not belong to that student.
Or, every package belongs to that student.
Or, student who registered for all the packages.
Option (D)