SlideShare une entreprise Scribd logo
1  sur  33
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
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.
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.
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)
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.
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.
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).
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.
INSERT (Pojadas)
INSERT: Place new rows of
data in the database.
SELECT
SELECT: Retrieve
rows of data.
UPDATE
UPDATE: Replace
existing values in the
database with new
values.
DELETE
DELETE: Delete rows of
data in the database.
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.
SELECT and FROM
The Select part of
a query
determines which
columns of the
data to show in
the results.
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.
UPDATE (Sano)
To update a record in a
table you use the
Update statement.
DELETE
Is used to delete a record in a table.
INSERT
Is a way to insert
data into a table.
PHP Functions for MySQL
connectivity and operations (Capurihan)
PHP has a rich collection of built in functions for
manipulating MySQL databases.
PHP mysql_connect
The PHP mysql
connect function is
used to connect to a
MySQL database
server.
PHP mysql_select_db (Gatdula)
The
mysqli_select_db
function is used to
select a database.
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
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.
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.
INNER JOIN (Vargas)
The INNER JOIN selects all rows from both
participating tables as long as there is a match
between the columns.
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.
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.
THANK
YOU !

Contenu connexe

Similaire à GROUP-4-Database-Connectivity-with-MySqL.pptx

RDBMS BY DANISH SHAFI MIR.pptx
RDBMS BY DANISH SHAFI MIR.pptxRDBMS BY DANISH SHAFI MIR.pptx
RDBMS BY DANISH SHAFI MIR.pptx
THEFPS
 

Similaire à GROUP-4-Database-Connectivity-with-MySqL.pptx (20)

RDBMS
RDBMSRDBMS
RDBMS
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
DATABASE PRESENTATION
DATABASE PRESENTATIONDATABASE PRESENTATION
DATABASE PRESENTATION
 
SQL
SQLSQL
SQL
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
Module02
Module02Module02
Module02
 
T-SQL Overview
T-SQL OverviewT-SQL Overview
T-SQL Overview
 
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics Covered
 
Relational Database Language.pptx
Relational Database Language.pptxRelational Database Language.pptx
Relational Database Language.pptx
 
SQL2.pptx
SQL2.pptxSQL2.pptx
SQL2.pptx
 
RDBMS BY DANISH SHAFI MIR.pptx
RDBMS BY DANISH SHAFI MIR.pptxRDBMS BY DANISH SHAFI MIR.pptx
RDBMS BY DANISH SHAFI MIR.pptx
 
SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3
 
SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2
 
SQL cheat sheet.pdf
SQL cheat sheet.pdfSQL cheat sheet.pdf
SQL cheat sheet.pdf
 
SQL ARPIT YADAV.pptx
SQL ARPIT YADAV.pptxSQL ARPIT YADAV.pptx
SQL ARPIT YADAV.pptx
 
SQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptxSQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptx
 
MSSQL_Book.pdf
MSSQL_Book.pdfMSSQL_Book.pdf
MSSQL_Book.pdf
 
Adbms
AdbmsAdbms
Adbms
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
 
Oracle
OracleOracle
Oracle
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

GROUP-4-Database-Connectivity-with-MySqL.pptx

  • 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.
  • 10. INSERT (Pojadas) INSERT: Place new rows of data in the database.
  • 12. UPDATE UPDATE: Replace existing values in the database with new values.
  • 13. DELETE DELETE: Delete rows of data in the database.
  • 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.
  • 17. UPDATE (Sano) To update a record in a table you use the Update statement.
  • 18. DELETE Is used to delete a record in a table.
  • 19. INSERT Is a way to insert data into a table.
  • 20. PHP Functions for MySQL connectivity and operations (Capurihan) PHP has a rich collection of built in functions for manipulating MySQL databases.
  • 21. PHP mysql_connect The PHP mysql connect function is used to connect to a MySQL database server.
  • 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.
  • 32.