SlideShare a Scribd company logo
INTRODUCTION
TO SQL
Contact Us
+91-9212172602
www.cetpainfotech.com
query@cetpainfotech.com
CONTENT
What isSQL?
SQL Commands
DDL Commands
DMLCommands
DCL Commands
DQL Commands
WHAT ISSQL?
Structured QueryLanguage
SQL is Structured Query Language,
which is a computer langauge for
storing, manipulating, and retrieving
data stored in relational database.
SQL is the standard language for
Relation Database System. All
relational database management
systems like "MySQL, MS Access,
Oracle, Postgres and SQL Server" use
SQL as standard database language.
SQL
COMMANDS
DDL - Data Definition Language
DML - Data Manipulation Language
DCL - Data Control Language
DQL - Data Query Language
DATA DEFINITIONLANGUAGE
(DDL) COMMANDS
DDL(Data Definition Language): To make/perform changes to the
physical structure of any table residing inside a database, DDL is
used. These commands when executed are auto-commit in
nature and all the changes in the table are reflected and saved
immediately.
In SQL DDL commands are used to create and modify the
structure of a database and database objects. These commands
are CREATE, DROP, ALTER, TRUNCATE, and RENAME. Let us
discuss these commands one at a time.
DATA MANIPULATION
LANGUAGE (DML)COMMANDS
DML(Data Manipulation Language): Once the tables are created
and the database is generated using DDL commands,
manipulation inside those tables and databases is done using
DML commands. The advantage of using DML commands is, that
if in case any wrong changes or values are made, they can be
changed and rolled back easily.
DML is used for inserting, deleting, and updating data in a
database. It is used to retrieve and manipulate data in a
relational database. It includes INSERT, UPDATE, and DELETE.
Let's discuss these commands one at a time.
DATA CONTROL LANGUAGE
(DCL) COMMANDS
DCL(Data Control Language): DCL commands as the name
suggests manage the matters and issues related to the data
controller in any database. DCL includes commands such as
GRANT and REVOKE which mainly deal with the rights,
permissions, and other controls of the database system.
DCL is used to access the stored data. It is used to revoke and
grant the user the required access to a database. In the
database, this language does not have the feature of rollback. It
is a part of the structured query language (SQL).
DATA QUERY LANGUAGE
(DQL) COMMANDS
DQL(Data Query Language): Data query language consists of only
one command upon which data selection in SQL relies. The
SELECT command in combination with other SQL clauses is
used to retrieve and fetch data from databases/tables based on
certain conditions applied by the user.
DQL commands are used for fetching data from a relational
database. They perform read-only queries of data. The only
command, 'SELECT' is equivalent to the projection operation in
relational algebra. It command selects the attribute based on
the condition described by the WHERE clause and returns them.
LET'SCONNECT
WITHUS!
+91-9212172602
query@cetpainfotech.com
www.cetpainfotech.com
THANKYOU!

More Related Content

Similar to Introduction to SQL.pptx (20)

PPTX
SQLBasic to advance for the beggineers.pptx
testvarun21
 
DOCX
Types of sql commands by naveen kumar veligeti
Naveen Kumar Veligeti
 
PPTX
An intoduction to sql and its components
Monika Jain DAIMSR
 
PPTX
Lecture 9 (Week 8) - Structured Query Language (SQL).pptx
motivationalvideos54
 
PPTX
SQLGuide.ppt.pptx
ssuser4fc7a8
 
PPTX
SQLGuide.ppt.pptx
ssuser4fc7a8
 
PPTX
sql.pptx
harshsolankurephotos
 
PPTX
Structured query language
Rashid Ansari
 
PDF
ppt.pdf
BrahmamKolli
 
PPTX
Structured Query Language (SQL)
Syed Hassan Ali
 
PDF
Structures query language ___PPT (1).pdf
tipurple7989
 
DOCX
ii bcom dbms SQL Commands.docx
lakshmi77
 
PDF
sql all type of commands in this power point presentation
BrahmamKolli
 
PDF
COMMANDS PPT(1).pdf
BrahmamKolli
 
PPTX
SQL commands powerpoint presentation. Ppt
umadevikakarlapudi
 
PPTX
Sql and Sql commands
Knowledge Center Computer
 
PPTX
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
PPTX
Structured Query Language
Surkhab Shelly
 
PDF
SQL Basics, DDL, DML, DQL, Learn The BAsics Of SQL.pdf
JavairiaRaza1
 
PPTX
structures query langauge basic for learners
syedalishahid6
 
SQLBasic to advance for the beggineers.pptx
testvarun21
 
Types of sql commands by naveen kumar veligeti
Naveen Kumar Veligeti
 
An intoduction to sql and its components
Monika Jain DAIMSR
 
Lecture 9 (Week 8) - Structured Query Language (SQL).pptx
motivationalvideos54
 
SQLGuide.ppt.pptx
ssuser4fc7a8
 
SQLGuide.ppt.pptx
ssuser4fc7a8
 
Structured query language
Rashid Ansari
 
ppt.pdf
BrahmamKolli
 
Structured Query Language (SQL)
Syed Hassan Ali
 
Structures query language ___PPT (1).pdf
tipurple7989
 
ii bcom dbms SQL Commands.docx
lakshmi77
 
sql all type of commands in this power point presentation
BrahmamKolli
 
COMMANDS PPT(1).pdf
BrahmamKolli
 
SQL commands powerpoint presentation. Ppt
umadevikakarlapudi
 
Sql and Sql commands
Knowledge Center Computer
 
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
Structured Query Language
Surkhab Shelly
 
