SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
1
2
Assumptions and Business Rules

       In the coursework’s specification, only the overall situation is described and some important
information for data is missing. Thus, while implementing quorum party database system described in
coursework, we had to make appropriate assumptions in order to complete the whole system successfully.

        Firstly, we had to consider which information must be kept. Since party goers, commercial
subscribers, parties, invitation messages and venues are the roots of the described system, we decided to
record the detailed facts of them. Moreover, we assumed the respective data for the activity between party
goers and party, party details about organizing party by commercial subscriber, which commercial
subscriber creates which invitation and does business with which venue, invitation details showing which
message goes to which members and the link between party and venue.

          In analyzing this system, we realized that there are two kinds of party goers although there are
four categories under full member like party animals or gold members or both or none. Whoever registers
for party service must be a standard or a full party goer. For standard ones, we suppose that it is a good
idea to record the data concerned with their preferred party type and party day because it will be useful
for sending invitations if there is a party suitable with their preferences. In contrast, we assumed to save
some specific data of full members as they become our regular members. This data includes their
occupation, preferred food and music, DOB, address, full member type and subscription discount which
will be varied in accordance with full member type and gold member level (one or two or three stars).

          Another significant thing to take account of is the type of data for party. To celebrate a party, it is
important to define start and end time, place, party type (cocktail party, disco party, etc) and party size to
let the system knows which members regularly attend large party so that it can decide whether a member
should be full member or not. In addition, we believe that serviced items provided by commercial
subscribers such as types of food and drink must be stored for party details. Member attendance is also
necessary for a party and we must save each member’s arrival time to a party and the party service
(standard or VIP) bought by him/her. Besides, we also have to think about the data for invitation because
it is the inspiration to all members for getting involved in a party. We found that the creator of a message,
its description which let everyone knows where, when and what type of party it is, dress code and
invitation category (offer or information only or discount) should be taken into consideration.

         After imagining the type of data, some business rules as well as relationships between entities are
required to be identified. So, we assumed that a member may receive none or more than one messages
and he/she may attend none or more than one parties. Although a commercial subscriber may make none
or more than one invitation messages, an invitation message can only have one commercial subscriber.
Likewise, there is the same activity between venue and party. According to coursework’s scenario, we
can infer that an invitation message must send to at least three members. Consequently, a party would
have at least three attendances. But, in our opinion, having only three attendances is too few to throw a
party and we presumed that there should be at least 8 persons. There is also a possibility that a
commercial subscriber may have none or more than one venue which he/she promotes and vice versa.
Unlike other relationships, we observed that an invitation message must express about at least and at most
one party although a party can have one or more invitation messages. To sum up, we created this database
system based on our assumptions explained above and some facts from the context of coursework.


                                                                                                                3
2. Conceptual Data Model of Quorum Party Database System



         invitingMsgID                   partyGoerID                         partyGoerID                                  partyGoerID       partyID




                                                 M                 1                                   1                M          partyGoer
               InvitationDetails                       receive               partyGoer                    participate
                                                                                                    (0,M)                          Attendance
                                               (3,M)               (0,M)                                              (3,M)

                                                                                   d
                              M                                                                                     age
                         hold                                          Standard              Full

                              1                                                                                   membership
  invitingMsgID                                                                                                    Duration
                   (1,M)                                                                     o
                                                                                                                                            M

                                                                                   Party
               InvitingMessage                                                                          Gold                         record
                                                                                  Animal
                                                           (1,1)
                     (1,1)                                                                                                                  1
                                                                             M
                              M                                                   describe          1
                                                                                                                                  (3,M)
                         create                                                                                 (1,M)
   CSubscriberID                                                                                                                                partyID
                                                                   partyID             CSubscriberID
                             1
                                                                                                                                                       total
                   (0,M)                                                                                                                           Attendance

                     Commercial                   1           M                                         M                  1
                                                    deal with                PartyDetails                    consist of                 Party
                     Subscriber               (0,M)           (1,1)                                 (1,1)                 (1,M)
                                  emp
                er




                                                                                                                                   (1,1)
             own




                                                                                                                                            M
                                     loye




                             (1,1)
                                                           CSubscriberID                venueID                                      accept
                                          e




          (0,M)                                                                                                    venueID
                     1            M
                                                                                                                                            1
                                               (0,M)                                                                                (0,M)
                         own
                                                1
                                                              M                Venue                        M              1
                                                    promote                                                     has                   Venue
                                                                             Management              (1,1)
                                                              (1,1)                                                       (0,M)




                                                                                                                                                          4
