Date post: | 29-May-2018 |
Category: |
Documents |
Upload: | akyadav123 |
View: | 222 times |
Download: | 0 times |
of 16
8/9/2019 Database Systems D2
1/16
Student ID: F07421269
Student Name: Yuan Han
Hand in date: 14/12/2007
Database Systems D2
Content
8/9/2019 Database Systems D2
2/16
Introductionpage 1
Database design and implementation.page 1
Logical data structure.........page 8
Data flow diagram..page 9
User guild..page 12
Conclusionpage 18
8/9/2019 Database Systems D2
3/16
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 akey 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
8/9/2019 Database Systems D2
4/16
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 supplyactivity. 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.
8/9/2019 Database Systems D2
5/16
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)
8/9/2019 Database Systems D2
6/16
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
Material
stock room
Product
Orders
Customers
Raw
Material
Purchase
Material
Product
stock room
8/9/2019 Database Systems D2
7/16
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
Order made
Product sale to
Customer
Custome
rs
1.0Customer check
8/9/2019 Database Systems D2
8/16
Payment made
DFD shows the data process when a customer orders for a product. The
customers 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 customers requirement. After that, the order is approved to
make. Then the product will be delivering to customer after payment is
2.0
Product check
1.0 customer check
Existingcustomer
1.11
Checkcreditrate1.111
Updatecreditrate1.112
Newcustomer1.12
Insertcustomer details1.121
2.0 product check
2.1Productidentification(Identify theordered
product)
2.2Productavailabilitycheck(comparequantity instock andthe requiredquantity)
8/9/2019 Database Systems D2
9/16
made.
Material supply
Making order
Order finish
Before the company decides to purchase certain material, they have to get
company1.0Material availabilitycheck
supplier
2.0Update materialstock room
1.0 material availability check
Lack of material
1.1Checkmaterial instock room
Makingorder
2.0 update material room
2.1Update thequantity of
purchased materialin material stockroom table
Orderfinish
Identify thesupplier ofthe material
8/9/2019 Database Systems D2
10/16
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
8/9/2019 Database Systems D2
11/16
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.
8/9/2019 Database Systems D2
12/16
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.
8/9/2019 Database Systems D2
13/16
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.
8/9/2019 Database Systems D2
14/16
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.
8/9/2019 Database Systems D2
15/16
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 factorys 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
8/9/2019 Database Systems D2
16/16
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.