Course Description:: M21DE0108 Rdbms Lab L T P C Duration:14 Wks 0 0 2 2
Course Description:: M21DE0108 Rdbms Lab L T P C Duration:14 Wks 0 0 2 2
RDBMS LAB
Duration:14 Wks 0 0 2 2
Course Description:
The course, Relational Database Management System, provides an introduction to the management of
database systems. The course emphasizes the understanding of the fundamentals of relational systems
including data models, database architectures, and database manipulations. The course also provides
an understanding of new developments and trends such as Internet database environment and data
warehousing. The course uses a problem-based approach to learning.
Prerequisites:
Course Outcomes:
On completion of this course the student will be able to:
1. Understanding basic concepts of Database Systems and relate the knowledge of mathematical
operations in databases.
2. Analyse and design the decomposed relational schema by using dependency algorithms.
3. Understanding the various features of Oracle 9i software tool and programming the various
database languages.
4. Applying the knowledge of databases languages to find the solutions for real world database
related applications.
LabExperiments
LISTING – I : Creation of tables:
Table Name: Client_master :
Description: Use to store information about clients.
Column Name Data Size Attributes
Type
Client_no Varchar2 6 Primary Key / First letter must start with ‘C'.
Name Varchar2 20 Not Null
Address1 Varchar2 30
Address2 Varchar2 30
City Varchar2 15
State Varchar2 15
Pincode Numeric 6
Bal_due Numeric 10,2
6. Dataforchallan_headertable:
Challan_no Sorderno Challandate Billed
CH9001 O19001 12-DEC-95 Y
CH6865 O46865 12-NOV-95 Y
CH3965 O10008 12-OCT-95 Y
1. Write a PL/SQL to update the rate field by 20% more than the current rate in inventory table which
has the following fields: Prono, ProName and Rate. After updating the table a new field (Alter) called
for Number of item and place for values for the new field without using PL/SQL block.
2. Write a PL/SQL to split the student table into two tables based on result (One table for ―Pass‖ and
another for ―Fail‖). Use cursor for handling records of student table. Assume necessary fields and
create a student details table.
LISTING – IX : PL/SQL
1. Create a database trigger to implement on master and transaction tables which are based on
inventory management system for checking data validity. Assume the necessary fields for both tables.
2. Write a PL/SQL to raise the following Exception in Bank Account Management table when deposit
amount is zero.