Professional Documents
Culture Documents
Cpe Eli Concept of Joins
Cpe Eli Concept of Joins
Abstract
A JOIN clause is used to combine rows from two or more tables, based on a related column
between them. The purpose of this laboratory exercise is to learn the concepts of Joins and
implement it in SQL and database.
I. INTRODUCTION
Joint Multiple Table (Equi Join): Sometimes we require to treat more than one table as
though manipulate data from all the tables as though the tables were not separate object but one
single entity. To achieve this, we have to join tables. Tables are joined on column that have same
datatype and data with in tables. The tables that have to be joined are specified in the FROM clause
and the joining attributes in the WHERE clause.
II. IMPLEMENTATION
In this chapter will discuss about the laboratory exercise procedure. The procedures of this
laboratory experiment will guide about the data that I came up.
SELECT column_name(s)
FROM table1
INNER JOIN table2
ON table1.column_name=table2.column_name;
Figure 1. Using INNER Join to output rental ID, rental date, name of borrower and due date
Figure 2. Using LEFT JOIN to output borrowers name, borrower ID and rental ID
C. Using RIGHT JOIN
Figure 3. Using RIGHT JOIN to output book title, supplier name and location
This chapter is about the presentation of the output that I gathered based on the laboratory
exercise given.
IV. CONCLUSIONS
This laboratory exercise guides me to learn more on the concept of Joins. Through the
process, I learned how to implement the INNER join, LEFT join and RIGHT join in SQL. In
conclusion, I was able to understand how SQL works with join and the different types of join.
References
https://www.w3schools.com/sql/sql_join.asp
https://www.w3schools.com/sql/sql_join_left.asp