Create a Database based on a case study scenario on a language summer school.

Authors Avatar

Umar Jamil cs03uuj (0309811)               Database System Design Application        28/04/2007

The aim of this assignment was to create a Database based on a case study scenario on a language summer school.  A successful database system had to be implemented holding key information and then querying the database using at least 6 queries.

User requirements:

  • The summer school employs 20 members of staff. The staffs are allocated different jobs including managerial roles. Hall managers & office managers are assigned.

  • The student records are kept and detained even when they are placed on a waiting list, so that they can be recognised when wanted.

  • The Renting period can be between 1-12 weeks. The students can pay on a weekly basis. The minimum agreement is 1 week & the maximum being 12 weeks.

  • The manager needs to know the duration of the lease (i.e. weeks), the accommodation details and the student details

  • At the start of each week each student is sent an invoice for the following rental period.

Identify Entities and their Attributes

Entities & their role

Below are the entities listed and their main roles. This helps the users to understand what part each entity plays in the system.

The E-R Model and the Assumptions

 

                                 1..1              1..1

This relationship shows that a student can have just one place on the waiting list and that the waiting list can hold 1 specific student.

        

                                 1..1               0..*

The assumption here is that a student can hold one lease agreement and a no lease Agreements can still have many students in the system.

        

                                 0..*              1..1

The Assumption here is that a Lease agreement can have many invoices sent every week but a certain invoice can only apply to one accommodation.

                                 

                                   0..*           1..1

The assumption here is that no lease agreement is needed but still a lease can hold many accommodations but one accommodation can have one lease agreement as its for one room only.

                

                                  1..1            *..1

The assumption here is that one staff is contracted to one lease Agreement but many lease agreements have just one staff contracted to them

        

                                  0..1             1..*

The assumption here is that accommodations contain a hall but one hall can have many accommodations

        

                                     

                                  0..1            1..*

The assumption here is that accommodations contain a flat but one flat can have many accommodations

Join now!

Relationships

This is the actual E-R Model. It clearly shows the relationship type and the extent of the relationship. The flow of the relationship is also indicated and the cardinality too.

The boxes represent the entities, while the straight line defines the strength of the relationship. The arrowhead is pointing in the direction the information is flowing and forms the basis of the relationship. Next to the arrowhead is the name of the arrow, which has to be ...

This is a preview of the whole essay