DBMS Lab Manual PDF
DBMS Lab Manual PDF
DBMS Lab Manual PDF
II B. TECH II SEMESTER
Engineeringknowledge:Applytheknowledgeofmathematics,science,engineering
PO1
Fundamentals andanengineeringspecializationtothesolutionofcomplexengineeringproblems.
Problem analysis: Identify, formulate, review research literature, and analyze complex
PO2 engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
PO3
consideration for the public health and safety, and the cultural, societal, and environmental
considerations.
Conduct investigations of complex problems: Use research-based knowledge and research
PO4 methods including design of experiments, analysis and interpretation of data, and synthesis of
the information to provide valid conclusions.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
PO5 engineering and IT tools including prediction and modeling to complex engineering activities
with an understanding of the limitations.
The engineer and society: Apply reasoning informed by the contextual knowledge to assess
PO6 societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to
the professional engineering practice.
Environment and sustainability: Understand the impact of the professional engineering
PO7 Solutions in societal and environmental contexts, and demonstrate the knowledge of, and need
for sustainable development.
Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
PO8
norms of the engineering practice.
Individual and team work: Function effectively as an individual, and as a member or leader
PO9
In diverse teams, and in multi-disciplinary settings.
Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write
PO10
effective reports and design documentation, make effective presentations, and give and receive
clear instructions.
Project management and finance: Demonstrate knowledge and understanding of the
PO11 Engineering and management principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multidisciplinary environments.
Life-long learning: Recognize the need for, and have the preparation and ability to engage in
PO12
independent and life-long learning in the broadest context of technological change.
Problem Solving Skills – Graduate will be able to apply computational techniques and
PSO1
software principles to solve complex engineering problems pertaining to software engineering.
Professional Skills – Graduate will be able to think critically, communicate effectively, and
PSO2
collaborate in teams through participation in co and extra-curricular activities.
Successful Career – Graduates will possess a solid foundation in computer science and
PSO3 engineering that will enable them to grow in their profession and pursue lifelong learning
through post-graduation and professional development.
COURSEOBJECTIVES :
COURSE OUTCOMES
COURSEPREREQUISITES
CO’S, PO’SMAPPING
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 √ √ √
CO2 √ √ √
CO3 √ √ √
CO4 √ √ √ √
a) CourseDescription
b) COURSEPLAN
Division of Course
List of experiments
Experiments outcomes
WEEK1 Concept Design With E-R Model PO3,PO5
PO1,PO2,PO5
WEEK 3 Normalization
WEEK 4 Practicing DDL Commands PO3,PO4,PO5,PO6
WEEK 12 PO2,PO3,PO4,PO5
Case Study: General Hospital
WEEK 13 Case Study: Car Rental Company
c) ADDITIONALEXPERIMENTS
d) MarksDistribution
e) EvaluationScheme
Relational Model
WEEK 2
WEEK 3 Normalization
Procedures
WEEK 9
Usage of Cursors
WEEK 10
INTRODUCTION
Database Management System
This model is like a hierarchical tree structure, used to construct a hierarchy of records in
the form of nodes and branches. The data elements present in the structure have Parent-Child
relationship. Closely related information in the parent-child structure is stored together as a
logical unit. A parent unit may have many child units, but a child is restricted to have only one
parent.
The drawbacks of this model are:
The hierarchical structure is not flexible to represent all the relationship proportions, which occur in
the real world.
It cannot demonstrate the overall data model for the enterprise because of the non-availability of
actual data at the time of designing the data model.
It cannot represent the Many-to-Many relationship.
Network Model
It supports the One-To-One and One-To-Many types only. The basic objects in this model are
Data Items, Data Aggregates, Records and Sets.
It is an improvement on the Hierarchical Model. Here multiple parent-child relationships are
used. Rapid and easy access to data is possible in this model due to multiple access paths to the
data elements.
Relational Model
Does not maintain physical connection between relations Data is organized
Features of an RDBMS
The ability to create multiple relations and enter data into them An
attractive query language
Retrieval of information stored in more than one table
An RDBMS product has to satisfy at least Seven of the 12 rules of Codd to be
accepted as a full- fledged RDBMS.
the Relational Database Model in 1970. The Relational model allows data to be represented in a
simple row- column. Each data field is considered as a column and each record is considered as a row.
Relational Database is more or less similar to Database Management System. In relational model
there is relation between their data elements. Data is stored in tables. Tables have columns, rows and
names. Tables can be related to each other if each has a column with a common type of information.
The most famous RDBMS packages are Oracle, Sybase and Informix.
1 Rahul Satelite
2 Sachin Ambawadi
3 Saurav Naranpura
Student Marksheet Table
Rollno Sub1 Sub2 Sub3
1 78 89 94
2 54 65 77
3 23 78 46
Here, both tables are based on students details. Common field in both tables is Rollno. So we can say
both tables are related with each other through Rollno column.
Degree of Relationship
One to One (1:1)
One to Many or Many to One (1:M / M: 1)
Many to Many (M: M)
The Degree of Relationship indicates the link between two entities for a specified occurrence of
each.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
designed in such a way that when the database is ready for use it encapsulates the relational theory to
E. F. Codd Rules
1. The Information Rule
All information must be store in table as data values.
2. The Rule of Guaranteed Access
Every item in a table must be logically addressable with the help of a table name.
The RDBMS must be taken care of null values to represent missing or inapplicable
information.
4. The Database Description Rule
A description of database is maintained using the same logical structures with which data
was defined by the RDBMS.
5. Comprehensive Data Sub Language
According to the rule the system must support data definition, view definition, data
manipulation, integrity constraints, authorization and transaction management
operations.
6. The View Updating Rule
All views that are theoretically updateable are also updateable by the system.
reused is the fundamental of the OOP’s concept. So we can say Oracle8 is supported Object
Relational model, Object – oriented model both. Oracle products are based on a concept known as a
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
client-server technology. This concept involves segregating the processing of an application between
two systems. One performs all activities related to the database (server) and the other performs
activities that help the user to interact with the application (client). A client or front-end database
application also interacts with the database by requesting and receiving information from database
server. It acts as an interface between the user and the database.
The database server or back end is used to manage the database tables and also respond to client
requests.
Introduction to ORACLE
ORACLE is a powerful RDBMS product that provides efficient and effective solutions for major
database features. This includes:
Large databases and space management control
Many concurrent database users
High transaction processing performance
High availability
Controlled availability
Industry accepted standards
Manageable security
Client/Server environment
Portability
Compatibility
Connectivity
An ORACLE database system can easily take advantage of distributed processing by using its
Client/ Server architecture. In this architecture, the database system is divided into two parts:
A front-end or a client portion
The client executes the database application that accesses database information and interacts with
the user.
A back-end or a server portion
The server executes the ORACLE software and handles the functions required for concurrent,
ROADWAY TRAVELS
“Roadway Travels” is in business since 1977 with several buses connecting differentplaces in
India. Its main office is located in Hyderabad.
The company wants to computerize its operations in the following areas:
Reservations
Ticketing
Cancellations
Reservations :
Reservations are directly handeled by booking office.reservations can be made 60 days in
advance in either cash or credit. In case the ticket is not available,a wait listed ticket is issued to the
AIM: Analyze the problem and come with the entities in it. Identify what Data has to be
persisted in the databases.
Bus
Reservation (Entity)
Contact No
Bus No
No-of-Seats
Journey date
Address
PNR NO
Reservation
Ticket :(Entity)
Dep- Time
Source
Age
Sex
Journey date
Destination
Ticket No
Bus No
Ticket
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
Passenger:
Contact NO
Age
Sex
PNR NO
Name
Ticket No
Passenger
Cancellation (Entity)
Seat No
Journey date
Contact No
PNR NO
Cancellation
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
WEEK-1
CREATION OF TABLES
Name Type
Empno Number
Ename Varchar2(10)
Job Varchar2(10)
Mgr Number
Sal Number
SOLUTION:
SQL> create table employee(empnonumber,ename varchar2(10),job
varchar2(10),mgrnumber,sal number);
Table created.
SQL> desc employee;
Name Null? Type
--------------------------- -------- ----------------
------------
EMPNO
NUMBER
ENAME VARCHAR2(10)
JOB VARCHAR2(10)
MGR NUMBER
SAL NUMBER
EMPNO NUMBER
ENAME VARCHAR2(10)
JOB VARCHAR2(10)
MGR NUMBER
SAL NUMBER
COMMISSION NUMBER
Enter value for mgr: 1234 Enter value for sal: 10000 Enter value for commission:70
old 1: insert into employee values(&empno,'&ename','&job',&mgr,&sal,'&commission') new
1: insert into employee values(101,'abhi','manager',1234,10000,'70')
1 row created.
SQL> /
Enter value for empno: 102 Enter value for ename: rohith Enter value for job: analyst Enter
value for mgr: 2345 Enter value for sal: 9000
Enter value for commission: 65
old 1: insert into employee values(&empno,'&ename','&job',&mgr,&sal,'&commission') new
1: insert into employee values(102,'rohith','analyst',2345,9000,'65')
1 row created.
SQL> /Enter value for empno: 103 Enter value for ename: david Enter value for job: analyst
Enter value for mgr: 3456 Enter value for sal: 9000
Enter value for commission: 65
old 1: insert into employee values(&empno,'&ename','&job',&mgr,&sal,'&commission') new
1: insert into employee values(103,'david','analyst',3456,9000,'65')
1 row created.
SQL> /Enter value for empno: 104 Enter value for ename: rahul Enter value for job: clerk
Enter value for mgr: 4567 Enter value for sal: 7000
Enter value for commission: 55
old 1: insert into employee values(&empno,'&ename','&job',&mgr,&sal,'&commission') new
1: insert into employee values(104,'rahul','clerk',4567,7000,'55')
1 row created.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
SQL> / Enter value for empno: 105 Enter value for ename: pramod Enter value for job:
salesman Enter value for mgr: 5678 Enter value for sal:5000
Enter value for commission: 50
old 1: insert into employee values(&empno,'&ename','&job',&mgr,&sal,'&commission') new
1: insert into employee values(105,'pramod','salesman',5678,5000,'50')
1 row created.
Name Type
Deptno Number
Deptname Varchar2(10)
Location Varchar2(10)
SOLUTION:
SQL> create table department(deptnonumber,deptname
varchar2(10),locationvarchar2(10)); Table created.
1 row created.
SQL> /
1 row created.
SQL> /
Enter value for deptno: 11 Enter value for deptname:sales
Enter value for location: banglore Enter value for designation: salesman
old 1: insert into department values(&deptno,'&deptname','&location','&designation') new
1: insert into department values(11,'sales','banglore','salesman')
1 row created.
SQL> /
Enter value for deptno: 12
Enter value for deptname: operations Enter value for location: mumbai Enter value for
designation: operator
old 1: insert into department values(&deptno,'&deptname','&location','&designation') new
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
DEPTNO DEPTNAME
---------- ----------
9 accounting
12 operations
10 research
11 sales
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
WEEK -2
QUERIES USING DDL AND DML
SOLUTION:
--Provide roles
--Assigning privileges
b) Insert the any three records in the employee table and use rollback. Check the
result.
c) Add primary key constraint and not null constraint to the employeetable.
SQL> alter table employee modify(empno number primary key, ename
varchar2(10) not null); Table altered.
SQL> desc employee;
Name Null? Type
----------------------------------
------------------
- EMPNO NOTNULL
NUMBER
ENAME NOT NULL
VARCHAR2(10) JOB
VARCHAR2(10)
MANAGER_NO NUMBER
SALNUMBER
COMMISSION NUMBER
SOLUTION:
create a user and grant all permissions to theuser.
--Provide roles
--Assigning privileges
6 rows selected.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
AIM :-
Queriesusingaggregatefunctions(COUNT,AVG,MIN,MAX,SU
M),Group by,Orderby,Having.
number,salary
number); Table created.
SQL> desc emp;
WEEK – 4
PROGRAMS ON PL/SQL
Declareanumber;
bnumber;
cnumber;
begin
a:=&a;
b:=&b;
c:=&c;
if (a>b and a>c) then
dbms_output.put_line('a is
maximum ' || a); elsif (b>a and b>c)
then
dbms_output.put_line('b is maximum ' || b);
else
Declarea number(3);
b number(3);
begin
a:=&a;
b:=&b;
dbms_output.put_line(„Beforeswappinga=„||a
||‟andb=„||b); a:=a+b;
b:=a-b;
a:=a-b;
dbms_output.put_line(„Afterswappinga=„||a
||‟andb=„||b); end;
/
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
declarejava number(10);
dbmsnumber(10);
co number(10);
mfcsnumber(10);
total number(1);
avgsnumber(10);
per number(10);
declaren number(5):=&n;
s number:=0;
rnumber(2):=0;
begin
while n !=0 loop r:=mod(n,10);
s:=s+r; n:=trunc(n/10);
end loop;
dbms_output.put_line('sum of digits of given number is '||s);
end;
/
Declarenum1 number(5);
num2 number(5);
rev number(5);
begin num1:=&num1;
rev:=0;
whilenum1>0 loop
num2:=num1 mod 10;
rev:=num2+(rev num1:=floor(num1/10);
end loop;
dbms_output.put_line('Reverse number is: '||rev); end;
/
3b) Write a PL / SQL program to check whether the given number is prime or not.
Declarenum number;
inumber:=1;
c number:=0;
begin
num:=#
for i in 1..num loop
if((mod(num,i))=0) then
c:=c+1;
end if;
end loop;
if(c>2) then
dbms_output.put_line(num||' not a prime');
else
dbms_output.put_line(num||' is prime');
end if;
end;
/
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
WEEK -5
PROCEDURESANDFUNCTIONS
1) calculate the net salary and year salary if da is 30% of basic, hra is 10% of
basic and pf is 7% if basic salary is less than 8000, pf is 10% if basic sal
between 8000 to160000.
declare
e name varchar2(15);
basic number;
d a number; h r a number;
pf number;
net salary number;
year salary number;
begin
e name:='&e name';
basic:=&basic;
da:=basic * (30/100);
hra:=basic * (10/100);
if (basic < 8000) then
pf:=basic * (8/100);
elsif (basic >= 8000 and basic <= 16000) then
pf:=basic * (10/100);
end if;
netsalary:=basic + da + hra - pf; yearsalary := netsalary*12;
------------------
l_input=31/01/1978 l_output=30
------------------
l_input=30 l_output=3
------------------
Lucky=3
WEEK-6
TRIGGERS
1. Create a row level trigger for the customers table that would fire for
INSERT or UPDATE or DELETE operations performed on the
CUSTOMERS table. This trigger will display the salary difference between
the old values and new values:
CUSTOMERS table:
Here following two points are important and should be noted carefully:
OLD and NEW references are not available for table level triggers, rather you can use
them for record leveltriggers.
If you want to query the table in the same trigger, then you should use the AFTER
keyword, because triggers can query the table or change it again only after the initial
changes are applied and the table is back in a consistent state.
Above trigger has been written in such a way that it will fire before any DELETE or
INSERT or UPDATE operation on the table, but you can write your trigger on a single or
multiple operations, for example BEFORE DELETE, which will fire whenever a record
will be deleted using DELETE operation on the table.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
Let us perform some DML operations on the CUSTOMERS table. Here is one INSERT
statement, which will create a new record in the table:
INSERT INTO CUSTOMERS (ID,NAME,AGE,ADDRESS,SALARY) VALUES (7,
'Kriti', 22, 'HP', 7500.00 );
Old salary:
New salary: 7500 Salary difference:
Table created.
Trigger created.
SQL> insert into Employee(ID, First_Name, Last_Name, Start_Date, End_Date, Salary, City,
Description)
2 values('01','Jason', 'Martin', to_date('19960725','YYYYMMDD'),
to_date('20060725','YYYYMMDD'), 1234.56, 'Toronto', 'Programmer')
3/
1 row created.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
SQL> insert into Employee(ID, First_Name, Last_Name, Start_Date, End_Date, Salary, City,
Description)
2 values('02','Alison', 'Mathews', to_date('19760321','YYYYMMDD'),
to_date('19860221','YYYYMMDD'), 6661.78, 'Vancouver','Tester')
3/
1 row created.
SQL> insert into Employee(ID, First_Name, Last_Name, Start_Date, End_Date, Salary, City,
Description)
2 values('03','James', 'Smith', to_date('19781212','YYYYMMDD'),
to_date('19900315','YYYYMMDD'), 6544.78, 'Vancouver','Tester')
3/
1 row created.
SQL> insert into Employee(ID, First_Name, Last_Name, Start_Date, End_Date, Salary, City,
Description)
2 values('04','Celia', 'Rice', to_date('19821024','YYYYMMDD'),
to_date('19990421','YYYYMMDD'), 2344.78,'Vancouver','Manager')
3/
1 row created.
1 row created.
SQL> select
* from
Employee 2
/
ID FIRST_NAME LAST_NAMESTART_DATEND_DATE SALARYCITY
DESCRIPTION
--------------------------------------------------------------------------------------------------------------------
------
01 JASON Martin 25-JUL-96 25-JUL-06 1234.56 Toronto
Programme
r
02 ALISON Mathews 21-MAR-76 21-FEB-86 6661.78 Vancouver Tester
03 JAMES Smith 12-DEC-78 15-MAR-90 Vancouver Tester
6544.78
04 CELIA Rice 24-OCT-82 21-APR-99 2344.78 Vancouver Manager
05 ROBER Black 15-JAN-84 08-AUG-98 2334.78 Vancouver Tester
T
06 LINDA Green 30-JUL-87 04-JAN-96 4322.78 New YorkTester
07 DAVID Larry 31-DEC-90 12-FEB-98 7897.78 New York Manager
08 JAMES Cat 17-SEP-96 15-APR-02 1232.78 Vancouver Tester
8 rows selected.
Table dropped.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
3) Trigger before deleting a record from emp table. Trigger will insert the
row to be deleted into another table and also record the user who has
deleted therecord.
Trigger created.
8 rows selected.
SQL>drop tableemployee_audit;
Table dropped.
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
WEEK-7
PROCEDURES
1) Create a procedure to reverse astring.
dbms_output.put
_line(reverse); END;
/
WEEK-8
CURSORS
DEFINITION OF A CURSOR
CURSOR EXAMPLE:
Declarecursor xx is select empno,ename,sal from emp26;
a_empno emp26.empno%type;
a_ename emp26.ename%type;
a_sal emp26.sal%type;
begin
open xx;
loop
fetch xx into a_empno,a_ename,a_sal;
exit when xx% not found;
dbms_output.put_line(a_empno||' '||a_ename||' '||a_sal);
end loop;
close xx;
end;
SQL> /
KG REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to JNTUH, Hyderabad)
Chilkur (Village), Moinabad (Mandal), R. R Dist, TS-501504
WEEK-9
WEEK -10
CASE STUDY: GENERAL HOSPITAL
WEEK -11
CASE STUDY: CAR RENTAL COMPANY
WEEK-12
CASE STUDY: STUDENT PROGRESS MONITORING SYSTEM
1. What isDBMS?
It is a collection of programs that enables user to create and maintain a database. In other
words it is general-purpose software that provides the users with the processes of
defining, constructing and manipulating the database for various applications.
2. What is a Databasesystem?
The database and DBMS software together is called as Database system.
3. Advantages ofDBMS?
Redundancy iscontrolled.
Unauthorized access isrestricted.
Providing multiple userinterfaces.
Enforcing integrityconstraints.
Providing backup andrecovery.
8. What is DataIndependence?
Data independence means that “The application is independent of the storage structure
and access strategy of data”. In other words, the ability to modify the schema definition in
one level should not affect the schema definition in the next higher level.
Two types of Data Independence:
Physical Data Independence: Modification in physical level should not affect the
logical level.
Logical Data Independence: Modification in logical level should affect the view level.
33. Are the resulting relations of PRODUCT and JOIN operation the same?
No.
PRODUCT: Concatenation of every row in one relation with every row in another.
JOIN: Concatenation of rows from one relation and related rows from another.
36. Define super key and give example to illustrate the superkey?
Set of one or more attributes taken collectively, allowing to identify uniquely an entity in
the entity set.Eg1. {SSN} and {SSN, Cust_name} of customer table are super keys.Eg2.
{Branch name}and
{Branch name, Branch city} of Branch table re super keys.
37. Define candidate key and give example to illustrate the candidatekey?
Super keys with no proper subset are called the candidate keys. Otherwise it is called
minimal super key. Candidate key is nothing but the primary key used in SQL. Eg1.
{SSN} is the candidate keyfor the super keys {SSN} and {SSN, Cust_name} of customer
table.Eg2. {Branch name} is the candidate key for the super keys {Branch name} and
{Branch name, Branch city} of Branch table.
49.What is dependencypreservation?
Dependency Preservation Property enables us to enforce a constraint on the original
relation from corresponding instances in the smaller relations.