1. Database Connectivity
with MySqL
GROUP 4
M A R Y R O S E S A N O I R E N E J O Y
B A T I L L E R
S H E Z I E L R E N DO N S H E R YL P U G O Y
A C E V A R G AS J A S T I N E G A T D U L A
J E R I C H A A M A N J E N E VA P O J A DA S
M A R K D I V R E L A N D R E S J I R E L L E P A N A L I G A N
R O N A V I L L Q U I M S I N G M A R I A I S A BE L
B O R B O N
J O H N T H Y R O N C A P U R I H AN
2. Introduction to MySQL (Batiller)
What is a Database?
A database is a separate application that stores a
collection of data. Each database has one or more
distinct APIs for creating, accessing, managing,
searching and replicating the data it holds.
3. MySQL Database
MySQL is a fast, easy-to-use RDBMS being used
for many small and big businesses. MySQL is
developed, marketed and supported by MySQL
AB, which is a Swedish company.
4. An RDBMS is a type of database management
system (DBMS) that stores data in a row-based table
structure which connects related data elements.
RDBMS (Relational Database
Management System) (Rendon)
5. A Relational DataBase Management System
(RDBMS) is a software that −
Enables you to implement a database with tables,
columns and indexes.
Guarantees the Referential Integrity between rows of
various tables.
Updates the indexes automatically.
Interprets an SQL query and combines information
from various tables.
6. DataTypes (Quimsing)
Each column in a database table is required to have
a name and a data type.
It is a classification that specifies which type of value
a variable has and what type of mathematical,
relational or logical operations can be applied to it
without causing an error.
The data type is a guideline for SQL to understand
what type of data is expected inside of each column,
and it also identifies how SQL will interact with the
stored data.
7.
8. Database Operation (Panaligan)
An operational database management system is
software that is designed to allow users to easily
define, modify, retrieve, and manage data in real-
time.
SQL statements are divided into two major
categories: data definition language (DDL) and
data manipulation language (DML).
9. Database Manipulation Language
(DML)
Represents a collection of programming languages
explicitly used to make changes to the database,
such as: CRUD operations to create, read, update
and delete data. Using INSERT, SELECT,
UPDATE, and DELETE commands.
14. SQL Commands (Andres)
SQL commands are the instructions used to
communicate with a database to perform tasks,
functions, and queries with data.
SQL commands can be used to search the
database and to do other functions like creating
tables, adding data to tables, modifying data, and
dropping tables.
15. SELECT and FROM
The Select part of
a query
determines which
columns of the
data to show in
the results.
16. CREATE
It creates a table in the
database. You can specify
the name of the table and
the columns that should be
in the table.
23. PHP mysql_query
The mysqli_query function
is used to execute SQL
queries.
The function can be used
to execute the following
query types;
Insert
Select
Update
delete
24. JOIN (Borbon)
JOIN is an SQL clause used to query and access
data from multiple tables, based on logical
relationships between those tables.In other
words, JOINS indicate how SQL Server should
use data from one table to select the rows from
another table.
25. CROSS JOIN
The CROSS JOIN is used to generate a paired
combination of each row of the first table with
each row of the second table. This join type is
also known as cartesian join.
26.
27. INNER JOIN (Vargas)
The INNER JOIN selects all rows from both
participating tables as long as there is a match
between the columns.
28.
29. OUTER JOIN (Pugoy)
The SQL OUTER JOIN returns all rows from both the
participating tables which satisfy the join condition along
with rows which do not satisfy the join condition. The
SQL OUTER JOIN operator (+) is used only on one side
of the join condition only.
30.
31. SELF JOIN (Aman)
A self join is a join in which a table is joined with
itself (which is also called Unary relationships),
especially when the table has a FOREIGN KEY
which references its own PRIMARY KEY. To join a
table itself means that each row of the table is
combined with itself and with every other row of
the table.