You are on page 1of 16

A COURSEWORK REPORT ON

Quorum Party Database


Submitted in partial fulfillment for the Award of degree of

BECHELOR OF SCIENCE IN BUSINESS INFORMATION TECHNOLOGY

(2011-12) COURSE: COMP1302 DATABASE DESIGN AND IMPLEMENTATION

Submitted By:
MD. MAHMUDUR RASHID 000708229

Submitted to: Dr Ala Al-Zobaidie


Greenwich Coordinator

Statement and Confirmation of Own Work Student declaration


I have read and understood UOG Policy on Academic Dishonesty and Plagiarism. I can confirm the following details:

Student ID: 000708229 Name: MD. Mahmudur Rashid Centre Name: Daffodil Institute of IT Module Name: Database Design and Implementation (DDI) Number of words: 924

I confirm that this is my own work and that I have not plagiarized any part of it. I have also noted the assessment criteria and pass mark for assignments.

Due Date: 4/12/12 Submitted Date:4/12/12

Table of Contents
Section
Introduction Assumption ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Page
5 6 7 8 9 11-14 11 12 13 14 15 16

Conceptual Data Modeling Relational Schema SQL Code

------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------

Screen Dumps -----------------------------------------------------------------------------------------------D6 D7 D8 D9 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Conclusion ----------------------------------------------------------------------------------------------------Bibliography ---------------------------------------------------------------------------------------------------

List of Figures
Figure-1 Figure-2 Figure-3 Figure-4 Figure-5 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------7 11 12 13 14

Tools used:
Microsoft Access 2007 Microsoft Visio 2007

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Introduction:
In this coursework of Database Design and Implementation I have been asked to design a database for Quorum Party Database which store information about parties, members, venues, commercial subscribers, invitations etc. I have done the work as specified in the coursework specification. At first I produce an Entity Relationship Diagram for design the Conceptual Data Model (CDM) of the database with all entities, relations and their primary key attributes. Then I mapped the CDM to relational schema by following some specific mapping techniques I have learned during my course of study. After that I checked that relational schema is in 3NF or not. Although my schema was satisfy 3NF criteria. Then using Microsoft Access 2007 DBMS I created a Database to implement the relational schema and populate it with some sample data. Finally I implemented all of the applications, forms and report as specified in the deliverables successfully with this database.

B.Sc. Hons in Business Information Technology

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

D1.

Assumptions

There are several things that need to be assumed for completing this coursework. The assumptions that I made about the business rules and factors are outlined below: About Calendar year: I assumed the calendar year that maintained for this system is from June to May. Last calendar year means calendar year before the June of the running calendar year. In PartyDetails table I add some additional data like memIn, memOut to count the time of one member stay in a party. When a new member will register with the system the registration date will be the current system date which will automatically added from the system. Similarly whenever a member will turned into party animals or/and gold member the date of membership will also pick from the system date. In the party table I added some additional data like: party tag, dress-code to store more information about parties. As commercial subscriber has to also sign up to the system for getting services I also store some login information about them like: user name, password, email. Party animals preferences are stored in a different table where they can also choose their preferred commercial subscriber name from a drop down list. The date in joinDate field in Quorum_Members table is assign for storing the date the member has joined as well as every categories of membership table has a field named DOM that is used to store their membership date for the particular category. This is essential for calculating many duration related queries in future. I have created email ID validations rule where-ever this type of field used in the database. This is because simplify the input procedure so that valid email id can be inserted during data entry.

B.Sc. Hons in Business Information Technology

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

D2.

Conceptual Data Model (CDM)


Entity Relationship Diagram for Quorum Party Database

mID

GuestWith mOut mIN

pNo

Attends Starts

Quorum Member

Party
N

M
Send To

M
Arranges In

Full Member
N

vID

Venue O

M
Gold Member Party Animal Promote By

invNo
1
Has

CS_ID

Invitation
Preference

Create

Commercial Subscriber

Owns

Figure-1: ERD for Quorum Party Database.

B.Sc. Hons in Business Information Technology

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

D3.

Relational Schema
Relational Data Model

Quorum_Members (mID, mFName, mLName, alias, email, passw, gender dateJoined). Full_Members (DOB, phn, address, city, DOM,mID). Gold_Members (DOM,rating,mID). Party_Animals (DOM,hobby,mID). PA_Preferences (PreferenceType, prefCS_ID,mID). Party_Details (mIn, mOut,guestWith,mID,pNo). Party_Starter (mID,pNo). Parties (pNo ,pDate, p_s_time, p_e_time, pTag, dressCode ,vID). Venues (vID ,vName, vType, vLoc, postcode, city). Promotions ( vID,CS_ID). Commercial_Subscribers (CS_ID ,CS_Name, service_Type, address, contact, email, reg_Date, username, passw, owner_CS,). Invitations (invNo, invCat , message,CS_ID). Invitation_Messages (msgDate,invNo,mID).

