SlideShare a Scribd company logo
hasen@microcis.net July 15, 2013Hassen poreya
Trainer, Cresco Solution
Afghanistan Workforce
Development Program
Database
Database Management System, MySQL
Database
A Database is a container that holds tables and other
SQL structures related to those tables.
Database
Database Management System (DBMS)
 Elmasri & Navathe (2007):
“A database management system (DBMS) is a
collection of programs that enables users to
create and maintain a database.”
Database Management System (DBMS)
 A DBMS fulfills several purposes:
 Defining databases
 Constructing databases
 Manipulating databases
 Sharing databases among various users and
applications
Database Management System (DBMS)
 MS Access
 MySQL (Open Source)
 SQL-Server (Microsoft)
 Oracle
 PostgreSQL
 FoxPro
 SQLite
SQL (Structured Query Language)
 SQL is a database language designed for
 Retrieval and management of data in relational DBMS
 Database schema creation and modification
 It is used also in case of security, Authorization,
Integrity
 2 Originally, SQL was called SEQUEL (Structured
English QUEry Language)
 3 Three languages within a language:
 The Data Definition Language (DDL)
 The Data Manipulation Language (DML)
 The Data Control Language (DCL)
Data Definition Language (DDL)
 The Data Definition Language (DDL) is the part of
SQL.
 You use to create, change, or destroy the basic
elements of a relational database.
 Definition Language (DDL) deals with the structure
of a database.
Data Definition Language (DDL)
 The DDL consists of these three commands:
 CREATE: You use the various forms of this command to
build the essential structures of the database
 ALTER: You use this command to change structures
that You create
 DROP: If you apply this command to a table, it
destroys not only the table's data, but its structure as
well.
Data Manipulation Language (DML)
 The Data Manipulation Language deals with the
data contained within that structure.
 The Data Manipulation Language (DML) is the part
of SQL that operates on the data.
 The DML statements that can be use is:
 INSERT
 UPDATE
 DELETE
 SELECT
Data Control Language (DCL)
 Protects your database from becoming corrupted.
 The DCL provides security for your database
 DCL hast four commands:
 COMMIT
 ROLLBACK
 GRANT
 REVOKE
Data Control Language (DCL)
 Database Name: Company
 Tables: employee, project, works in
Create Command (DDL)
 SHOW databases;
 To list name of available databases.
 CREATE DATABASE name;
 USE name;
Create Command (DDL)
 To create new table:
 CREATE TABLE table_name (column1_name
data_type1, column2_name data_type2…);
Create Command (DDL)
 To create table project:
 To create table works_in:
ALTER TABLE Commands
 Add new column:
 ALTER TABLE employee ADD COLUMN (salary
INTEGER);
 Change data type of a column:
 ALTER TABLE employee MODIFY COLUMN salary
FLOAT;
 Delete column:
 ALTER TABLE employee DROP COLUMN salary;
DROP Commands
 Delete Database:
 DROP DATABASE Company;
 Delete Table:
 DROP TABLE employee;
 Two other useful command:
 SHOW TABLES; -- Show available tables (after selecting
a database with USE)
Commands
 DESCRIBE table name;
 Show structure of table
Data types
 INTEGER : integer
 FLOAT : floating point number
 DATE : a date, format: 'YYYY-MM-DD'
 VARCHAR(N) : variable length string, the length is
indicated by N, range 0-255
 TEXT : text, maximum length of 65,535 characters
 BOOLEAN : 0=false, any other value=true
Exercise
 Create a database “Student”
 Each student has different information including
ID, name, last name, class, phone number.
 Table student.
 Each student also needs a username and password
to enter to the library system.
 Table users
 Do entry at least for five students!
hasen@microcis.net July 15, 2013Hassen poreya
Trainer, Cresco Solution
Any Questions!

More Related Content

What's hot (20)

Structured query language
Structured query languageStructured query language
Structured query language
Rashid Ansari
 
Database Fundamental
Database FundamentalDatabase Fundamental
Database Fundamental
Gong Haibing
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
Tayyab Hussain
 
