Professional Documents
Culture Documents
Submitted By:
MD. MAHMUDUR RASHID 000708229
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.
Table of Contents
Section
Introduction Assumption ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Page
5 6 7 8 9 11-14 11 12 13 14 15 16
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
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
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.
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.
University Of Greenwich
D2.
mID
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
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).
University Of Greenwich
University Of Greenwich
D6.
A1.
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;
10
University Of Greenwich
11
University Of Greenwich
12
University Of Greenwich
13
University Of Greenwich
14
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.
15
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>
16