SQL JOINS
Inner Join -
Return Records that have matching values in both tables
Syntax –
SELECT column(s)
FROM tableA
INNER JOIN tableB
ON tableA.col_name = tableB.col_name;
Student
Student_id Name
101 Adam
102 Bob
103 Casey
course
Student_id Course
102 English
105 Math
103 Science
107 Computer Science
SELECT *
FROM student
INNER JOIN course
ON student.student_id = course.student_id
RESULT –
student_id Name Course
102 Bob English
103 Casey Science
Rest of the queries are same just change the query and execute each query according to you
and prac ce more!!!