Practical Examination Assignment OF SQL Sublanguages and Functions
Practical Examination Assignment OF SQL Sublanguages and Functions
2k19/SWE/93
Index
S No Topics Page No
3 DRL 5
SQL SUBLANGUAGES
DDL
DRL
DML
DCL
TCL
Page |4
DDL
DDL (Data Definition Language): DDL or Data Definition
Language actually consists of the SQL commands that can be used
to define the database schema. It simply deals with description of
the database schema and is used to create and modify the
structure of database objects in the database.
DML
DML (Data Manipulation Language): The SQL commands that
deals with the manipulation of data present in the database belong
to DML or Data Manipulation Language and this includes most of
the SQL statements.
Examples of DML:
DRL/DSL
DRL (Data Query Language) / DSL (DATA SELECTION
LANGUAGE):
clause Description
FROM It is used for selecting a table name in a database.
WHERE It specifies which rows to retrieve.
GROUP BY It is used to arrange the data into groups.
HAVING It selects among the group defined by the GROUP BY clause.
ORDER BY It specifies an order in which to return the rows.
AS It provides an alias which can be used to temporarily
rename tables or columns.
DCL
Page |6
Examples of DCL:
TCL
TCL (Transaction Control Language): TCL commands deals with
the transaction within the database.
Examples of TCL:
THE END