Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2012
    Posts
    3

    Exclamation PLEASE Guide me through this ERD

    Guys, I have spent a few days designing a ERD for a case scenario, I think the entities, relationships, multiplicity and cardinality are correct.

    However I was wondering if you guys could have a brief look and guide me or please advise and correct me if i am wrong.

    This design is ERD 1, so the many to many relationships aren't resolved yet and the notation is UML, I am using StarUML to design this ERD.

    The files are attached below;

    I hope you guys can offer me some advise..

    Thanks alot...

    From the scenario, I have deducted the following business rules, for easier reading

    --------------------Staff rules--------------------------------------------------------------------------------------
    1. Each branch has a designated manager who has overall responsibility for the branch and the employees in the branch

    2. To help manage the branch, an assistant manager supervises the staff

    3. Employees must inform Alpha Luxury Holidays about their previous work history, for example, the company details and the job details.

    4. Employee’s job can only be: manager, assistant manager, sales assistant and administrator;

    Constrains;
     Staff gender should be recorded as ‘M’ or ‘F’:
     The employee’s salary should be greater than £10 and not exceed £50,000.
     Staff salary must not exceed the Manager’s salary;
     Staff numbers should be generated automatically using a sequence and a trigger.

    ----------------------reservation rules-----------------------------------------------------------------------------


    1. A customer can book many reservations;

    2. The customer normally would inform the agency staff of the length of stay, inward and outward dates, the city and country they would like to visit, their preferred facilities and the type of resort as well as the number of passengers.

    3. The customer must also inform the member of staff if they are only booking a flight or only accommodation or both.

    4. Details of the staff who took the booking must also be recorded.

    Constrains;
     Each holiday end-date should not be earlier than the start-date.
     Customer’s email address should have a @ symbol present to be valid;
     Details of the staff who took the booking must also be recorded;

    -------------------------------invoice rules-------------------------------------------------------------------
    1. Once the holiday reservation is booked, the customer is invoiced for the holiday;

    2. Customer must pay the invoice in full, either by cash, credit card, debit card or cheque

    3. All invoices must be paid at least eight weeks before the departure date
    ;
    Attached Thumbnails Attached Thumbnails alpha_luxury_hotels.jpg  
    Attached Files Attached Files
    Last edited by LatinUnit; 02-25-12 at 10:15. Reason: added business rules....

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    your diagram looks okay (i did not bother looking at the pdf)

    do you have a specific question?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Feb 2012
    Posts
    3

    Arrow

    Quote Originally Posted by r937 View Post
    your diagram looks okay (i did not bother looking at the pdf)

    do you have a specific question?
    Well, one question is... How do i represent an Inclusive relationship, where an entity can have a relationship with two other entities or either one. it is normally represented by drawing a dotted line between the two relationships with an OR label Inclusive-OR. and in UML it is represented by drawing an arc line. But i cant find this option in StarUML.

    Also, from the business rules, i was wondering if you guys spotted any entities that i am missing, or the multiplicities might be wrong...

    Once again thanks alot guys

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by LatinUnit View Post
    But i cant find this option in StarUML.
    awww...

    Attached Thumbnails Attached Thumbnails scumbag-staruml.gif  
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •