SlideShare a Scribd company logo
1 of 9
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

Similar to Introduction to SQL.pptx (20)

SQLGuide.ppt.pptx
SQLGuide.ppt.pptxSQLGuide.ppt.pptx
SQLGuide.ppt.pptx
 
SQLGuide.ppt.pptx
SQLGuide.ppt.pptxSQLGuide.ppt.pptx
SQLGuide.ppt.pptx
 
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
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query Language
 
Structured query language
Structured query languageStructured query language
Structured query language
 
Database Languages.pptx
Database Languages.pptxDatabase Languages.pptx
Database Languages.pptx
 
Sql queries
Sql queriesSql queries
Sql queries
 
SQL_NOTES.pdf
SQL_NOTES.pdfSQL_NOTES.pdf
SQL_NOTES.pdf
 
DDL And DML
DDL And DMLDDL And DML
DDL And DML
 
Ddl vs dml
Ddl vs dmlDdl vs dml
Ddl vs dml
 
Web app development_my_sql_08
Web app development_my_sql_08Web app development_my_sql_08
Web app development_my_sql_08
 
Database Systems - Introduction to SQL (Chapter 3/1)
Database Systems - Introduction to SQL (Chapter 3/1)Database Systems - Introduction to SQL (Chapter 3/1)
Database Systems - Introduction to SQL (Chapter 3/1)
 
Veena
VeenaVeena
Veena
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
introductiontosql-161216154706.pdf
introductiontosql-161216154706.pdfintroductiontosql-161216154706.pdf
introductiontosql-161216154706.pdf
 
Sql server difference faqs- 6
Sql server difference faqs- 6Sql server difference faqs- 6
Sql server difference faqs- 6
 
SQL Training courses.pptx
SQL Training courses.pptxSQL Training courses.pptx
SQL Training courses.pptx
 
sql ppt.pptx
sql ppt.pptxsql ppt.pptx
sql ppt.pptx
 
INTRO TO SQL.pptx
INTRO TO SQL.pptxINTRO TO SQL.pptx
INTRO TO SQL.pptx
 
Basics of dml queries
Basics of dml queriesBasics of dml queries
Basics of dml queries
 

More from shubhidas

Satelllite Networks.pdf
Satelllite Networks.pdfSatelllite Networks.pdf
Satelllite Networks.pdfshubhidas
 
Network Topology.pdf
Network Topology.pdfNetwork Topology.pdf
Network Topology.pdfshubhidas
 
Network Topology & OSI Model.pdf
Network Topology & OSI Model.pdfNetwork Topology & OSI Model.pdf
Network Topology & OSI Model.pdfshubhidas
 
SQL Operators.pdf
SQL Operators.pdfSQL Operators.pdf
SQL Operators.pdfshubhidas
 
Computer Network Advantages Vs. Disadvantages.pdf
Computer Network Advantages Vs. Disadvantages.pdfComputer Network Advantages Vs. Disadvantages.pdf
Computer Network Advantages Vs. Disadvantages.pdfshubhidas
 
Computer networks.pptx
Computer networks.pptxComputer networks.pptx
Computer networks.pptxshubhidas
 
Know about SQL.pdf
Know about SQL.pdfKnow about SQL.pdf
Know about SQL.pdfshubhidas
 
Java Full Stack.pdf
Java Full Stack.pdfJava Full Stack.pdf
Java Full Stack.pdfshubhidas
 

More from shubhidas (8)

Satelllite Networks.pdf
Satelllite Networks.pdfSatelllite Networks.pdf
Satelllite Networks.pdf
 
Network Topology.pdf
Network Topology.pdfNetwork Topology.pdf
Network Topology.pdf
 
Network Topology & OSI Model.pdf
Network Topology & OSI Model.pdfNetwork Topology & OSI Model.pdf
Network Topology & OSI Model.pdf
 
SQL Operators.pdf
SQL Operators.pdfSQL Operators.pdf
SQL Operators.pdf
 
Computer Network Advantages Vs. Disadvantages.pdf
Computer Network Advantages Vs. Disadvantages.pdfComputer Network Advantages Vs. Disadvantages.pdf
Computer Network Advantages Vs. Disadvantages.pdf
 
Computer networks.pptx
Computer networks.pptxComputer networks.pptx
Computer networks.pptx
 
Know about SQL.pdf
Know about SQL.pdfKnow about SQL.pdf
Know about SQL.pdf
 
Java Full Stack.pdf
Java Full Stack.pdfJava Full Stack.pdf
Java Full Stack.pdf
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

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.