Data base
Data baseData base
Data base
Girish Gowda
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic Concepts
Tony Wong
 
DDL And DML
DDL And DMLDDL And DML
DDL And DML
pnp @in
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
Bwsrang Basumatary
 
SQL for interview
SQL for interviewSQL for interview
SQL for interview
Aditya Kumar Tripathy
 
SQLSlide
SQLSlideSQLSlide
SQLSlide
OrtonRandyandy34534
 
Ddl vs dml
Ddl vs dmlDdl vs dml
Ddl vs dml
shahbazalishahbaz
 
Data Definition and Data Manipulation Language-DDL & DML
Data Definition and Data Manipulation Language-DDL & DMLData Definition and Data Manipulation Language-DDL & DML
Data Definition and Data Manipulation Language-DDL & DML
Md. Selim Hossain
 
Sql – pocket guide
Sql – pocket guideSql – pocket guide
Sql – pocket guide
Santhosh Kumar
 
Group Members
Group MembersGroup Members
Group Members
Farhan Shahani
 
Data Ware Housing through SQL concept
Data Ware Housing through SQL conceptData Ware Housing through SQL concept
Data Ware Housing through SQL concept
UGKkhan
 
Sql database development part 1
Sql database development part 1Sql database development part 1
Sql database development part 1
Sqlperfomance
 
Types of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligetiTypes of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligeti
Naveen Kumar Veligeti
 
Presentation1
Presentation1Presentation1
Presentation1
ahsan-1252
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introduction
Hasan Kata
 
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick LearningOracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
eVideoTuition
 
Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
Md.Mojibul Hoque
 
Structured query language
Structured query languageStructured query language
Structured query language
Rashid Ansari
 
Database Fundamental
Database FundamentalDatabase Fundamental
Database Fundamental
Gong Haibing
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic Concepts
Tony Wong
 
DDL And DML
DDL And DMLDDL And DML
DDL And DML
pnp @in
 
Data Definition and Data Manipulation Language-DDL & DML
Data Definition and Data Manipulation Language-DDL & DMLData Definition and Data Manipulation Language-DDL & DML
Data Definition and Data Manipulation Language-DDL & DML
Md. Selim Hossain
 
Data Ware Housing through SQL concept
Data Ware Housing through SQL conceptData Ware Housing through SQL concept
Data Ware Housing through SQL concept
UGKkhan
 
Sql database development part 1
Sql database development part 1Sql database development part 1
Sql database development part 1
Sqlperfomance
 
Types of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligetiTypes of sql commands by naveen kumar veligeti
Types of sql commands by naveen kumar veligeti
Naveen Kumar Veligeti
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introduction
Hasan Kata
 
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick LearningOracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
eVideoTuition
 

Viewers also liked (15)

Learn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own AdventuresLearn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own Adventures
Tessa Mero
 
Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12
Hassen Poreya
 
Web app development_php_04
Web app development_php_04Web app development_php_04
Web app development_php_04
Hassen Poreya
 
Web app development_database_design_11
Web app development_database_design_11Web app development_database_design_11
Web app development_database_design_11
Hassen Poreya
 
CodeIgniter Practice
CodeIgniter PracticeCodeIgniter Practice
CodeIgniter Practice
Jamshid Hashimi
 
Web app development_crud_13
Web app development_crud_13Web app development_crud_13
Web app development_crud_13
Hassen Poreya
 
Web app development_my_sql_09
Web app development_my_sql_09Web app development_my_sql_09
Web app development_my_sql_09
Hassen Poreya
 
Web app development_html_css_03
Web app development_html_css_03Web app development_html_css_03
Web app development_html_css_03
Hassen Poreya
 
Web app development_php_07
Web app development_php_07Web app development_php_07
Web app development_php_07
Hassen Poreya
 
Web app development_php_06
Web app development_php_06Web app development_php_06
Web app development_php_06
Hassen Poreya
 
