Assignment # 1: Data Warehousing & Data Mining
Assignment # 1: Data Warehousing & Data Mining
Assignment # 1: Data Warehousing & Data Mining
ASSIGNMENT # 1
Data Warehousing & Data Mining
SECTION – S
SUBMITTED BY:
Sabeel Butt
BSSE02161053
SUBMITTED TO:
Dr Faiza Iqbal
1 Oct 2018
Question No 1
Explain the followings with example.
According to the ANSI standard every SQL language has some classified set of statements, irrespective of the
database tool like SQL server, Oracle or my SQL. These statements are classified into different types of
languages. Following are defined the database languages.
1. DML
It Stands for Data Manipulation Language.
Data is manipulated or modified in this language. DML statements affect records in a table. It has two types
Procedural DML and Non-Procedural DML.
Example:
Insert – It used to insert data for one or more rows in a Table.
E.g. inserting grades of Student in online result
2. DCL
It stands for Data Control Language.
It controls whether the access of data stored in database will be provided to the user or not. A Database
Administrator (DBA) has control rights over the data. DCL statements are used to provide data security.
Example:
Grant – It is used to grant access rights to other user.
E.g. if a user is granted just to select Table he cannot delete or modify data, he can only select data.
These two commands of DCL control the level of access that is given to the user.
1 Oct 2018
3. DDL
It Stands for Data Definition Language.
It defines the database schema. The data is stored in the form of relational tables in databases so the DDL
statements are used to create, alter and drop the existing database objects. Objects are the table, views, store
procedure and functions.
Example:
Basic DDL commands
Create – It is used to create Table, View, Procedure, Function and other database objects.
E.g. a Table of employee payroll is created.
__________