Practical Workbook
CS-222/CS-306
Database Management Systems
Department of Computer & Information Systems Engineering
NED University of Engineering & Technology
Name : _____________________________
Year : _____________________________
Batch : _____________________________
Roll No : _____________________________
Department: _____________________________
Practical Workbook
CS-222/CS-306
Database Management Systems
Revised by:
Muhammed Ali Akhtar
Revised in:
February 2019
Department of Computer & Information Systems Engineering
NED University of Engineering & Technology
INTRODUCTION
The course Database Management Systems (CS-306), taught in T.E. (Computer and Information
Systems Engineering), intends to teach the basic concepts as well as advanced techniques in the
management of databases of an organization.
The creation and manipulation of database objects requires programming in Structured Query
Language (SQL). SQL is a nonprocedural language with capabilities of creating and
manipulating data in tables and views. SQL is referred to as a query language because it has wide
range of facilities to retrieve data from a database.
The Course Profile lays down the following Course Learning Outcome:
“Explore database development and administration problems (C3, PLO-2)”
All lab sessions of this workbook have been designed to assist the achievement of the above
CLO. A rubric to evaluate student performance has been provided at the end of the workbook.
This workbook comprehensively covers programming in SQL as well as PL/SQL. This fourth
edition covers more features of SQL programming including joining operations and compound
queries. The examples and command variations has been increased. A new lab session covering
the generation of readable output using SQL*Plus tool of Oracle has been added. More exercises
have been included to give students the chance to improve their skills in SQL programming.
First two lab session gives you overview for a modern tool SQL developer that will make ease
for you to quickly design and edit your database in one go. Further eight lab sessions cover SQL
programming focusing on relational database concepts, retrieval operations, Data Manipulation
Language, Data Definition Language & Data Control Language. Remaining portion covers
PL/SQL programming focusing data types, operators, block structures, control structures &
handling exceptions. Last two labs covers advanced programming concepts such as database
triggers and stored procedures/functions.
* * * * *
CONTENTS
Lab Session No. Object Page No.
1 Explore Oracle SQL Developer Tool 1
2 Apply basic SQL operations in SQL Developer 6
3 Apply Data Retrieval Operations of SQL and SQL*Plus 15
4 Apply data retrieval operations in SQL using join operations 25
5 Apply single-row and multiple-row functions in SQL 29
6 Apply subqueries and compound queries in SQL 40
7 Explore Reports feature of Oracle SQL Developer 46
8 Apply Data manipulation operations in SQL 73
9 Explore how to create and manage tables and views 78
10 Apply sequences, indexes and synonyms 90
11 Explore PL/SQL Programming with executable statements 94
12 Use control structures and handling exceptions in PL/SQL 107
13 Explore Triggers in Database 117
14
Explore stored procedures and stored functions in Database 125
Top Related