Tour Operator Agency Database

Topics: Data modeling, Database normalization, Database Pages: 10 (650 words) Published: October 16, 2014


Tour Operator Agency Database
Jeremy Clark
Dr. Larisa Bulysheva
CIS 515 – Strategic Plan For Database Systems
August 14, 2013

Tour Operator Agency Database
Week 6 Assignment 5Mike Jennings
Enhanced Database Management Strategy Proposal
An efficient data structure design requires a thorough analysis of both the rules a business follows and the relational business objects that allow the production of output for the organization. An efficient model of data should as well require little maintenance and oversight if built properly. Designing a data model promoting data redundancy and normalization provides a design that requires minimal modification to handle. (Tupper 2011) For your organization I propose the following normalization steps using the table information provided to achieve normalized data table structures. 1. Figure 1 and Figure 2 represent the data in tabular format with no cells having a null value and no repeating groups. The primary keys haven’t yet been identified. Figure 1

Figure 2

2. For defining the primary keys I split the CustomerTour table into two tables Customer and Tour respectively. But I already had a Tour table at this time containing Tour cost information. Because of this I renamed this Tour table containing cost information to TourCost and named the other table containing the TourSelected, NumberInTour and SoldBy attributes to Tour as shown in Figures 3, 4, and 5. 3. After the primary keys were defined each attribute for each table was then dependent on the primary key for that table respectively. For the Customer and Employee tables in Figure 3 single attribute primary keys were used to uniquely identify each customer and employee. Figure 3

Employee and Customer Table

Figure 4
TourCost Table

4. For the TourCost table in Figure 4 the primary key that I chose I made composite to uniquely identify the attributes related to pricing. The composite primary key TourName,TourDate,TourSeason for the TourCost table allows unique data entry for each tour location, on any date, during any season.

For the Tour table in Figure 5 the primary key that I chose I made composite to uniquely identify the attributes related to the purchase of a tour. The composite primary key CustomerID,EmployeeID,TourName,TourDate,TourSeason for the Tour table allows this table to almost act like an invoice for each tour sale. Figure 5

Tour Table

5. My tables were in 1NF and because I had no partial dependencies my tables were now in 2NF Proposed Naming Convention and Entity Attributes
The table names “Employee”, “Customer”, “Tour”, and “TourCost” accurately define the data represented within each table. To better associate the data in the Tour with its operational purpose I will rename to TourInvoice. For this organization I’ve gone back and renamed several entities to better associate the entity to the table it belongs to. For example the FirstName attribute in the EMPLOYEE table was renamed to EMPFirstName to associate this first name attribute with the EMPLOYEE FirstName and not Customer First Name which was changed as well. See the captures below for entity and attribute names and their data types.

Figure 6
Naming Convention for Employee and Customer Table

Figure 7
Naming Convention for TourCost and TourInvoice Table

Proposed Entity Relationship Model
Figure 8

Many Customers complete one invoice (TourInvoice) at the sale of a tour. One TourInvoice is assigned a PricePerson contained within the TourCost Table. PricePerson is dependent on the TourSeason. Many TourInvoices are advertised by one Employee and this number is associated to the EmpToursSold attribute.

Construct a query that can be used on a report for determining how many days the customer’s invoice will require payment if total amount due is within 45 days. SELECT CUSTOMER.CUSTID, CUSTOMER.FIRSTNAME, CUSTOMER.LASTNAME,...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Tour Operator Agency Database. Essay
  • Tour Operator Agency datbase Essay
  • Tour Operator Research Paper
  • Tour Operator Research Paper
  • Database Essay
  • European Tour Operators Essay
  • Tour Operator Essay
  • Tour Operator Essay

Become a StudyMode Member

Sign Up - It's Free