SQL Basics, DDL, DML, DQL, Learn The BAsics Of SQL.pdf
JavairiaRaza1
 
structures query langauge basic for learners
syedalishahid6
 

More from shubhidas (8)

PDF
Satelllite Networks.pdf
shubhidas
 
PDF
Network Topology.pdf
shubhidas
 
PDF
Network Topology & OSI Model.pdf
shubhidas
 
PDF
SQL Operators.pdf
shubhidas
 
PDF
Computer Network Advantages Vs. Disadvantages.pdf
shubhidas
 
PPTX
Computer networks.pptx
shubhidas
 
PDF
Know about SQL.pdf
shubhidas
 
PDF
Java Full Stack.pdf
shubhidas
 
Satelllite Networks.pdf
shubhidas
 
Network Topology.pdf
shubhidas
 
Network Topology & OSI Model.pdf
shubhidas
 
SQL Operators.pdf
shubhidas
 
Computer Network Advantages Vs. Disadvantages.pdf
shubhidas
 
Computer networks.pptx
shubhidas
 
Know about SQL.pdf
shubhidas
 
Java Full Stack.pdf
shubhidas
 
Ad

Recently uploaded (20)

PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
PPT on the Development of Education in the Victorian England
Beena E S
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PDF
Comprehensive Guide to Writing Effective Literature Reviews for Academic Publ...
AJAYI SAMUEL
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PPTX
Folding Off Hours in Gantt View in Odoo 18.2
Celine George
 
PPTX
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
PDF
07.15.2025 - Managing Your Members Using a Membership Portal.pdf
TechSoup
 
PPTX
nutriquiz grade 4.pptx...............................................
ferdinandsanbuenaven
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPTX
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
PPTX
ENGLISH LEARNING ACTIVITY SHE W5Q1.pptxY
CHERIEANNAPRILSULIT1
 
PDF
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PPTX
Blanket Order in Odoo 17 Purchase App - Odoo Slides
Celine George
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PPTX
Presentation: Climate Citizenship Digital Education
Karl Donert
 
PPTX
Nutrition Month 2025 TARP.pptx presentation
FairyLouHernandezMej
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPT on the Development of Education in the Victorian England
Beena E S
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
Comprehensive Guide to Writing Effective Literature Reviews for Academic Publ...
AJAYI SAMUEL
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
Folding Off Hours in Gantt View in Odoo 18.2
Celine George
 
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
07.15.2025 - Managing Your Members Using a Membership Portal.pdf
TechSoup
 
nutriquiz grade 4.pptx...............................................
ferdinandsanbuenaven
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
ENGLISH LEARNING ACTIVITY SHE W5Q1.pptxY
CHERIEANNAPRILSULIT1
 
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
Blanket Order in Odoo 17 Purchase App - Odoo Slides
Celine George
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
Presentation: Climate Citizenship Digital Education
Karl Donert
 
Nutrition Month 2025 TARP.pptx presentation
FairyLouHernandezMej
 
Ad

Introduction to SQL.pptx

  • 2. CONTENT What isSQL? SQL Commands DDL Commands DMLCommands DCL Commands DQL Commands
  • 3. WHAT ISSQL? Structured QueryLanguage SQL is Structured Query Language, which is a computer langauge for storing, manipulating, and retrieving data stored in relational database. SQL is the standard language for Relation Database System. All relational database management systems like "MySQL, MS Access, Oracle, Postgres and SQL Server" use SQL as standard database language.
  • 4. SQL COMMANDS DDL - Data Definition Language DML - Data Manipulation Language DCL - Data Control Language DQL - Data Query Language
  • 5. DATA DEFINITIONLANGUAGE (DDL) COMMANDS DDL(Data Definition Language): To make/perform changes to the physical structure of any table residing inside a database, DDL is used. These commands when executed are auto-commit in nature and all the changes in the table are reflected and saved immediately. In SQL DDL commands are used to create and modify the structure of a database and database objects. These commands are CREATE, DROP, ALTER, TRUNCATE, and RENAME. Let us discuss these commands one at a time.
  • 6. DATA MANIPULATION LANGUAGE (DML)COMMANDS DML(Data Manipulation Language): Once the tables are created and the database is generated using DDL commands, manipulation inside those tables and databases is done using DML commands. The advantage of using DML commands is, that if in case any wrong changes or values are made, they can be changed and rolled back easily. DML is used for inserting, deleting, and updating data in a database. It is used to retrieve and manipulate data in a relational database. It includes INSERT, UPDATE, and DELETE. Let's discuss these commands one at a time.
  • 7. DATA CONTROL LANGUAGE (DCL) COMMANDS DCL(Data Control Language): DCL commands as the name suggests manage the matters and issues related to the data controller in any database. DCL includes commands such as GRANT and REVOKE which mainly deal with the rights, permissions, and other controls of the database system. DCL is used to access the stored data. It is used to revoke and grant the user the required access to a database. In the database, this language does not have the feature of rollback. It is a part of the structured query language (SQL).
  • 8. DATA QUERY LANGUAGE (DQL) COMMANDS DQL(Data Query Language): Data query language consists of only one command upon which data selection in SQL relies. The SELECT command in combination with other SQL clauses is used to retrieve and fetch data from databases/tables based on certain conditions applied by the user. DQL commands are used for fetching data from a relational database. They perform read-only queries of data. The only command, 'SELECT' is equivalent to the projection operation in relational algebra. It command selects the attribute based on the condition described by the WHERE clause and returns them.