You are on page 1of 1

ADBMS Assignment 1

Object Relational Databases

Assignment questions to be implemented in Oracle 9i

1.
Create an object – relational structure with the following entities of a
company.

Employee (e_id number, Name (complex contains Fname and Lname), DOB
date)
Manager (subtype of employee. Also has additional attributes mgr_dept
varchar, mgrdept_id)
SoftwareEngg(subtype of employee. Also has additional attributes emp_dept
varchar, empdept_id)

2.
Enter data in all these tables. If I enter data in the subtables; does it also
add to the parent in 9i?
Does “delete from only employee;” work in oracle 9i?

3.
Try implementing multiple inheritance in Oracle 9i by creating a subtype of
Manager and Software Engg as “Tech Lead”. Does it work in Oracle 9i?

4.
when you create the parent table employee; add NOT INSTANTIABLE along
with NOT FINAL after type declaration. What difference will that cause in the
implementation?

5.
Add a method to the entity employee to calculate the age of an employee.

Prepared by: Nirali Nanavati

You might also like