You are on page 1of 4

Assignment No # 1

Q.1 What is the difference between object and a class in the object oriented data model?
Object :
An object is abstraction of real world entity .An object represents only one occurrence
of entity .
Class :
A class is collection of similar objects with similar shared attributes and methods.

Q.2. Describe the basic features of object oriented data model and Object relational data
model. Give at least two examples of both the types.
Object Oriented Data Model :
Object-oriented database management systems (OODBMSs) combine database
capabilities with object-oriented programming language capabilities.
Because the database is integrated with the programming language, the
programmer can maintain consistency within one environment
A core object-oriented data model consists of the following basic object-oriented
concepts:
o Object and object identifier
o Attributes and methods
o Class :
o Class hierarchy and inheritance

Object Relational Model :
o An object-relational database (ORD) is a database management system
(DBMS) similar to a relational database, but with an object-oriented
database model: objects, classes and inheritance are directly supported
in database schemas and in the query language
o it supports extension of the data model with custom data-types and
methods.


o The characteristic properties of ORDBMS are
1. complex data
2. type inheritance
3. object behavior


Q.3 What is ERDM? And what role does it play in modern database Environment?
An entity-relationship model (ERM) is a theoretical and conceptual way of showing data
relationships in software development. ERM is a database modeling technique that generates
an abstract diagram or visual representation of a systems data that can be helpful in designing
a relational database. These diagrams are known as entity-relationship diagrams, ER diagrams
or ERDs.
Role of ERDM :
Generate database from ERD
Automatically create and update database tables that follows the latest database
design depicted in ERD. Database generation, the superior time-saving feature
enables instant production of database initialization scripts for immediate
database construction. It also helps patch database from ERD by analyzing the
existing database and producing the update scripts required, which is both time-
saving and secured.
Reverse engineer ERD from database
Working with legacy database becomes even more challenging when the
documentation has been lost in time. Make it available again by reverse-engineering
the ERDs. Visually study the table structures and their relationships..







Q.4. Use the scenario described by A customer can make many payments, but each payment
is made by only one customer as the basis for an entity relationship diagram (ERD)
representation.


Q.5 Create a Cows Foot ERD to include the following business rules for the company.
a) Each sales representative writes many invoices.
b) Each invoice is written by one sales representative.
c) Each sales representative is assigned to one department.
d) Each department has many sales representatives.
e) Each invoice is generated by one customer.


Q.6 Make necessary tables for storing information about school database.

You might also like