You are on page 1of 4

IUBAT- International University of Business Agriculture and Technology

Lab Report- 04

Course Name: Database Management System Lab

Course Code: CSC 434


Section: C

Submitted To
Md. Rashedul Islam
Assistant Professor
Department of CSE
IUBAT

Submitted By
Abdullah
ID: 19303034
Section-A

Department of CSE, IUBAT

Date of Submission: 25-07-2022

1
SQL Joins
A JOIN clause is used to combine rows from two or more tables, based on a
related column between them.

 (INNER) JOIN: Returns records that have matching values in both tables
 LEFT (OUTER) JOIN: Returns all records from the left table, and the
matched records from the right table
 RIGHT (OUTER) JOIN: Returns all records from the right table, and the
matched records from the left table
 FULL (OUTER) JOIN: Returns all records when there is a match in either
left or right table

SQL INNER JOIN Keyword


Inner join between ORDER and ORDER DETAILS

2
Explain: In this query use the SQL inner join between order and order details.
After the command, it shows the result and joins two tables, and shows the
output of the common table as shipper id, quantity, and finally order date.

Inner join between Shippers and ORDERS

Explain: : In this query use the SQL inner join between order and order shipper.
After the command, it shows the result and joins two tables, and shows the
output of the common table as employee id and shipper name.

3
Inner join between EMPLOYEE and ORDERS

Explain: In this query use the SQL inner join between order and employee. After
the command, it shows the result and joins two tables, and shows the output of
the common table as order date and employee first name.

You might also like