SEMI Join is used to return one copy of those rows from a table where at least one match is found in the values with the other mentioned table, and to serve this purpose, EXISTS construct is used instead of any JOIN keyword. The main advantage of this kind of Join query is that it makes the queries run faster and thus is a very powerful SQL construct.
SELECT columns FROM table_1 WHERE EXISTS ( SELECT values FROM table_2 WHERE table_2.column = table_1.column);
SELECT students.student_id, students.student_name FROM students WHERE EXISTS ( SELECT 25 FROM teachers WHERE teachers.teacher_age = students.student_age);
The ‘students’ and the ‘teachers’ are the already existing tables. After the joining, the selected fields of the rows of the ‘students’ table satisfying the equality condition will be displayed as a result, but this equality condition is valid only for those rows in the ‘students’ table that does have the value of student_age as 25.