3. Relational Schema



PartyGoer (partyGoerID, registrationDate, fullName, title, maritalstatus, gender, email, contactPh,
            userAlias, password, remark)

Standard (partyGoerID, preferedPartyType, preferredPartyDay)

Full (partyGoerID, F_partyGoerDate, occupation, DOB, age, address, membershipDuration,
      F_partyGoerType, P_animalDate, foodChoice, musicChoice, subscriptionDiscount,
      G_partyGoerDate, G_partyGoerLevel, drinkChoice)

PartyGoerAttendance (partyGoerID, partyID, arrivalTime, boughtPartyService, remark)

Party (partyID, partyType, partySize, totalAttendance, partyDate, startTime, endTime, partyRemark,
       *venueID)

PartyDetails (CSID, partyID, servicedItemsByCS, remark)

Venue (venueID, registrationDate, venueType, venueName, contactPh, address, postcode, venueRemark)

CommercialSubscriber (CSID, registrationDate, CS_category, CS_name, email, contactPh, address,
                       userAlias, password, remark, *ownerID)

VenueManagement (venueID, CSID, managingStartDate, managementRemark)

InvitingMessage (invitingMsgID, msgCreatingDate, invitationCategory, dressCode, messageDescription,
                  *CSID, *partyID)

InvitationDetails (invitingMsgID, partyGoerID, msgSentDate, remark)




                                                                                                      5
4. Normalization

 Normalization of Party Goer Attendance Form


                           Party Goer Attendance Form
                                                                 Party Date:
      Party ID:
      Venue ID:
      Party Type:
      Party Size:
      Total Attendance:
      Start Time:
      End Time:
      Party Remark:


    Party Goer ID            Arrival Time          Bought Party Service          Remark




   PartyID PartyDate VenueID PartyType PartySize TotalAttendance StartTime EndTime PartyRemark




  VenueID RegistrationDate VenueType VenueName ContactPhone Address PostCode VenueRemark




PartyGoerIDRegistrationDateFullNameTitle MaritalStatus Gender Email ContactPh UserAlias Password Remark




  PartyID PartyGoerID ArrivalTime BoughtPartyService Remark




                                                                           SEE APPENDIX (PG-21)



                                                                                               6
SQL Code

A1. List of members for each gender

SELECT vn.venueName, pgo.gender, count(*) AS TotalPartyGoers
FROM Venue AS vn, Party AS p, PartyGoerAttendance AS pga, PartyGoer AS pgo
WHERE DatePart("yyyy",p.partyDate)=2011 And DatePart("m",p.partyDate)=1 And vn.address Like
"*London*" And vn.venueID=p.venueID And p.partyID=pga.partyID And
pga.partyGoerID=pgo.partyGoerID
GROUP BY vn.venueName, pgo.gender;

A2. List of venues having over two parties last year

SELECT vn.venueName, vn.postcode, count(*) AS TotalParties
FROM Venue AS vn, Party AS p
WHERE vn.venueID=p.venueID And DATEPART("yyyy",p.partyDate)=2011
GROUP BY vn.venueName, vn.postcode
HAVING COUNT(*)>2
ORDER BY COUNT(*) DESC , vn.venueName;

A3. List of members who are party animals but not gold members including date of becoming party
animal

SELECT pgo.partyGoerID, pgo.fullName, f.P_animalDate, Count(*) AS TotalAttendedParties
FROM PartyGoer AS pgo, [Full] AS f, PartyGoerAttendance AS pga, Party AS p
WHERE (((f.F_partyGoerType)='party animal') And DatePart("yyyy",f.P_animalDate)<2012 And
((f.partyGoerID)=pgo.partyGoerID) And ((pgo.partyGoerID)=pga.partyGoerID) And
((pga.partyID)=p.partyID))
GROUP BY pgo.partyGoerID, pgo.fullName, f.P_animalDate
ORDER BY Count(*) DESC;

