Information Technology Reference
In-Depth Information
Step 6—Draw EER model.
As a result of the previous steps, an EER model can be drawn, as shown in
Fig. 3.24 .
The following steps map the derived EER model into a relational schema:
Step 1—Map entities into relations.
Each entity can be translated into a relation as shown below:
5HODWLRQ'HSDUWPHQW 'HSDUWPHQW 'HSDUWPHQWBQDPH
5HODWLRQ,QVWUXFWRU 'HSDUWPHQW,QVWUXFWRUBQDPH ,QVWUXFWRUBDGGUHVV
5HODWLRQ&RXUVH &RXUVH &RXUVHBORFDWLRQ
5HODWLRQ3UHUHTXLVLWH 3UHUHTXLVLWH 3UHUHTXLVLWHBWLWOH&RXUVH
5HODWLRQ6WXGHQW 6WXGHQW 6WXGHQWBQDPH
Step 2—Map m:n relationships into relationship relation.
In this example, the relation Section is derived as follows:
5HODWLRQ6HFWLRQ 'HSDUWPHQW &RXUVH ,QVWUXFWRUBQDPH 6HFWLRQ
Step 3—Map aggregation into relation.
As relationship relation Section is related to entity Student in an m:n relation-
ship, there is an aggregation relation as follows:
5HODWLRQ*UDGH 'HSDUWPHQW ,QVWUXFWRUBQDPH &RXUVH 6WXGHQW
*UDGH
As a result of the previous steps, the derived relations can be merged as follows:
5HODWLRQ'HSDUWPHQW 'HSDUWPHQW 'HSDUWPHQWBQDPH
5HODWLRQ,QVWUXFWRU 'HSDUWPHQW,QVWUXFWRUBQDPH ,QVWUXFWRUBDGGUHVV
5HODWLRQ&RXUVH &RXUVH &RXUVHBORFDWLRQ
5HODWLRQ3UHUHTXLVLWH 3UHUHTXLVLWH 3UHUHTXLVLWHBWLWOH&RXUVH
5HODWLRQ6WXGHQW 6WXGHQW 6WXGHQWBQDPH
5HODWLRQ6HFWLRQ 'HSDUWPHQW &RXUVH ,QVWUXFWRUBQDPH 6HFWLRQ
5HODWLRQ*UDGH 'HSDUWPHQW ,QVWUXFWRUBQDPH &RXUVH 6WXGHQW
*UDGH
3.4
Indirectly Translating a Hierarchical Model
into a Relational Model
Since the hierarchical model can be taken as subset of the network model, the proce-
dure for translating a hierarchical schema into relational is similar to the procedure
of translating network schema into relational except for the following steps:
Search WWH ::




Custom Search