2016
Case Scenario:
Create a central database for an e-business. This database will be
needed to record order, shipping and payment transactions for the
globeMAAP store, which is a store which sells equipment for water
sports.
Submitted by:
Amogh Dhaliwal
Tao Si Yue
Murun Khosbayar
V Prathyaksha
Program:
Year/Semester:
Year 1 Semester 3
University:
University of Wollongong
Date of Submission:
Tutor:
Table of Contents
1.
Introduction........................................................................................................ - 5 -
2.
Overall Relationship...................................................................................- 6 -
2.2
2.2.1
Business................................................................................................- 7 -
2.2.2
Client.....................................................................................................- 8 -
2.2.3
Finance..................................................................................................- 9 -
2.2.4
Order....................................................................................................- 11 -
2.2.5
Product................................................................................................- 13 -
2.2.6
Service.................................................................................................- 14 -
2.3
Forms......................................................................................................- 16 -
2.3.1
Business..............................................................................................- 16 -
2.3.2
Client...................................................................................................- 17 -
2.3.3
Finance................................................................................................- 18 -
2.4
Query.......................................................................................................- 20 -
2.4.1
Main Query..........................................................................................- 20 -
2.4.2
Query View..........................................................................................- 20 -
2.5
Order.......................................................................................................- 22 -
2.5.1
Order Form..........................................................................................- 22 -
2.5.2
Product................................................................................................- 23 -
2.5.3
Service.................................................................................................- 25 -
2.6
Report......................................................................................................- 26 -
3.
Website............................................................................................................ - 31 -
4.
References.......................................................................................................- 39 -
List of Figures
Figure 1: Relationship Overview................................................................................- 6 Figure 2: Business Table database view...................................................................- 7 Figure 3: Business Table design overview part 1.......................................................- 7 Figure 4: Business Table design overview part 2.......................................................- 7 Figure 5: Client Table database overview..................................................................- 8 Figure 6: Client Table design overview part 1............................................................- 8 Figure 7: Client Table design overview part 2............................................................- 9 Figure 8: Finance Table database overview part 1....................................................- 9 Figure 9: Finance Table database overview part 2..................................................- 10 Figure 10: Finance Table design overview part 1....................................................- 10 Figure 11: Finance Table design overview part 2.....................................................- 11 Figure 12: Order Table database overview..............................................................- 11 Figure 13: Order Table design overview part 1........................................................- 12 Figure 14: Finance Table design overview part 2....................................................- 12 Figure 15: Product Table database overview...........................................................- 13 Figure 16: Product Table design overview part 1.....................................................- 13 Figure 17: Product Table design overview part 2.....................................................- 14 Figure 18: Service Table database overview...........................................................- 14 Figure 19: Service Table design overview part 1.....................................................- 15 Figure 20: Service Table design overview part 2.....................................................- 15 Figure 21: Business Form.......................................................................................- 16 Figure 22: Client Form.............................................................................................- 17 Figure 23: Finance Form part 1...............................................................................- 18 Figure 24: Finance Form part 2...............................................................................- 19 Figure 25: Query SQL view.....................................................................................- 20 Figure 26: Query View 1..........................................................................................- 20 Figure 27: Query View 2..........................................................................................- 21 Figure 28: Order Form.............................................................................................- 22 Figure 29: Product Form part 1...............................................................................- 23 Figure 30: Product Form part 2...............................................................................- 24 Figure 31: Service Form..........................................................................................- 25 Figure 32: Report, Page 1.......................................................................................- 26 Figure 33: Report, Page 2.......................................................................................- 27 Figure 34: Report, Page 3.......................................................................................- 28 Figure 35: Report, Page 4.......................................................................................- 29 -
4
Figure 36: Report, Page 5.......................................................................................- 30 Figure 37: Homepage..............................................................................................- 31 Figure 38: Services.................................................................................................- 32 Figure 39: Lessons Swimming.............................................................................- 32 Figure 40: Lessons Scuba Diving.........................................................................- 33 Figure 41: Lessons Kayaking...............................................................................- 33 Figure 42: Lessons Wind Surfing.........................................................................- 33 Figure 43: Lessons Surfing..................................................................................- 34 Figure 44: FAQ........................................................................................................- 35 Figure 45: Products Overview.................................................................................- 36 Figure 46: Contact Us.............................................................................................- 36 Figure 47: Our Partners...........................................................................................- 37 Figure 48: Our partners: Detailed Information.........................................................- 37 Figure 49: The Team...............................................................................................- 38 -
1.
Introduction
2.
Tables Overview
Business Table
Client Table
Finance Table
Order Table
Product Table
Service Table
Each table consists of a primary key, which unique identifies each record in
the table. Each table is essential to keep a reliable database of customers
and business. Each table is described individually below with supported
figures.
2.1
Overall Relationship
This is the overall relationship between the six tables, with the number 1 for the foreign
key and the infinity symbol for the primary key.
2.2
2.2.1
Business
The Validation rule for the company code is B???, which if typed incorrectly will give us
8
2.2.2
Client
The Client table is a list of all the clients who have made any purchases or enrolled in
any classes.
This table represents all the customers and their contact information.
The Foreign key is Service ID, as our relationship states we have many clients one
service.
The data type for each field name is short text except for the clients contact which is
number
2.2.3
The Validation rule for clients ID is C????, and the the input mask is C 000;0
If incorrect code is typed then the validation message appears, giving us an error.
Finance
10
The finance table keeps a record of the money transactions and shipping transactions
on the purchases.
The Finance ID distinguishes every record.
The Primary key is Finance ID as it uniquely identifies each record in the table.
The Foreign key is client ID as there is one client and many payments.
Data type for the finance table are varied accordingly to the field name and
requirement.
11
2.2.4
The Validation rule for finance table is P???? and input mask is P 000;0
When the finance code is typed incorrectly it will give us the validation text error
Order
The order table has the record of the purchases made by each client, the date and total
12
The Input mask for the order table ID is Q0000;0 and validation rule is Q????, which
means that its the rule for inputting the order ID.
If the order ID does not clear the validation rules, we get validation text error.
13
2.2.5
Product
The Product table has the record of all the products sold, and their individual costs,
The product ID uniquely identifies each product and is the primary key.
This table is unique as it has two foreign keys which means it has relationship with
two tables.
The Foreign keys are Clients ID from client table and Company Code from the
business table.
In both the cases the products are many and Client and Business is one.
The Data types of the product table are short text with a exception of price which is
in SG dollar currency
14
2.2.6
The Input mask of the product ID is W 0000;0 and validation rule is W????
If product ID is typed incorrectly then the validation text error gets displayed.
Service
The Service table offers different services for the products, in case of damage,
personal improvement and upgrading. The table also displayed a warranty status
15
The service ID is the primary key as it uniquely identifies each record in this case
each service.
The service table does not have a foreign key, but is directly related to the client
table.
The data type is short text or date depending on the field name.
The Input mask of the service ID is Z 0000;0 and validation rule is Z????
If service ID is typed incorrectly then the validation text error gets displayed.
16
2.3
Forms
2.3.1
Business
In this business form, the company manager of GlobeMAAP can add a new partner
company with its full details into the database by just filling up the details in the textbox.
Table below details illustrates which products are being used by each company.
17
2.3.2
Client
This client form allows the company manager to add their new clients into the database
or delete expired client information from the database. In addition, there is also a subform which display the service type that has been chosen by each client.
18
2.3.3
Finance
In this finance form, the company manager can add and edit clients finance details
which consists of both shipment and payment information about each client
distinguished by certain finance ID.
19
We have included the sub-form in this form to show the linkage between the client
table and the finance table.
20
2.4
Query
2.4.1
Main Query
2.4.2
Query View
As above, in this query clearly illustrates which order ID and how much their shopping
cost is for each clients with their ID numbers and contact e-mail addresses. Query
saves a lot of time for company manager by just running it and analysing instead of
checking each tables independently.
21
For example, by putting (<50) on Criteria under product price, we can see the cheapest
orders first.
22
2.5
Order
2.5.1
Order Form
In this order form, the company manager can add a new order details into the
database by just filling up the textboxes. Table below details show if there is any
duplicated orders for different clients.
23
2.5.2
Product
In this form the company manager is able to view the existing product data in the
database or add a new product details into the database if needed.
24
Since our product table has two foreign keys there are two sub-forms included in this
form.
25
2.5.3
Service
This service form allows the company manager to add a new service record into the
database or delete existing data from the database. Table below details shows which
client has activated that particular service for them.
26
2.6
Report
27
28
29
30
Same as query this report helps company managers to save their time, and there is
also a grand total inside the report which would be very useful for the manager to plan
future financial resources.
31
3.
Website
Website link
http://ts0033.wix.com/globemaap
The homepage gives the customers an overall view about our store. The slide window
on the top part shows some pictures about the water sports. For the bottom part, there
are five sections provided by out store: swimming, scuba diving, kayaking, windsurfing
and surfing. There is also a login and signup section for the customer to become a
member or to purchase.
32
We provide eleven services for the customers that have purchased in our store. All the
details are below each of the service. The customers could enjoy most of the services
with no charge because we provide warranty for our goods. For the lessons, we have
five kinds of lessons for the customers to choose and more information will be on
another page.
The lessons include swimming class, scuba diving class, kayaking class, windsurfing
class and surfing class. All the lessons have 4 or 5 different levels which can fit
different kind of people from the novice to the expert, so the customers can choose the
class base on their ability on water sports.
33
34
The FAQ page has list down several frequently asked questions and answers for the
buyers. They can refer to it whenever facing questions. If the answers provided could
not satisfy them, they can also give us a call or drop an email which the contact details
can be found on the CONTACT US page.
35
On the product page, all the products and prices are shown clearly. The customer can
easily shop on their own.
36
Contact us page includes our contact number, email address, store address and map
location. It also linked to our team details. Other contacts such as Facebook page,
Twitter and Google account are also provided.
37
This Our Partners page shows the information of all the 10 companies that are
cooperating with us. By clicking on the icons, their specific detailed information will be
shown on screen such as company name, email address, contact number and the
name of person in charge.
38
The Team page shows the information of all the employees of our store such as their
name, position, email address and contact number.
39
4.
References