A4. List of members who are party animals but not gold members plus day of becoming party
animal

SELECT pgo.partyGoerID, pgo.fullName, DatePart("d",f.P_animalDate) AS P_AnimalDate, Count(*)
AS TotalAttendedParties
FROM PartyGoer AS pgo, [Full] AS f, PartyGoerAttendance AS pga, Party AS p
WHERE (((f.F_partyGoerType)='party animal') And ((DatePart("yyyy",f.P_animalDate))<2012) And
((f.partyGoerID)=pgo.partyGoerID) And ((pgo.partyGoerID)=pga.partyGoerID) And
((pga.partyID)=p.partyID))
GROUP BY pgo.partyGoerID, pgo.fullName, f.P_animalDate
ORDER BY Count(*) DESC;




                                                                                               7
Screen Dumps both for running all Applications in D6 and for testing (D10)




                                                                             8
9
10
Screen Dumps both for (D7-D9) and for testing (D10)

Screen Dumps for D7 and D10

        We assume that there are two types of new user. First one is Standard Party Goers and second one
is commercial subscribers as they also have to register like party goers in order to know where another
party will be celebrated.



Standard Party Goer Registration Form




                                                                                                     11
After entering and saving data




                                 12
Commercial Subscriber Registration Form




                                          13
After entering and saving data




                                 14
Screen Dumps for D8 and D10




                              15
Invitation Report




                    16
Screen Dumps for D9 and D10




                              17
18
Venue Management Form

Before searching with commercial subscriber’s name




After searching with name (Walter Mann)




                                                     19
After searching with name (Bruno Louis)




                                          20
21
Normalization of Inviting Message Form


                                 Inviting Message Form
                                                      Message Creating Date:
     Inviting Message ID:
     Commercial Subscriber ID:
    Party ID:
     Invitation Category:
     Dress Code:
     Message Description:


    Party Goer ID                 Message Sent Date                            Remark




  InvitingMessageID MsgCreatingDate InvitationCategory DressCode MessageDescription CSID PartyID




  InvitingMessageID PartyGoerID MessageSentDate Remark




  CSID RegistrationDate CS_category CS_name Email ContactPh Address UserAlias Password Remark




   PartyID PartyDate VenueID PartyType PartySize TotalAttendance StartTime EndTime PartyRemark




PartyGoerIDRegistrationDateFullNameTitle MaritalStatus Gender Email ContactPh UserAlias Password Remark




                                                                                              22
Normalization of Venue Management Form


                            Venue Management Form
                                                     Venue Registration Date:

       Venue ID:
       Venue Type:
       Venue Name:
       Contact Phone:
       Address:
       Postcode:
       Venue Remark:


      CSID                     Managing Start Date              Management Remark




 VenueID RegistrationDate VenueType VenueName ContactPhone Address PostCode VenueRemark




CSID RegistrationDate CS_category CS_name Email ContactPh Address UserAlias Password Remark




VenueID CSID       ManagingStartDate   ManagementRemark




                                                                                      23

Weitere ähnliche Inhalte

Andere mochten auch

Rapid Development Method Coursework by May Hnit Oo Khin
Rapid Development Method Coursework by May Hnit Oo KhinRapid Development Method Coursework by May Hnit Oo Khin
Rapid Development Method Coursework by May Hnit Oo KhinMay Hnit
 
Information System Engineering coursework by May Hnit Oo Khin
Information System Engineering coursework by May Hnit Oo KhinInformation System Engineering coursework by May Hnit Oo Khin
Information System Engineering coursework by May Hnit Oo KhinMay Hnit
 
IT Project and Quality Management Coursework 2 by May Hnit Oo Khin
IT Project and Quality Management Coursework 2 by May Hnit Oo KhinIT Project and Quality Management Coursework 2 by May Hnit Oo Khin
IT Project and Quality Management Coursework 2 by May Hnit Oo KhinMay Hnit
 
