Professional Documents
Culture Documents
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
CREDITCARD
PAYMENT-DT NUMBER
EVENT
ID
1 FEE SCHEDULE
PHONE ID
NO
LAST EVENT
TYPEID LOCATION STAFFING
FIRSTNAM TITLE
E EVENT
NAME START END DATE
EMPL DATE
FO EVENT
OY ID
EVENT R DESCRIPTIO
EVENT
ID EMPLOYEE ID
1
1 MA M 1 1
O
EVENTS FEE SCHEDULES
EMPLOYEES NA
M
N
GES
M
FEE
SCHEDULE
No OF
PEOPLE
O
RGA BASE EVET ID
NIZE D ON FEE
AMOUNT
1
FEE
ATTENDEES DESCRIPTI
ON
1
PHONE
EVENT TYPES
NO
DESCRIPTION
A COUNTRY
TTE EVENT TYPE
ADDR
NDE ID
ESS STATE
E ID
FIRST
NAME LAST CITY ZIP
NAME
TABLES
Numbers of Tables: 6
Event Types [Entity] Fee schedules
Fee Schedules [Entity]
Event Types FeeScheduleID
EventTypeID
EventID
Description
Fee Description
Fee Amount
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
Employees
Attendees EmployeeID
AttendeeID First Name
First Name Last Name
Last Name Title
Address Phone No
City
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 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
Payment Method
Desc
Creditcard Number
Cardholders Name
Creditcard ExpDate
FeeScheduleID
Attendees Employees
Employees
Attendees EmployeeID
AttendeeID First Name
First Name Last Name
Last Name Title
Address Phone No
City
State
Zip
Country
Phone No
TABLES AFTER 3NF
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 Employees
Employee
Attendees EmployeeID
AttendeeID First Name
First Name Last Name
Last Name Title
Address Phone No
City Payment Methods
State PaymentMethodID
Zip
Country Payment methodDesc
Phone No Credit Cards
Payment Methods
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:
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 Employees
Employee
Attendees EmployeeID
AttendeeID First Name
First Name Last Name
Last Name Title
Address Phone No
City Payment Methods
State PaymentMethodID
Zip
Country Payment methodDesc
Phone No
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