Beruflich Dokumente
Kultur Dokumente
SHOWMAN HOUSE
Developed by
NIIT
Showman House
Number of entities: 6
Names of entities :
1. Event Types
2. Fee schedules
3. Events
4. Payments
5. Attendees
6. Employees
ATTRIBUTES
Attributes:
The attributes of the regular entities are:
a. Event Types
EventTypeID
Description
b. Fee Schedules
FeeScheduleID
EventID
Fee Description
FeeAmount
c. Events
EventID
Event Name
EventTypeID
Location
Start Date
End Date
Staffing Required
Event Description
EmployeeID
No of People
d. Payments
PaymentID
EventID
Payment Amount
Payment-DT
PaymentMethodID
Payment Method Desc
CreditCard Number
Cardholders Name
Creditcard ExpDate
FeeScheduleID
e. Attendees
AttendeeID
First Name
Last Name
Address
City
State
Zip
Country
Phone No
f. Employees
EmployeeID
First Name
Last Name
Title
Phone No
E/R DIAGRAM
1 FEE SCHEDULE
PHONE ID
NO
LAST EVENT
NAME TYPEID LOCATION STAFFING REQUIRED
FIRSTNAM TITLE
E EVENT
NAME START END DATE
EMPL DATE
FO EVENT
OY ID
EVENT R DESCRIPTIO
NAME N
EVENT ID
EMPLOYEE ID
1
1 M 1 1
MA O
EMPLOYEES NA
EVENTS
N
FEE SCHEDULES
M
GES
M
FEE
SCHEDULE
No OF ID
PEOPLE
ORG
ANIZ BASE EVET ID
ES D ON FEE
1 AMOUNT
FEE
ATTENDEES DESCRIPTI
ON
1
PHONE EVENT TYPES
NO
DESCRIPTION
ATT COUNTRY
END EVENT TYPE
ADDR
EE STATE ID
ESS
ID
FIRST
NAME LAST CITY ZIP
NAME
TABLES
Numbers of Tables: 6
Event Types [Entity] Fee Schedules [Entity]
Event Types Fee schedules
EventTypeID
FeeScheduleID
Description
EventID
Fee Description
Fee Amount
Fee Description
Fee Amount
Events
EventID Events Payments
Event Name
Event TypeID
Location
Start Date
End Date
Staffing Required
Event Description
EmployeeID
NO of People
Payments
PaymentsID
EventID
Payment Amount
Payment-Dt
PaymentMethodID
Payment Method
Desc
Creditcard Number
Cardholders Name
Creditcard ExpDate
FeeScheduleID
Attendees Employees
Attendees Employees
AttendeeID EmployeeID
First Name
First Name
Last Name Last Name
Address Title
City
Phone No
State
Zip
Country
Phone No
TABLES AFTER 2 NF
The tables are already in 2NF as the attributes in each table depends on the primary
key.
Fee Description
End Date
Staffing Required
Event Description
EmployeeID
NO of People
Payments
PaymentsID
EventID
Payment Amount
Payment-Dt
PaymentMethodID
Payment Method
Desc
Creditcard Number
Cardholders Name
Creditcard ExpDate
FeeScheduleID
Attendees Employees
Attendees Employees
AttendeeID EmployeeID
First Name
First Name
Last Name Last Name
Address Title
City
Phone No
State
Zip
Country
Phone No
TABLES AFTER 3NF
Fee Description
Fee Amount
Events
EventID
Event Name Events Payments
Event TypeID
Location
Start Date
End Date
Staffing Required
Event Description
EmployeeID
NO of People
Payments
PaymentsID
EventID
Payment Amount
Payment-Dt
PaymentMethodID
CreditCard Number
FeeScheduleID
Attendees Employee
Attendees Employees
AttendeeID EmployeeID
First Name
First Name
Last Name Last Name
Address Title
City
Phone No
State
Zip Payment Methods
Country PaymentMethodID
Phone No Payment methodDesc
Payment Methods Credit Cards
Credit Cards
CreditCard Number
Cardholders Name
CreditCard ExpDate
TABLES AFTER DENORMALIZATION
When we place the information about credit card in a separate table, the query
performance during the generation of payment receipt will get affected due to
creation of joins in every payment receipt. Therefore, for optimum performance,
we denormalize and place the credit card information back into the payments
table. Now, the tables are as follows:
Fee Description
Events
Fee Amount
EventID
Event Name
Event TypeID Events Payments
Location
Start Date
End Date
Staffing Required
Event Description
EmployeeID
NO of People
Payments
PaymentsID
EventID
Payment Amount
Payment-Dt
PaymentMethodID
Creditcard Number
Cardholders Name
Credit card ExpDate
FeeScheduleID
Attendees Employee
Attendees Employees
AttendeeID EmployeeID
First Name
First Name
Last Name Last Name
Address Title
City
Phone No
State
Zip Payment Methods
Country PaymentMethodID
Phone No Payment methodDesc
Payment Methods
PRIMARY AND FOREIGN KEYS
Event Types
Primary Key: EventTypeID
Fee Schedules
Primary Key: FeeScheduleID
Foreign Key: EventID
Events
Primary Key: EventID
Foreign Keys: EventTypeID, EmployeeID, AttendeeID
Payments
Primary Key: PaymentID
Foreign Keys: EventID, PaymentMethodID
Payment Methods
Primary Key: PaymentMethodID
Attendees
Primary Key: AttendeeID
Employees
Primary Keys: EmployeeID
RELATIONSHIPS BETWEEN FINAL TABLES
Employees
Event Payments
Field Name Field Name
Field Name
EmployeeID
First Name EventID PaymentID
Last Name Event Name EventID
Title EventTypeID PaymentAmount
Phone No Location CreditCard Number
Start Date Cardholders Name
Attendees CreditCard ExpDate
End Date
Staffing Required PaymentMethodID
Field Name
Event Description FeeScheduleID
AttendeeID
EmployeeID
First Name
AttendeeID
Last Name
NoOfpeople
Address
City Payment Methods
State
Field Name
Zip
PaymentMethodId
Country
PaymentMethodDesc
Phone No