SlideShare a Scribd company logo
Sql - Structured Query Language
DDL

                 DML


Outline                   History

                What is   SQL  Statement
SQL         Structured Query Language
Special-purpose programming language for
working with sets of facts and the
relationships between them.
                                   DML


                                           SQL
                                    DDL
History        SQL Develop by
                                                    IBM

                        1970s        Donald D.
                                   Chamberlin and
                                    Raymond F.
                                       Boyce




Initial version
           SEQUEL
            (Structured English Query Language)
DDL              Data Definition Language

  CREATE       an object (a table) in the database

                                           TRUNCATE
                                           deletes all data from a table




ALTER   modifies the structure of an existing object
                                                                DROP
                                                                delete an object
Data Manipulation Language    DML
     INSERT
                  Adds rows to an existing table

      UPDATE        Modifies a set of existing table
                    rows
     DELETE
                  Removes existing rows from a
                  table
INSERT
UPDATE
DELETE
Select
 Statement
                                                            Tables
                                                 Data
            What tables contain the data

  How data from different sources is related
                                                        Criteria
Which fields or calculations will produce the data

      Criteria that data must match to be included
                 Whether and how to sort the results

                                               Data Retrieval
Select
Statement
   Basic
SELECT <field>
FROM <table>
WHERE <criterion>;


                       Example
                     SELECT name, address
                     FROM student
                     WHERE stuID=123;

More Related Content

What's hot (20)

PPTX
Presentation slides of Sequence Query Language (SQL)
Punjab University
 
PPTX
What is SQL Server?
CPD INDIA
 
PPT
SQL select statement and functions
Vikas Gupta
 
PPTX
Sql(structured query language)
Ishucs
 
PPTX
SQL for interview
Aditya Kumar Tripathy
 
PDF
Sql tutorial
Rumman Ansari
 
PPT
Introduction to sql
VARSHAKUMARI49
 
PPTX
Sql queries presentation
NITISH KUMAR
 
PDF
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
 
PPT
Sql Server Basics
rainynovember12
 
PDF
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
PPTX
T-SQL Overview
Ahmed Elbaz
 
PPT
Mysql
TSUBHASHRI
 
ODP
Ms sql-server
Md.Mojibul Hoque
 
PPT
Introduction to structured query language (sql)
Sabana Maharjan
 
PPTX
SQL - DML and DDL Commands
Shrija Madhu
 
PPTX
SQL Functions
ammarbrohi
 
PPTX
Oracle Database Introduction
Chhom Karath
 
PPTX
SQL Commands
Sachidananda M H
 
Presentation slides of Sequence Query Language (SQL)
Punjab University
 
What is SQL Server?
CPD INDIA
 
SQL select statement and functions
Vikas Gupta
 
Sql(structured query language)
Ishucs
 
SQL for interview
Aditya Kumar Tripathy
 
Sql tutorial
Rumman Ansari
 
Introduction to sql
VARSHAKUMARI49
 
Sql queries presentation
NITISH KUMAR
 
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
 
Sql Server Basics
rainynovember12
 
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
T-SQL Overview
Ahmed Elbaz
 
Mysql
TSUBHASHRI
 
Ms sql-server
Md.Mojibul Hoque
 
Introduction to structured query language (sql)
Sabana Maharjan
 
SQL - DML and DDL Commands
Shrija Madhu
 
SQL Functions
ammarbrohi
 
Oracle Database Introduction
Chhom Karath
 
SQL Commands
Sachidananda M H
 

Viewers also liked (9)

PPTX
Manejo de triggers en sql server
Dheeyi William
 
PPTX
Data dictionary, domain modelling and making things easy
Lockheed-Martin
 
PPTX
Data dictionary
Shaikh Uves
 
PPTX
Using triggers in my sql database
Mbarara University of Science and technology
 
PPTX
What is a DATA DICTIONARY?
Leela Vasundara D K
 
PDF
SAP ABAP data dictionary
Revanth Nagaraju
 
PPTX
Data base management system
Navneet Jingar
 
PPTX
Data Manipulation Language
Jas Singh Bhasin
 
PPT
Data dictionary
Surbhi Panhalkar
 
Manejo de triggers en sql server
Dheeyi William
 
