Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 ) This question is about implementing a 1 - to - many relationship between employees and their dependents using a Varray. To answer this
This question is about implementing a tomany relationship between employees and their dependents using a Varray. To answer this question, do the following steps:
Define an Abstract Data Type ADT called DepADT and include in it the following fields: point
Attribute Data Type
Name VARCHAR
DOB DATE
Relationship VARCHAR
Use the CREATE TYPE command to create a Varray called DependentsVA of DepADT and set the size to point
Create the Emp table and include in it the following attributes the underlined attribute refers to the primary key: point
Attribute Data Type
EmpID NUMBER
Name VARCHAR
Dependents DependentsVA
Insert, in the table Emp, the following employees and their dependents: points
Employee Details Dependents Details
EmpID
Name Andy Mirza NameRon
DOBJAN
RelationshipSon
EmpID
Name Tim Anderson NameNancy
DOBMAY
RelationshipDaughter
NameRob
DOBNOV
RelationshipSon
EmpID
Name Rob Dickson NameMary
DOBJUN
RelationshipDaughter
NameAlex
DOBOCT
RelationshipSon
EmpID
Name Mike Reagan NameAlfred
DOBMAY
RelationshipSon
NameJane
DOBDEC
RelationshipDaughter
NameTimothy
DOBMAR
RelationshipDaughter
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started