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

Web app development_my_sql_08
Web app development_my_sql_08Web app development_my_sql_08
Web app development_my_sql_08
Hassen Poreya
 
introductiontosql-161216154706.pdf
introductiontosql-161216154706.pdfintroductiontosql-161216154706.pdf
introductiontosql-161216154706.pdf
ssusere4c6aa
 

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

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

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
SaadHumayun7
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 

Recently uploaded (20)

Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Behavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdfBehavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdf
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 

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.