What is the difference between a Relation in a RDBMS and a C

What is the difference between a Relation in a RDBMS and a Class in an OODBMS? Are they interchangeable, and if so, how?

Solution

The essential distinction between these twotypes of data modeling is represented by the
encapsulation in the object of both is state and behavior with the object oriented model,
while with the relational model only the state is evidenced.

A relational database is made up of relations, who are sets of tuples, while an object-oriented database is made up of classes, which are sets of classes.

a relational database will contain a relation called STUDENT, with tuples containing information about each student,
while a relational database will contain a class called STUDENT, with object containing information about each student.

We can also convert a object model into relational model.

In such a situation each class corresponds to a relation, the attributes of a particular class will become attributes corresponding to a relation and the same time,
each object in-stance in a class will have a corresponding tuple in a relation.

While in a relational database the components of a tuple must be primitive types(strings, integer, real, etc.), in an object-oriented database the components of an object may
be complex types (sets, tuples, objects, etc.)

What is the difference between a Relation in a RDBMS and a Class in an OODBMS? Are they interchangeable, and if so, how?SolutionThe essential distinction betwee

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site