Professional Documents
Culture Documents
Lab Report- 04
Submitted To
Md. Rashedul Islam
Assistant Professor
Department of CSE
IUBAT
Submitted By
Abdullah
ID: 19303034
Section-A
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
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.
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.