Web app development_php_05
Web app development_php_05Web app development_php_05
Web app development_php_05
Hassen Poreya
 
Web app development_database_design_10
Web app development_database_design_10Web app development_database_design_10
Web app development_database_design_10
Hassen Poreya
 
Web app development_html_01
Web app development_html_01Web app development_html_01
Web app development_html_01
Hassen Poreya
 
Web app development_cookies_sessions_14
Web app development_cookies_sessions_14Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
Hassen Poreya
 
Web app development_html_02
Web app development_html_02Web app development_html_02
Web app development_html_02
Hassen Poreya
 
Learn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own AdventuresLearn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own Adventures
Tessa Mero
 
Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12
Hassen Poreya
 
Web app development_php_04
Web app development_php_04Web app development_php_04
Web app development_php_04
Hassen Poreya
 
Web app development_database_design_11
Web app development_database_design_11Web app development_database_design_11
Web app development_database_design_11
Hassen Poreya
 
Web app development_crud_13
Web app development_crud_13Web app development_crud_13
Web app development_crud_13
Hassen Poreya
 
Web app development_my_sql_09
Web app development_my_sql_09Web app development_my_sql_09
Web app development_my_sql_09
Hassen Poreya
 
Web app development_html_css_03
Web app development_html_css_03Web app development_html_css_03
Web app development_html_css_03
Hassen Poreya
 
Web app development_php_07
Web app development_php_07Web app development_php_07
Web app development_php_07
Hassen Poreya
 
Web app development_php_06
Web app development_php_06Web app development_php_06
Web app development_php_06
Hassen Poreya
 
Web app development_php_05
Web app development_php_05Web app development_php_05
Web app development_php_05
Hassen Poreya
 
Web app development_database_design_10
Web app development_database_design_10Web app development_database_design_10
Web app development_database_design_10
Hassen Poreya
 
Web app development_html_01
Web app development_html_01Web app development_html_01
Web app development_html_01
Hassen Poreya
 
Web app development_cookies_sessions_14
Web app development_cookies_sessions_14Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
Hassen Poreya
 
Web app development_html_02
Web app development_html_02Web app development_html_02
Web app development_html_02
Hassen Poreya
 
Ad

Similar to Web app development_my_sql_08 (20)

Database language
Database languageDatabase language
Database language
University of Science and Technology Chitttagong
 
Structures query language ___PPT (1).pdf
Structures query language ___PPT (1).pdfStructures query language ___PPT (1).pdf
Structures query language ___PPT (1).pdf
tipurple7989
 
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dmlDDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
 
Himani uppal-221302130 WP ppt.pptx
Himani uppal-221302130  WP ppt.pptxHimani uppal-221302130  WP ppt.pptx
Himani uppal-221302130 WP ppt.pptx
MohitYadav889220
 
Unit - II.pptx
Unit - II.pptxUnit - II.pptx
Unit - II.pptx
MrsSavitaKumbhare
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL Commands
BHARATH KUMAR
 
our company has an opening for a junior database administrator. As a.pdf
our company has an opening for a junior database administrator. As a.pdfour company has an opening for a junior database administrator. As a.pdf
our company has an opening for a junior database administrator. As a.pdf
arshiartpalace
 
SQL_NOTES.pdf
SQL_NOTES.pdfSQL_NOTES.pdf
SQL_NOTES.pdf
AnshumanDwivedi14
 
dbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdh
dbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdhdbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdh
dbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdh
saisanthoshreddy143
 
Database Language.docx
Database Language.docxDatabase Language.docx
Database Language.docx
antonymwangi31
 
6.Database Languages lab-1.pptx
6.Database Languages lab-1.pptx6.Database Languages lab-1.pptx
6.Database Languages lab-1.pptx
AshokRachapalli1
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptxMy lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
Using Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptxUsing Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
Database Management System (DBMS).pptx
Database Management System (DBMS).pptxDatabase Management System (DBMS).pptx
Database Management System (DBMS).pptx
GevitaChinnaiah
 