User Interface Design (University of Greenwich BIT Coursework) by Nay Linn Ko
User Interface Design (University of Greenwich BIT Coursework) by Nay Linn KoUser Interface Design (University of Greenwich BIT Coursework) by Nay Linn Ko
User Interface Design (University of Greenwich BIT Coursework) by Nay Linn KoNay Linn Ko
 
Development Frameworks and Methods (University of Greenwich BIT Coursework) b...
Development Frameworks and Methods (University of Greenwich BIT Coursework) b...Development Frameworks and Methods (University of Greenwich BIT Coursework) b...
Development Frameworks and Methods (University of Greenwich BIT Coursework) b...Nay Linn Ko
 
Development, Frameworks and Methods
Development, Frameworks and MethodsDevelopment, Frameworks and Methods
Development, Frameworks and MethodsMd. Mahbub Alam
 
May Hnit Oo Khin Business IT Project
May Hnit Oo Khin  Business IT ProjectMay Hnit Oo Khin  Business IT Project
May Hnit Oo Khin Business IT ProjectMay Hnit
 
NayLinnKo_BIT_InteractionDesign
NayLinnKo_BIT_InteractionDesignNayLinnKo_BIT_InteractionDesign
NayLinnKo_BIT_InteractionDesignNay Linn Ko
 
NayLinnKo Information Systems Management BIT
NayLinnKo Information Systems Management BITNayLinnKo Information Systems Management BIT
NayLinnKo Information Systems Management BITNay Linn Ko
 
Advance Java course work under NCC Education June 2011
Advance Java course work  under NCC Education June 2011Advance Java course work  under NCC Education June 2011
Advance Java course work under NCC Education June 2011Md. Mahbub Alam
 
Information System Management Coursework by May Hnit Oo Khin
Information System Management Coursework by May Hnit Oo KhinInformation System Management Coursework by May Hnit Oo Khin
Information System Management Coursework by May Hnit Oo KhinMay Hnit
 
NayLinnKo Information Requirements Analysis BIT
NayLinnKo Information Requirements Analysis BITNayLinnKo Information Requirements Analysis BIT
NayLinnKo Information Requirements Analysis BITNay Linn Ko
 
Information Technology Planning (University of Greenwich BIT Coursework) by N...
Information Technology Planning (University of Greenwich BIT Coursework) by N...Information Technology Planning (University of Greenwich BIT Coursework) by N...
Information Technology Planning (University of Greenwich BIT Coursework) by N...Nay Linn Ko
 
Database design and Development
Database design and DevelopmentDatabase design and Development
Database design and DevelopmentMd. Mahbub Alam
 

Andere mochten auch (20)

Rapid Development Method Coursework by May Hnit Oo Khin
Rapid Development Method Coursework by May Hnit Oo KhinRapid Development Method Coursework by May Hnit Oo Khin
Rapid Development Method Coursework by May Hnit Oo Khin
 
Information System Engineering coursework by May Hnit Oo Khin
Information System Engineering coursework by May Hnit Oo KhinInformation System Engineering coursework by May Hnit Oo Khin
Information System Engineering coursework by May Hnit Oo Khin
 
IT Project and Quality Management Coursework 2 by May Hnit Oo Khin
IT Project and Quality Management Coursework 2 by May Hnit Oo KhinIT Project and Quality Management Coursework 2 by May Hnit Oo Khin
IT Project and Quality Management Coursework 2 by May Hnit Oo Khin
 
User Interface Design (University of Greenwich BIT Coursework) by Nay Linn Ko
User Interface Design (University of Greenwich BIT Coursework) by Nay Linn KoUser Interface Design (University of Greenwich BIT Coursework) by Nay Linn Ko
User Interface Design (University of Greenwich BIT Coursework) by Nay Linn Ko
 
Development Frameworks and Methods (University of Greenwich BIT Coursework) b...
Development Frameworks and Methods (University of Greenwich BIT Coursework) b...Development Frameworks and Methods (University of Greenwich BIT Coursework) b...
Development Frameworks and Methods (University of Greenwich BIT Coursework) b...
 
Development, Frameworks and Methods
Development, Frameworks and MethodsDevelopment, Frameworks and Methods
Development, Frameworks and Methods
 
