0% found this document useful (0 votes)
10 views

SQL_Join

The document explains the concept of SQL Inner Joins, which return records with matching values in both tables. It provides a syntax example for performing an Inner Join between two tables, 'student' and 'course', along with a sample result set. The document encourages practicing similar queries for better understanding.

Uploaded by

FYCS34 HARSH
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

SQL_Join

The document explains the concept of SQL Inner Joins, which return records with matching values in both tables. It provides a syntax example for performing an Inner Join between two tables, 'student' and 'course', along with a sample result set. The document encourages practicing similar queries for better understanding.

Uploaded by

FYCS34 HARSH
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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!!!

You might also like