Lecture No # 6: Computer Science Class XI
Lecture No # 6: Computer Science Class XI
Computer Science
Class XI
Topic: Database Languages
Database Language
SQL (Structured Query Language) is a standard
language for accessing and manipulating databases.
There are three types of SQL languages for
relational databases. These are
1. Data Definition Language (DDL)
2. Data Manipulation Language (DML)
3. Data Control Language (DCL)
Data Definition Language
Data definition Language (DDL) is a computer
language for defining different data structures. DDL
statements create, modify and remove data objects
such as tables. Some important tasks of DDL are:
1. To create objects in a database model
2. To alter the structure of the database.
3. To delete objects from the database.
Data Manipulation Language
Data Manipulation Language (DML) statements
are used to manage or manipulate data. Some
examples of DML tasks are:-
1. To retrieve data from a database.
2. To insert data into a table.
3. To update existing data within a table.
4. To delete records from a table.
Data Control Language
Data Control Language (DCL) is used for
controlling the data. A user can access the data
based on the privileges given to him. Some
important tasks of DCL are:-
1. To allow specified users to perform specific
tasks.
2. To disallow specified users from performing
specified tasks.
3. To cancel previously granted or denied
persmissions.
Thank You