May Hnit Oo Khin Business IT Project
May Hnit Oo Khin  Business IT ProjectMay Hnit Oo Khin  Business IT Project
May Hnit Oo Khin Business IT Project
 
NayLinnKo_BIT_InteractionDesign
NayLinnKo_BIT_InteractionDesignNayLinnKo_BIT_InteractionDesign
NayLinnKo_BIT_InteractionDesign
 
NayLinnKo Information Systems Management BIT
NayLinnKo Information Systems Management BITNayLinnKo Information Systems Management BIT
NayLinnKo Information Systems Management BIT
 
Advance Java course work under NCC Education June 2011
Advance Java course work  under NCC Education June 2011Advance Java course work  under NCC Education June 2011
Advance Java course work under NCC Education June 2011
 
MYINT OO ISM BIT COURSEWORK
MYINT OO ISM BIT COURSEWORKMYINT OO ISM BIT COURSEWORK
MYINT OO ISM BIT COURSEWORK
 
Information System Management Coursework by May Hnit Oo Khin
Information System Management Coursework by May Hnit Oo KhinInformation System Management Coursework by May Hnit Oo Khin
Information System Management Coursework by May Hnit Oo Khin
 
NayLinnKo Information Requirements Analysis BIT
NayLinnKo Information Requirements Analysis BITNayLinnKo Information Requirements Analysis BIT
NayLinnKo Information Requirements Analysis BIT
 
Interaction Design
Interaction DesignInteraction Design
Interaction Design
 
BIT PROJECT
BIT PROJECT BIT PROJECT
BIT PROJECT
 
Information Technology Planning (University of Greenwich BIT Coursework) by N...
Information Technology Planning (University of Greenwich BIT Coursework) by N...Information Technology Planning (University of Greenwich BIT Coursework) by N...
Information Technology Planning (University of Greenwich BIT Coursework) by N...
 
eCommerce
eCommerceeCommerce
eCommerce
 
ITP BIT Coursework
ITP BIT CourseworkITP BIT Coursework
ITP BIT Coursework
 
MYINT OO ID BIT COURSEWORK
MYINT OO ID BIT COURSEWORKMYINT OO ID BIT COURSEWORK
MYINT OO ID BIT COURSEWORK
 
Database design and Development
Database design and DevelopmentDatabase design and Development
Database design and Development
 

Kürzlich hochgeladen

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Kürzlich hochgeladen (20)

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

