20134_BA_5
20134_BA_5
INNER JOIN returns only the rows where there is a match in both tables.
FROM EMPLOYEE
LEFT JOIN returns all rows from the left table (employees), even if there is no match in the right table
(departments). If there is no match, the result is NULL for columns from the right table.
RIGHT JOIN is the opposite of LEFT JOIN. It returns all rows from the right table (departments), and
the unmatched rows from the left table (employees) will show NULL.
FULL OUTER JOIN returns rows when there is a match in either left or right table. If there is no
match, the result is NULL for the missing side.
Since MySQL doesn't support FULL OUTER JOIN natively, you can emulate it by combining LEFT
JOIN and RIGHT JOIN with a UNION.
3. Learning Outcomes:
a) We will learn how to navigate and utilize the various tools and features within MySQL Workbench,
including the SQL editor, database modeling, and server management.
b) We will be able to create and modify the structure of databases using Data Definition Language (DDL)
commands such as:
CREATE, ALTER, and DROP (for databases, tables, views, etc.).
c) We will also master Data Manipulation Language (DML) commands to insert, update, and delete
records.
d) We will be able to write complex SQL queries using multiple joins between several tables. You will
understand how to join more than two tables in a single query and retrieve related data from all of them