Data dictionary, domain modelling and making things easy
Lockheed-Martin
 
Data dictionary
Shaikh Uves
 
Using triggers in my sql database
Mbarara University of Science and technology
 
What is a DATA DICTIONARY?
Leela Vasundara D K
 
SAP ABAP data dictionary
Revanth Nagaraju
 
Data base management system
Navneet Jingar
 
Data Manipulation Language
Jas Singh Bhasin
 
Data dictionary
Surbhi Panhalkar
 
Ad

Similar to Sql - Structured Query Language (20)

PPTX
SQL2.pptx
RareDeath
 
PPTX
Introduction to SQL for beginners - Beginner Guide
nudz27
 
PPTX
Unit 4 Introduction to Oracle and Sql.pptx
svasuki0708
 
PDF
Introduction to SQL and Data Defination Language Commands
priyanaik70
 
PPTX
Lab2 ddl commands
Balqees Al.Mubarak
 
PPTX
DDL And DML
pnp @in
 
PDF
6_SQL.pdf
LPhct2
 
PPTX
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
 
PPTX
DBMS: Week 05 - Introduction to SQL Query
RashidFaridChishti
 
PPTX
Veena
veena ali
 
PPTX
Ddl vs dml
shahbazalishahbaz
 
PPTX
Group Members
Farhan Shahani
 
PDF
Sql 2009
Cathie101
 
DOCX
Oracle 11g SQL Overview
Prathap Narayanappa
 
PPTX
Computer Science 1s year pre university sql ppt
pajjusullad521
 
PDF
SQL Basics, DDL, DML, DQL, Learn The BAsics Of SQL.pdf
JavairiaRaza1
 
PPTX
lovely
love0323
 
PPS
Ado.net session07
Niit Care
 
PPTX
presentasi romi-java-06-database-october2013.pptx
steeveenn
 
SQL2.pptx
RareDeath
 
Introduction to SQL for beginners - Beginner Guide
nudz27
 
Unit 4 Introduction to Oracle and Sql.pptx
svasuki0708
 
Introduction to SQL and Data Defination Language Commands
priyanaik70
 
Lab2 ddl commands
Balqees Al.Mubarak
 
DDL And DML
pnp @in
 
6_SQL.pdf
LPhct2
 
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
 
DBMS: Week 05 - Introduction to SQL Query
RashidFaridChishti
 
Veena
veena ali
 
Ddl vs dml
shahbazalishahbaz
 
Group Members
Farhan Shahani
 
Sql 2009
Cathie101
 
Oracle 11g SQL Overview
Prathap Narayanappa
 
Computer Science 1s year pre university sql ppt
pajjusullad521
 
SQL Basics, DDL, DML, DQL, Learn The BAsics Of SQL.pdf
JavairiaRaza1
 
lovely
love0323
 
Ado.net session07
Niit Care
 
presentasi romi-java-06-database-october2013.pptx
steeveenn
 
Ad

Recently uploaded (20)

PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
infertility, types,causes, impact, and management
Ritu480198
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Horarios de distribución de agua en julio
pegazohn1978
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
Introduction presentation of the patentbutler tool
MIPLM
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Controller Request and Response in Odoo18
Celine George
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Difference between write and update in odoo 18
Celine George
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 

Sql - Structured Query Language

  • 2. DDL DML Outline History What is SQL Statement
  • 3. SQL Structured Query Language Special-purpose programming language for working with sets of facts and the relationships between them. DML SQL DDL
  • 4. History SQL Develop by IBM 1970s Donald D. Chamberlin and Raymond F. Boyce Initial version SEQUEL (Structured English Query Language)
  • 5. DDL Data Definition Language CREATE an object (a table) in the database TRUNCATE deletes all data from a table ALTER modifies the structure of an existing object DROP delete an object
  • 6. Data Manipulation Language DML INSERT Adds rows to an existing table UPDATE Modifies a set of existing table rows DELETE Removes existing rows from a table
  • 10. Select Statement Tables Data What tables contain the data How data from different sources is related Criteria Which fields or calculations will produce the data Criteria that data must match to be included Whether and how to sort the results Data Retrieval
  • 11. Select Statement Basic SELECT <field> FROM <table> WHERE <criterion>; Example SELECT name, address FROM student WHERE stuID=123;