Relational Schema in MS Access Relationships:

B.Sc. Hons in Business Information Technology

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

D4. Normalization Declaration


Assurance Statement: The Relational Schema satisfies 3NF criteria

B.Sc. Hons in Business Information Technology

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

D6.
A1.

SQL code for the required applications (A1-A4)

SELECT V.vID, V.vName, V.vType, V.vLoc, V.postCode, V.City, QM.gender, COUNT(PD.mID) AS Total_Attend FROM Venues AS V, Quorum_Members AS QM, Parties AS P, Party_Details AS PD WHERE V.vID=P.vID And QM.mID=PD.mID And P.pNo=PD.pNo And P.pDate Between #1/1/2011# And #1/31/2011# And V.city='London' GROUP BY V.vID, V.vName, V.vType, V.vLoc, V.postCode, V.City, QM.gender, QM.gender;

A2.
SELECT V.vType, V.vName, V.postCode, V.city, COUNT(P.vID) AS Total_Parties FROM Venues AS V, Parties AS P WHERE V.vID=P.vID AND P.pDate BETWEEN #6/1/2010# AND #5/31/2011# GROUP BY V.vType, V.vName, V.postCode, V.city, P.vID HAVING COUNT(P.vID)>2 ORDER BY P.vID;

A3.
SELECT PA.mID, QM.mFName, QM.mLName, QM.Gender, QM.email, PA.DoM, COUNT(PD.mID) AS Total_Attend FROM Party_Animals AS PA, Party_Details AS PD, Parties AS P, Quorum_Members AS QM WHERE QM.mID =PA.mID AND PD.pNo=P.pNo AND PD.mID=PA.mID AND PA.mID NOT IN (SELECT GM.mID FROM Gold_Members AS GM ) AND PA.DoM<#6/1/2011# GROUP BY PA.mID, QM.mFName, QM.mLName, QM.Gender, QM.email, PA.DoM, PD.mID ORDER BY PD.mID;

A4.
SELECT PA.mID, QM.mFName, QM.mLName, QM.Gender, QM.email, PA.DoM, (Date()PA.DoM) AS Duration, COUNT(PD.mID) AS Total_Attend FROM Party_Animals AS PA, Party_Details AS PD, Parties AS P, Quorum_Members AS QM WHERE QM.mID =PA.mID AND PD.pNo=P.pNo AND PD.mID=PA.mID AND PA.mID NOT IN (SELECT GM.mID FROM Gold_Members AS GM ) AND PA.DoM<#1/1/2012# GROUP BY PA.mID, QM.mFName, QM.mLName, QM.Gender, QM.email, PA.DoM, PD.mID ORDER BY PD.mID;

B.Sc. Hons in Business Information Technology

10

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Screen dumps for all required applications in D6.


Application A1:

Figure-2.1: Screen Dump of application A1. Application A2:

Figure-2.2: Screen Dump of application A2. Application A3:

Figure-2.3: Screen Dump of application A3. Application A4:

Figure-2.4: Screen Dump of application A4.

B.Sc. Hons in Business Information Technology

11

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Screen dumps for D7.


New Member registration form:

Figure-3: Member Registration Form.

B.Sc. Hons in Business Information Technology

12

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Screen dumps for D8.


Master Details form with listed venues managed by a given Commercial Subscriber picked up from the drop down menu:

Figure-4: Master Details Form.

B.Sc. Hons in Business Information Technology

13

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Screen dumps for D9.


Report: Invitation message details

Figure-5: Invitation Messages Sent to Members.

B.Sc. Hons in Business Information Technology

14

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Conclusion:
Although this course work is a part of the total system that described in the specification but it has a major role over the system. After doing this course work I have gathered a sound knowledge about the design and development a relational DBMS using MS Access. I also learned to produce forms and reports as well.Finally I have done all the deliverables as specified in the coursework.

B.Sc. Hons in Business Information Technology

15

DATABASE DESIGN AND IMPLEMENTATION

University Of Greenwich

Bibliography
Thomas M. Connolly, Carolyn E. Begg, Database Systems, 4th edn, Published by Dorling kindersely (India) Pvt Ltd, 482, F.I.E, Pataprgonj, Dellhi 110 092, India

Create and use an index to improve performance, Support / Access / Access 2010 Help and How-to / Designing applications , viewed 18 March 2012, <http://office.microsoft.com/en-us/access-help/create-and-use-an-index-to-improve-performanceHA010341594.aspx> Validation rules, Support / Access / Access 2007 Help and How-to / Database design , viewed 25 March
2012,

<http://office.microsoft.com/en-us/access-help/create-and-use-an-index-to-improve-performanceHA010341594.aspx>

B.Sc. Hons in Business Information Technology

16

You might also like