Wednesday, June 19, 2019

DATABASE SYSTEMS COURSEWORK Essay Example | Topics and Well Written Essays - 1500 words

DATABASE SYSTEMS COURSEWORK - Essay ExampleThe relationship type has_details binds the scholarly person, history and room entities. As the invoice entity has details of both the pupil and the room and also its own properties needs to be linked with all the three to depict the relation.d. The relationship put down links disciple and hall entities. As students reside in the hall in a particular room.This conceptual model depicts all the entities and their relations it gives the overall picture and understanding of the corpse to a novice. This plenty also be called a logical model as it does not take into consideration any DBMS in chief and shows the logical tie beam of the system.Next we are constructing the logical system which has the cardinality ratios. A cardinality ratio of a binary relation is the maximum number of instances an entity can put down in a given relationship type. Logical modelThe logical model is as followsThe difference here is that the entities here are associated with their relationships with the cardinality ratios respectively.The cardinality ratios are derived as follows1. Between student and staff (MN).a. 1 student is responsible to 1 staffb. Many (M) students are responsible to 1 staff.c. 1 staff takes responsibility of 1 studentd. Many (M) staff takes responsibility of many students.2. Between student and hall (N1).a. 1 student resides in 1 hall.b. Many (M) students reside in 1 hall.c. 1 hall accommodates 1 studentd. Many (M) halls do not accommodate 1 student.3. Between student, hall and invoice (111).a. 1 invoice has details of 1 student and his hall.b. 1 invoice does not affirm details of more than 1 student and their halls.c. Many invoices do not bring in details of many students and different halls.4. Between student and room (11).a. 1 student... This conceptual model depicts all the entities and their relations it gives the overall picture and understanding of the system to a novice. This can also be called a logical model as it does not take into consideration any DBMS in mind and shows the logical association of the system.Next we are constructing the logical system which has the cardinality ratios. A cardinality ratio of a binary relation is the maximum number of instances an entity can participate in a given relationship type.Special note The attribute named lease to the relationship named rent has been shifted to the rent table as the cardinality ratio is 11 so any attribute of the relationship type must be shifted on either side.The arrows show the functional dependencies. The single arrow with no point extend determines all the attributes of the entire entity. In the table Responsible_For which was previously a relationship between student and staff had a cardinality ratio of MN. The relationship type will form a separate table with the same name having the primary keys of both the aligned tables.a. Only the table Room has an attribute called Room Type which can have both single and dou ble rooms in a particular hall.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.