Introduction to SQl Commands.pptxhhjhvvb
Introduction to SQl Commands.pptxhhjhvvbIntroduction to SQl Commands.pptxhhjhvvb
Introduction to SQl Commands.pptxhhjhvvb
DeepakSingh99214
 
Lab
LabLab
Lab
neelam_rawat
 
SQL commands in database managemant systems
SQL commands in database managemant systemsSQL commands in database managemant systems
SQL commands in database managemant systems
pmselvaraj
 
An intoduction to sql and its components
An intoduction to sql and its componentsAn intoduction to sql and its components
An intoduction to sql and its components
Monika Jain DAIMSR
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
Anusha sivakumar
 
Database management system unit 1 Bca 2-semester notes
Database management system  unit 1 Bca 2-semester notesDatabase management system  unit 1 Bca 2-semester notes
Database management system unit 1 Bca 2-semester notes
n32310997
 
Structures query language ___PPT (1).pdf
Structures query language ___PPT (1).pdfStructures query language ___PPT (1).pdf
Structures query language ___PPT (1).pdf
tipurple7989
 
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dmlDDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
 
Himani uppal-221302130 WP ppt.pptx
Himani uppal-221302130  WP ppt.pptxHimani uppal-221302130  WP ppt.pptx
Himani uppal-221302130 WP ppt.pptx
MohitYadav889220
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL Commands
BHARATH KUMAR
 
our company has an opening for a junior database administrator. As a.pdf
our company has an opening for a junior database administrator. As a.pdfour company has an opening for a junior database administrator. As a.pdf
our company has an opening for a junior database administrator. As a.pdf
arshiartpalace
 
dbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdh
dbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdhdbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdh
dbms gdjdjdjehdhdjjdjdudjdjdjdhhdhdbdhdhdh
saisanthoshreddy143
 
Database Language.docx
Database Language.docxDatabase Language.docx
Database Language.docx
antonymwangi31
 
6.Database Languages lab-1.pptx
6.Database Languages lab-1.pptx6.Database Languages lab-1.pptx
6.Database Languages lab-1.pptx
AshokRachapalli1
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptxMy lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
Using Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptxUsing Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
Database Management System (DBMS).pptx
Database Management System (DBMS).pptxDatabase Management System (DBMS).pptx
Database Management System (DBMS).pptx
GevitaChinnaiah
 
Introduction to SQl Commands.pptxhhjhvvb
Introduction to SQl Commands.pptxhhjhvvbIntroduction to SQl Commands.pptxhhjhvvb
Introduction to SQl Commands.pptxhhjhvvb
DeepakSingh99214
 
SQL commands in database managemant systems
SQL commands in database managemant systemsSQL commands in database managemant systems
SQL commands in database managemant systems
pmselvaraj
 
An intoduction to sql and its components
An intoduction to sql and its componentsAn intoduction to sql and its components
An intoduction to sql and its components
Monika Jain DAIMSR
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
Anusha sivakumar
 
Database management system unit 1 Bca 2-semester notes
Database management system  unit 1 Bca 2-semester notesDatabase management system  unit 1 Bca 2-semester notes
Database management system unit 1 Bca 2-semester notes
n32310997
 
Ad

Recently uploaded (20)

Supercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMsSupercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMs
Francesco Corti
 
Fortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in CybersecurityFortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in Cybersecurity
VICTOR MAESTRE RAMIREZ
 
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto CertificateCybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
VICTOR MAESTRE RAMIREZ
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
Introducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRCIntroducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRC
Adtran
 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...
pranavbodhak
 
Microsoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentationMicrosoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentation
Digitalmara
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath InsightsUiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPathCommunity
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Supercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMsSupercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMs
Francesco Corti
 
Fortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in CybersecurityFortinet Certified Associate in Cybersecurity
Fortinet Certified Associate in Cybersecurity
VICTOR MAESTRE RAMIREZ
 
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto CertificateCybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
VICTOR MAESTRE RAMIREZ
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
Introducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRCIntroducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRC
Adtran
 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...
