Professional Documents
Culture Documents
Relational Database Management System
Relational Database Management System
The Development of application programs using PL/SQL.
COURSE OUTCOMES
On the successful completion of the course, students will be able to
CO Knowledg
CO Statement
Number e Level
Understand the basic concepts of database concepts,
CO1 database design and data modeling and K1
normalization.
CO2 Obtain knowledge on database environment. K2
CO3 Know the DML commands. K2
CO4 Learn the concepts of PL/SQL. K3
CO5 Analyze the various composite data types. K4
Total Credits: 4
Total Instruction Hours: 48 h
Syllabus
List of Programs:
1. Database Design
2. Dataflow Diagram
3. Draw E-R diagram and convert entities and relationships to relation table for a
given scenario. a. Two assignments shall be carried out i.e. consider two different
scenarios (eg. bank, college)
Unit II Oracle9i 8h
Oracle9i: Oracle9i an introduction – SQL. Oracle Tables: DDL: Naming Rules and
conventions – Data Types – Constraints – Creating Oracle Table – Displaying Table
Information – Altering an Existing Table – Dropping, Renaming, Truncating Table
– Table Types – Spooling – Error codes.
List of Programs:
1. Creating Tables and writing simple queries using
a) Comparison Operators
b) Logical Operators
c) Set Operators
d) Sorting and Grouping
2. Creation of Reports using Column format
3. Writing Queries using built infunctions.
4. Updating and altering tables using SQL.
List of Programs:
1. Perform the following:
a. Viewing all databases, Creating a Database, Viewing all Tables in a Database,
Creating Tables (With and Without Constraints), Inserting/Updating/Deleting
Records in a Table, Saving (Commit) and Undoing (rollback)
2. Perform the following:
a. Altering a Table, Dropping/Truncating/Renaming Tables, Backing up /
Restoring a Database.
3. For a given set of relation schemes, create tables and perform the following
Simple Queries, Simple Queries with Aggregate functions, Queries with Aggregate
functions (group by and having clause), Queries involving- Date Functions, String
Functions, Math Functions
Join Queries- Inner Join, Outer Join Subqueries- With IN clause, With EXISTS
clause
5. For a given set of relation tables perform the following
a. Creating Views (with and without check option), Dropping views, Selecting from
a view
List of Programs:
1. "Using Cursor FOR Loops"
2. "Passing Parameters to a Cursor FOR Loop"
3. Batch Transaction Processing"
4. Write a Pl/SQL program using FOR loop to insert ten rows into a database table.
5. Given the table EMPLOYEE (EmpNo, Name, Salary, Designation, DeptID) write
a cursor to
6. select the five highest paid employees from the table.
.
List of Programs:
1. Creation of Students Information table and write PL/SQL Block find the Total,
Average marks and Results.
2. Design a PL/SQL block to prepare the Electricity Bill.
3. Programming with Cursors: Code a PL/SQL Block to partition the students
Information Table into two, one with the Passed and other with Failed.
4. Create a Database Trigger to check the data validity of Record.
5. Recursive Functions Write a Recursive function to find
a) Factorial of N
b) Fibonacci Series with N terms.
6. Implement the concept of Packages using Procedure and Function.
7. Design a PL/SQL program to handle User defined exception.
Text Books
1 Nilesh Shah, 2011, "Database Systems Using ORACLE", 2nd Edition. PHI.
References
2 Kevin Loney, George Koch, and the Experts at TUSC,2002, "Oracle 9i: The
Complete Reference", TMH, Copy Right.