Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Course

Course Name Category L T P Credit


Code
RELATIONAL DATABASE
194CA1A3CA CORE 4 - - 4
MANAGEMENT SYSTEM
PREAMBLE
This course has been designed for students to learn and understand

 The functional components of the DBMS and the normalization


forms in building an effective database tables.

Queries using Relational Algebra, Relational Calculus and SQL.


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

MAPPING WITH PROGRAMME OUTCOMES

COs/POs PO1 PO2 PO3 PO4 PO5


CO1 S M S M M
CO2 S M S M M
CO3 S M S M S
CO4 S M M M M
CO5 S M S S S
S Strong M Medium L Low
RELATIONAL DATABASE MANAGEMENT
194CA1A3CA SEMESTER III
SYSTEM

Total Credits: 4
Total Instruction Hours: 48 h

Syllabus

Unit I Database Concepts and Normalization 10 h

Database Concepts: A Relational approach: Database – Relationships – DBMS –


Relational Data Model – Integrity Rules – Theoretical Relational Languages.
Database Design: Data Modeling and Normalization: Data Modeling – Dependency
– Database Design – Normal forms – Dependency Diagrams – De normalization –
Another Example of Normalization.

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.

Unit III Data Management and Retrieval 10 h

Data Management and Retrieval: DML – adding a new Row/Record – Customized


Prompts – Updating and Deleting an Existing Rows/Records – retrieving Data
from Table – Arithmetic Operations – restricting Data with WHERE clause –
Sorting – Revisiting Substitution Variables – DEFINE command – CASE structure.
Functions and Grouping: Built-in functions –Grouping Data. Multiple Tables: Joins
and Set operations: Join – Set operations.

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

Unit IV Fundamentals of PL/SQL 10 h

PL/SQL: History – Fundamentals – Block Structure – Comments – Data Types –


Other Data Types – Declaration – Assignment operation – Bind variables –
Substitution Variables – Printing – Arithmetic Operators. Control Structures and
Embedded SQL: Control Structures – Nested Blocks – SQL in PL/SQL – Data
Manipulation – Transaction Control statements. PL/SQL Cursors and Exceptions:
Cursors – Implicit & Explicit Cursors and Attributes – Cursor FOR loops –
SELECT…FOR UPDATE – WHERE CURRENT OF clause – Exceptions – Types of
Exceptions.

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.
.

Unit V PL/SQL Composite Data Types 10 h

PL/SQL Composite Data Types: Records – Tables – arrays. Named


Blocks:Procedures – Functions – Packages –Triggers.

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

1 Arun Majumdar & Pritimoy Bhattacharya, 2007, "Database Management


Systems", TMH.

2 Kevin Loney, George Koch, and the Experts at TUSC,2002, "Oracle 9i: The
Complete Reference", TMH, Copy Right.

You might also like