It is as simple as this..
For example, consider there are two tables namely student and contact with s and c as alias name respectively in the database named School.
Correlated Subquery:
Select s.student_id, s.student_name
from school.student s
where s.student_id IN
(
select c.student_id
from school.contact c
where MONTH(c.admission) = MONTH(s.admission)
);
Noncorrelated Subquery:
Select s.student_id, s.student_name
from school.student s
where s.student_id IN
(
select c.student_id
from school.contact c
where c.email = ‘heena12(at the rate)abc(dot)com’
);