Sei sulla pagina 1di 12

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
Name : K. Chandra Sekhar
Designation : Associate Lecturer
Branch : DCCP
Institute : Central Institute of
Commerce, Tarnaka, Hyd.
Year/Semester : V Semester
Subject : Relational Database
Management System
Subject Code : CCP-505
Topic : Know the Components of
SQL
Duration : 50 Minutes
Sub-Topic : List the Commands of each
Component of SQL
Teaching Aids : PPT, Animation.
CCP505.29 1
Objectives

On Completion of this period, you would


be able to know :

• What are the components of SQL


• Different commands in each component

CCP505.29 2
Structure

 Components of SQL
 Commands of DDL
 Commands of DML
 Commands of DCL

CCP505.29 3
Recap
Components of SQL

DDL

SQL

DML DCL

CCP505.29 4
Recap
Components of SQL

Data Definition Language (DDL)

Data Manipulation Language (DML)

Data Controlling Language (DCL)

CCP505.29 5
DDL

DDL commands are


CREATE RENAME

REVOKE
ALTER

DROP TRUNCATE

CCP505.29 6
DML

DML commands are


UPDATE
INSERT

LOCK
DELETE TABLE

EXPLAIN
SELECT
PLAN

CCP505.29 7
DCL

DCL commands are

COMMIT ROLLBACK

SAVEPOINT

CCP505.29 8
Summary :
Data Definition Language commands are
CREATE, ALTER, DROP, RENAME

Data Manipulation Language commands are


DELETE,INSERT, SELECT, UPDATE

Data Controlling Language commands are


COMMIT, ROLLBACK, SAVEPOINT

CCP505.29 9
Quiz
1. ROLLBACK is a Command of
a) DCL
b) DDL
c) DML
d) DCE
2. INSERT is a DCL Command
a) True
b) False

CCP505.29 10
Quiz
 ALTER is the DDL Command

a) True
b) False

 REVOKE is DML Command

a) True
b) False

CCP505.29 11
Frequently asked questions

1. List the commands of DML?


2. List the commands of DDL?
3. List the commands of DCL?

CCP505.29 12

Potrebbero piacerti anche