pranavbodhak
 
Microsoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentationMicrosoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentation
Digitalmara
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath InsightsUiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPath Community Berlin: Studio Tips & Tricks and UiPath Insights
UiPathCommunity
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 

Web app development_my_sql_08

  • 1. [email protected] July 15, 2013Hassen poreya Trainer, Cresco Solution Afghanistan Workforce Development Program Database Database Management System, MySQL
  • 2. Database A Database is a container that holds tables and other SQL structures related to those tables.
  • 4. Database Management System (DBMS)  Elmasri & Navathe (2007): “A database management system (DBMS) is a collection of programs that enables users to create and maintain a database.”
  • 5. Database Management System (DBMS)  A DBMS fulfills several purposes:  Defining databases  Constructing databases  Manipulating databases  Sharing databases among various users and applications
  • 6. Database Management System (DBMS)  MS Access  MySQL (Open Source)  SQL-Server (Microsoft)  Oracle  PostgreSQL  FoxPro  SQLite
  • 7. SQL (Structured Query Language)  SQL is a database language designed for  Retrieval and management of data in relational DBMS  Database schema creation and modification  It is used also in case of security, Authorization, Integrity  2 Originally, SQL was called SEQUEL (Structured English QUEry Language)  3 Three languages within a language:  The Data Definition Language (DDL)  The Data Manipulation Language (DML)  The Data Control Language (DCL)
  • 8. Data Definition Language (DDL)  The Data Definition Language (DDL) is the part of SQL.  You use to create, change, or destroy the basic elements of a relational database.  Definition Language (DDL) deals with the structure of a database.
  • 9. Data Definition Language (DDL)  The DDL consists of these three commands:  CREATE: You use the various forms of this command to build the essential structures of the database  ALTER: You use this command to change structures that You create  DROP: If you apply this command to a table, it destroys not only the table's data, but its structure as well.
  • 10. Data Manipulation Language (DML)  The Data Manipulation Language deals with the data contained within that structure.  The Data Manipulation Language (DML) is the part of SQL that operates on the data.  The DML statements that can be use is:  INSERT  UPDATE  DELETE  SELECT
  • 11. Data Control Language (DCL)  Protects your database from becoming corrupted.  The DCL provides security for your database  DCL hast four commands:  COMMIT  ROLLBACK  GRANT  REVOKE
  • 12. Data Control Language (DCL)  Database Name: Company  Tables: employee, project, works in
  • 13. Create Command (DDL)  SHOW databases;  To list name of available databases.  CREATE DATABASE name;  USE name;
  • 14. Create Command (DDL)  To create new table:  CREATE TABLE table_name (column1_name data_type1, column2_name data_type2…);
  • 15. Create Command (DDL)  To create table project:  To create table works_in:
  • 16. ALTER TABLE Commands  Add new column:  ALTER TABLE employee ADD COLUMN (salary INTEGER);  Change data type of a column:  ALTER TABLE employee MODIFY COLUMN salary FLOAT;  Delete column:  ALTER TABLE employee DROP COLUMN salary;
  • 17. DROP Commands  Delete Database:  DROP DATABASE Company;  Delete Table:  DROP TABLE employee;  Two other useful command:  SHOW TABLES; -- Show available tables (after selecting a database with USE)
  • 18. Commands  DESCRIBE table name;  Show structure of table
  • 19. Data types  INTEGER : integer  FLOAT : floating point number  DATE : a date, format: 'YYYY-MM-DD'  VARCHAR(N) : variable length string, the length is indicated by N, range 0-255  TEXT : text, maximum length of 65,535 characters  BOOLEAN : 0=false, any other value=true
  • 20. Exercise  Create a database “Student”  Each student has different information including ID, name, last name, class, phone number.  Table student.  Each student also needs a username and password to enter to the library system.  Table users  Do entry at least for five students!
  • 21. [email protected] July 15, 2013Hassen poreya Trainer, Cresco Solution Any Questions!