Professional Documents
Culture Documents
Week 2 Tutorial
Week 2 Tutorial
Group: C5
Question 1
on customer.cust-no = order.cust-no
join order-line
on order.order-no = order-line.order-no
join product
on order-line.prod-no = product.prod-no
Question 2
(a) Explain the terms Data Definition Language and Data Manipulation Language. As part of
your explanation you should provide knowledge of the use of at least 3 commands for each
language using SQL notation.
Data Definition Language (DDL)
Data Definition Language (DDL) statements are used to classify the database structure or
schema. It is a type of language that allows the DBA or user to depict and name those
entities, attributes, and relationships that are required for the application along with any
associated integrity and security constraints. The commands used under the DDL are as
follows;
• CREATE - used to create objects in the database
• ALTER - used to alters the structure of the database
• DROP - used to delete objects from the database
A language that offers a set of operations to support the fundamental data manipulation
operations on the data held in the database is called Data Manipulation Language (DML).
Data Manipulation Language (DML) statements are used to manage data within schema
objects. Here are the lists of tasks that come under DML: