Vous êtes sur la page 1sur 16

Student ID: F07421269

Student Name: Yuan Han


Hand in date: 14/12/2007

Database Systems D2

Content
Introduction………………………………………………page 1

Database design and implementation…………………….page 1

Logical data structure……………………………….........page 8

Data flow diagram………………………………………..page 9

User guild………………………………………………..page 12

Conclusion………………………………………………page 18
Introduction
Unistone Ltd is a dynamic jewellery manufacturer employing 330 staff.
The overall aim of this assignment is to design and implement a database
that holds information about Unistone Ltd production management
system and to analysis how the system works, also to explain how it
makes benefit to the company. A general description of the enterprise,
along with its basic operations and information needs, is contained in this
document.

Database design and implementation:


Nowadays, there are many companies and industries use computer to
help them to manage their business data, therefore the large number of
data is required to be stored safely and effectively. Database system is a
key element in this production management system. It helps customers to
easy to know what they are buying and how much they are paying, also it
makes easy comparison to other products; and the main function is to
allows the company to better control with its sales data and information
gathering, and to make a right decision for its business strategy. The
Database management system (DBMS) is in which data is stored in the
form of tables and the relationship among the data is also stored in the
form of tables.

customers
customerNO Surnname Lastname Age Address Phone Email
(primary
key)

Orders

OrderNO ProductNO customerNO Orderdate Quantity


(primary
key)

Product

ProductNO Productname singlePrice


(primary key)

Product Stock Room

ProductNO Quantity
(primary key)

According to the activities the company is taking, we can allocate


those tables into two activities pool, which are sales activity and supply
activity. The tables called customers, order, product, and product stock
room, are used to support for the sales activities contain all the relevant
information and transaction. The customers table is created to include the
details of a single customer with its surname, lastname, age, address,
email address, phone number and a given unique customer number as
fields of the table. The given customer number is set as a primary key.
Therefore, it is unique and based on when searching a specific customer.
Product table contains all the products the company offer with their
product name, single price and a given unique product number. And the
quality of each product is recorded in product stock room table. Both
tables (product and product stock room) are linked together according to
the unique product number, which is set as primary key in both tables.
The order table records all the sale activities are generated. An order is
made by a specific customer for a specific product. The order table
contains fields of a given order number as a primary key, product number
related to the unique product number in the product table, customer
number related to the unique customer number in the customers table, the
quantity field records the quantity of an product that is made for each
order. The order date records the generation date of the order. Basically,
order table records all the orders, and the details of relevant customers
and products can be gain through searching their customer number and
product number.

Suppliers

SupplierNO Surnname Lastname Address Phone Email


(primary
key)

Purchase Material

MaterialNO PurchaseDate Quantity


(primary key)

Raw Material

MaterialNO MaterialName
(primary key)
Material stock room

MaterialNO Quantity
(primary key)

The suppliers, purchase material, raw material, material stock room tables
are used to support the supply activities. Suppliers table contains details
of every single supplier with a unique identification number ----
supplierNO, and its surname, lastname, address, phone number, email
address. Purchase material table records the details of any purchase of
material generation including a given unique purchaseNo, materialNo
tells what material is purchased and material can be identified in raw
material table. Purchase date records the date of purchase and the quantity
records the number of material purchased. Raw material table records
name of materials in the field of materialName, and each material is
given an unique identify number which is recorded in the field called
materialNo. With the same materialNo for each material, the quantity of
each material in stock room is recorded in material stock room table.
Basically, a purchase activity consists of information of supplier,
material, generation date, and quantity of the material for the purchase. In
the purchase material table, materialNo and supplierNo are recorded, and
supplier and material information can be identified through looking up
the materialNo and supplierNo in the material table and supplier table
respectively.

(LDS)

Suppliers Customers
Product
Orders
Product
Purchase Raw Material
Material
stock room Material
stock room
This LDS shows the relationship between all factors involved in the
database. From the left top section, a supplier can be involved in many
purchases, and provide many raw materials. However, one purchase may
refer to many raw materials, but one raw material only refers to one
purchase. One material stock room contains many raw materials and one
product may require many different raw materials. Therefore, in the
relationship between raw materials with suppliers, purchase, material
stock room and product are all many to one relationship. From the right
top section, one customer can may many orders, but an order can only
refer to one customer. An order may required many product, and one
product stock room contains many different products. Therefore, on the
graph above, the relationship between product with order and product
stock room both are many to one either.

DFD
1.0
Customer check
Order made
Custome
rs
Product sale to
Customer
Payment made

2.0
Product check

1.0 customer check

Existing Check Update


customer credit credit
rate rate
1.11 1.111 1.112

New Insert
custome custome
r r details
1.12 1.121

2.0 product check

2.1 2.2
Product Product
identification availability
(Identify the check
ordered (compare
product) quantity in
stock and
the required
quantity)

DFD shows the data process when a customer orders for a product. The
customer’s information will be checked in the database. If the customer is
existed in the database, its credit rate will be checked and updated after
the sale finish. If the customer is not existed in the database, its
information will be recorded into the database. Afterward, we need to
identify what product the customer requires for. Then, we need to check
the availability of the required product to see if we have enough products
to meet customer’s requirement. After that, the order is approved to
make. Then the product will be delivering to customer after payment is
made.

1.0
company
Material availability
Material supply check

Making order

Order finish
supplier

2.0
Update material
stock room

1.0 material availability check


1.1 Maki
Check Lack of material Identify the ng
material in supplier of order
stock room the material

2.0 update material room


Order
2.1 finish
Update the
quantity of
purchased material
in material stock
room table
Before the company decides to purchase certain material, they have to get
a signal tells certain material is need. Afterward, identify the supplier of
the material and an order is made to the supplier. After the supplier
receives the order, and process it and supply the material to the company.
When the material is received, database will be updated. Then the order
finish.

User guild:

Home page simply lists 6 options for user to select. The customer detail
enable users to search, update, delete existing customer using query. And
insert new customer by entering relevant information. The product order
links to the details of orders which have been made. Existing orders can
be updated, listed through query, and new orders can be made and save
by entering details. Product in stock links to the page shows details of
each product including the quantity in stock. They can be listed through
query according to certain criteria. Again, the supplier information allow
user to edit the details of every single supplier including adding new
supplier. The material order links to the page which shows the details of
every single purchase of material. The material in stock is similarly with
the product in stock, it allow users to view the details of every materials.

After clicking on the customer detail, a page called customer information


will be shown. In this page, users are able to list, update and delete
customers by clicking on the query and typing query statement according
to certain criteria. Otherwise, users are able to insert new customers by
clicking on the inset button after filling all the information. The reset
button is used to reset all the text boxes to blank.
An order may require many of deferent products. When inserting a new
order, there must be a selection of master action which tells how many
products are required in this order. Customers fill the product number,
quantity, and all correlative information of order in this form, then press
insert, the data will be stored in the database, once customer credit has
been checked, and we will shipping the product to customers as soon as
possible.
“Product in stock” allows users to update details of product in the stock
room including adding new product, editing and deleting existing
product. The query button allows users to search and list the details of
required product by typing the query statement. The criteria may be based
on the product number or quantity. The insert button allows users to add
new product, a unique product number and the quantity is required.
It is similar with the customer information page. The insert button allows
users to insert new suppliers. Details of the suppliers are required to enter
(fill all the text boxes). The query button allows users to listed, updated
and deleting existing suppliers.
New Material order shows how the factory to purchase raw materials,
how many they need to purchase and what material they need. By type in
the gap of material number, material name to choose what kind of
material they want to buy, and insert material number, quantity and
purchase date into the database to let suppliers to know how many of the
material and when they want it. To keep supplier number and purchase
date in the database is good for factory’s future use, because factory
always need a better supplier to offer they needs. This is from all aspect
which includes price, quality and credibility.

Conclusion
To sum up, from this course work, I have learned a lot from database
design; Logical thinking; concept of table; concept of form; concept of
page; concept of primary key and how they link to each other. Also I
have learned some more about how business running in world wide.
Especially on internet, I have known the relationship between customers
and company; the relationship between company and suppliers, and how
they serve to each other.

Vous aimerez peut-être aussi