Database Design and Implementation Coursework by May Hnit Oo Khin

  • 1. 1
  • 2. 2
  • 3. Assumptions and Business Rules In the coursework’s specification, only the overall situation is described and some important information for data is missing. Thus, while implementing quorum party database system described in coursework, we had to make appropriate assumptions in order to complete the whole system successfully. Firstly, we had to consider which information must be kept. Since party goers, commercial subscribers, parties, invitation messages and venues are the roots of the described system, we decided to record the detailed facts of them. Moreover, we assumed the respective data for the activity between party goers and party, party details about organizing party by commercial subscriber, which commercial subscriber creates which invitation and does business with which venue, invitation details showing which message goes to which members and the link between party and venue. In analyzing this system, we realized that there are two kinds of party goers although there are four categories under full member like party animals or gold members or both or none. Whoever registers for party service must be a standard or a full party goer. For standard ones, we suppose that it is a good idea to record the data concerned with their preferred party type and party day because it will be useful for sending invitations if there is a party suitable with their preferences. In contrast, we assumed to save some specific data of full members as they become our regular members. This data includes their occupation, preferred food and music, DOB, address, full member type and subscription discount which will be varied in accordance with full member type and gold member level (one or two or three stars). Another significant thing to take account of is the type of data for party. To celebrate a party, it is important to define start and end time, place, party type (cocktail party, disco party, etc) and party size to let the system knows which members regularly attend large party so that it can decide whether a member should be full member or not. In addition, we believe that serviced items provided by commercial subscribers such as types of food and drink must be stored for party details. Member attendance is also necessary for a party and we must save each member’s arrival time to a party and the party service (standard or VIP) bought by him/her. Besides, we also have to think about the data for invitation because it is the inspiration to all members for getting involved in a party. We found that the creator of a message, its description which let everyone knows where, when and what type of party it is, dress code and invitation category (offer or information only or discount) should be taken into consideration. After imagining the type of data, some business rules as well as relationships between entities are required to be identified. So, we assumed that a member may receive none or more than one messages and he/she may attend none or more than one parties. Although a commercial subscriber may make none or more than one invitation messages, an invitation message can only have one commercial subscriber. Likewise, there is the same activity between venue and party. According to coursework’s scenario, we can infer that an invitation message must send to at least three members. Consequently, a party would have at least three attendances. But, in our opinion, having only three attendances is too few to throw a party and we presumed that there should be at least 8 persons. There is also a possibility that a commercial subscriber may have none or more than one venue which he/she promotes and vice versa. Unlike other relationships, we observed that an invitation message must express about at least and at most one party although a party can have one or more invitation messages. To sum up, we created this database system based on our assumptions explained above and some facts from the context of coursework. 3
  • 4. 2. Conceptual Data Model of Quorum Party Database System invitingMsgID partyGoerID partyGoerID partyGoerID partyID M 1 1 M partyGoer InvitationDetails receive partyGoer participate (0,M) Attendance (3,M) (0,M) (3,M) d M age hold Standard Full 1 membership invitingMsgID Duration (1,M) o M Party InvitingMessage Gold record Animal (1,1) (1,1) 1 M M describe 1 (3,M) create (1,M) CSubscriberID partyID partyID CSubscriberID 1 total (0,M) Attendance Commercial 1 M M 1 deal with PartyDetails consist of Party Subscriber (0,M) (1,1) (1,1) (1,M) emp er (1,1) own M loye (1,1) CSubscriberID venueID accept e (0,M) venueID 1 M 1 (0,M) (0,M) own 1 M Venue M 1 promote has Venue Management (1,1) (1,1) (0,M) 4
  • 5. 3. Relational Schema PartyGoer (partyGoerID, registrationDate, fullName, title, maritalstatus, gender, email, contactPh, userAlias, password, remark) Standard (partyGoerID, preferedPartyType, preferredPartyDay) Full (partyGoerID, F_partyGoerDate, occupation, DOB, age, address, membershipDuration, F_partyGoerType, P_animalDate, foodChoice, musicChoice, subscriptionDiscount, G_partyGoerDate, G_partyGoerLevel, drinkChoice) PartyGoerAttendance (partyGoerID, partyID, arrivalTime, boughtPartyService, remark) Party (partyID, partyType, partySize, totalAttendance, partyDate, startTime, endTime, partyRemark, *venueID) PartyDetails (CSID, partyID, servicedItemsByCS, remark) Venue (venueID, registrationDate, venueType, venueName, contactPh, address, postcode, venueRemark) CommercialSubscriber (CSID, registrationDate, CS_category, CS_name, email, contactPh, address, userAlias, password, remark, *ownerID) VenueManagement (venueID, CSID, managingStartDate, managementRemark) InvitingMessage (invitingMsgID, msgCreatingDate, invitationCategory, dressCode, messageDescription, *CSID, *partyID) InvitationDetails (invitingMsgID, partyGoerID, msgSentDate, remark) 5
  • 6. 4. Normalization Normalization of Party Goer Attendance Form Party Goer Attendance Form Party Date: Party ID: Venue ID: Party Type: Party Size: Total Attendance: Start Time: End Time: Party Remark: Party Goer ID Arrival Time Bought Party Service Remark PartyID PartyDate VenueID PartyType PartySize TotalAttendance StartTime EndTime PartyRemark VenueID RegistrationDate VenueType VenueName ContactPhone Address PostCode VenueRemark PartyGoerIDRegistrationDateFullNameTitle MaritalStatus Gender Email ContactPh UserAlias Password Remark PartyID PartyGoerID ArrivalTime BoughtPartyService Remark SEE APPENDIX (PG-21) 6
  • 7. SQL Code A1. List of members for each gender SELECT vn.venueName, pgo.gender, count(*) AS TotalPartyGoers FROM Venue AS vn, Party AS p, PartyGoerAttendance AS pga, PartyGoer AS pgo WHERE DatePart("yyyy",p.partyDate)=2011 And DatePart("m",p.partyDate)=1 And vn.address Like "*London*" And vn.venueID=p.venueID And p.partyID=pga.partyID And pga.partyGoerID=pgo.partyGoerID GROUP BY vn.venueName, pgo.gender; A2. List of venues having over two parties last year SELECT vn.venueName, vn.postcode, count(*) AS TotalParties FROM Venue AS vn, Party AS p WHERE vn.venueID=p.venueID And DATEPART("yyyy",p.partyDate)=2011 GROUP BY vn.venueName, vn.postcode HAVING COUNT(*)>2 ORDER BY COUNT(*) DESC , vn.venueName; A3. List of members who are party animals but not gold members including date of becoming party animal SELECT pgo.partyGoerID, pgo.fullName, f.P_animalDate, Count(*) AS TotalAttendedParties FROM PartyGoer AS pgo, [Full] AS f, PartyGoerAttendance AS pga, Party AS p WHERE (((f.F_partyGoerType)='party animal') And DatePart("yyyy",f.P_animalDate)<2012 And ((f.partyGoerID)=pgo.partyGoerID) And ((pgo.partyGoerID)=pga.partyGoerID) And ((pga.partyID)=p.partyID)) GROUP BY pgo.partyGoerID, pgo.fullName, f.P_animalDate ORDER BY Count(*) DESC; A4. List of members who are party animals but not gold members plus day of becoming party animal SELECT pgo.partyGoerID, pgo.fullName, DatePart("d",f.P_animalDate) AS P_AnimalDate, Count(*) AS TotalAttendedParties FROM PartyGoer AS pgo, [Full] AS f, PartyGoerAttendance AS pga, Party AS p WHERE (((f.F_partyGoerType)='party animal') And ((DatePart("yyyy",f.P_animalDate))<2012) And ((f.partyGoerID)=pgo.partyGoerID) And ((pgo.partyGoerID)=pga.partyGoerID) And ((pga.partyID)=p.partyID)) GROUP BY pgo.partyGoerID, pgo.fullName, f.P_animalDate ORDER BY Count(*) DESC; 7
  • 8. Screen Dumps both for running all Applications in D6 and for testing (D10) 8
  • 9. 9
  • 10. 10
  • 11. Screen Dumps both for (D7-D9) and for testing (D10) Screen Dumps for D7 and D10 We assume that there are two types of new user. First one is Standard Party Goers and second one is commercial subscribers as they also have to register like party goers in order to know where another party will be celebrated. Standard Party Goer Registration Form 11
  • 12. After entering and saving data 12
  • 14. After entering and saving data 14
  • 15. Screen Dumps for D8 and D10 15
  • 17. Screen Dumps for D9 and D10 17
  • 18. 18
  • 19. Venue Management Form Before searching with commercial subscriber’s name After searching with name (Walter Mann) 19
  • 20. After searching with name (Bruno Louis) 20
  • 21. 21
  • 22. Normalization of Inviting Message Form Inviting Message Form Message Creating Date: Inviting Message ID: Commercial Subscriber ID: Party ID: Invitation Category: Dress Code: Message Description: Party Goer ID Message Sent Date Remark InvitingMessageID MsgCreatingDate InvitationCategory DressCode MessageDescription CSID PartyID InvitingMessageID PartyGoerID MessageSentDate Remark CSID RegistrationDate CS_category CS_name Email ContactPh Address UserAlias Password Remark PartyID PartyDate VenueID PartyType PartySize TotalAttendance StartTime EndTime PartyRemark PartyGoerIDRegistrationDateFullNameTitle MaritalStatus Gender Email ContactPh UserAlias Password Remark 22
  • 23. Normalization of Venue Management Form Venue Management Form Venue Registration Date: Venue ID: Venue Type: Venue Name: Contact Phone: Address: Postcode: Venue Remark: CSID Managing Start Date Management Remark VenueID RegistrationDate VenueType VenueName ContactPhone Address PostCode VenueRemark CSID RegistrationDate CS_category CS_name Email ContactPh Address UserAlias Password Remark VenueID CSID ManagingStartDate ManagementRemark 23