VIETNAM NATIONAL UNIVERSITY HO CHI MINH CITY
UNIVERSITY OF ECONOMICS AND LAW
PROJECT REPORT
Subject: Databases
Subject name:
Market Online Management Project
Lecturers: Lam Hong Thanh
TP.HCM, Tháng 05 Năm 2021
download by :
MEMBERS OF GROUP
Number
1
2
3
4
5
download by :
TABLE OF CONTENTS
ABSTRACT.................................................................................................................4
CHAPTER I: OVERVIEW OF THE TOPIC................................................................5
I. WHY CHOOSING THIS SUBJECT?....................................................................5
II. PROJECT OBJECTIVES.....................................................................................5
III. EXPECTED RESULTS.......................................................................................6
IV. PRACTICAL SIGNIFICANCE...........................................................................6
1. For users..........................................................................................................6
2. For my team.....................................................................................................6
CHAPTER II: INTRODUCTION................................................................................7
I. MODEL PARTICIPANT........................................................................................7
II. GENERAL DESCRIPTION OF THE COMPANY..............................................7
III. GENERAL BUSINESS PROCESS.....................................................................7
1. Import process.................................................................................................7
2. Sales process....................................................................................................8
IV. MAIN FUNCTION OF THE BUSINESS MODEL............................................8
1. Import process.................................................................................................8
2. Sales process.................................................................................................. 10
V. MAIN FUNCTION OF APP............................................................................... 12
CHAPTER III: ENTITY RELATIONSHIP DIAGRAM............................................ 14
I. IDENTIFIES ENTITIES AND ATTRIBUTES.................................................... 14
II. RELATIONSHIP OF ENTITIES........................................................................ 17
III. ENTITY RELATIONSHIP DIAGRAM (ERD)................................................. 21
CHAPTER IV: LOGICAL DATABASE MODEL...................................................... 23
CHAPTER V: PHYSICAL DATABASE MODEL..................................................... 24
I. DATA TYPES...................................................................................................... 24
II. DATABASE CREATION STATEMENT............................................................ 35
1. Command to create database.......................................................................... 35
2. Create a foreign key....................................................................................... 83
CHAPTER VI: SQL QUERY..................................................................................... 85
download by :
ABSTRACT
The demand of manage information is highly in every organization.
Management information effectively help reduce cost, time and avoid redundancy
data. To understand deeply how benefit a database can bring to an organization and
the process to build a database, we decided to build a Market Online Management
Project. With the aim to help clinics easily in managing their business, take care of
customers, … We know within building this project, there will be mistakes that we
can solve but it is the chance for us to achieve knowledge and skills which are
precious tools in the future and we will make this project as good as we can.
download by :
CHAPTER I: OVERVIEW OF THE TOPIC
I. WHY CHOOSING THIS SUBJECT?
In the past, most of us would buy food mainly from wholesale markets, buying
agents in big centers or in markets and department stores. Today, the development of the
digital economy has changed the business perception of the whole society. It can be seen
that all products and services can be introduced and "sold" on the Internet. Moreover,
customers increasingly need to know information about the origin and origin of
agricultural products that ensure quality and safety for health or not? Therefore, in
addition to improving food quality, brand communication, and packaging improvement to
affirm quality reputation, managers need a more effective communication channel and
app design is the ultimate solution. selected best. Owning a sales app will help businesses
attract more potential customers through the internet. According to the latest statistics,
Vietnam currently has about 41 million internet users, accounting for about 45% of the
country's population, most of which are young people with high shopping needs.
Moreover, nowadays, the online trend is developing day by day and is buying by many
users. About one third of the population uses the internet to search and look up
information about services and products. Therefore, when you have a sales app, your
business has attracted a number of customers on the internet. Without the app, you would
have lost an opportunity to sell and give that opportunity to competitors.
II. PROJECT OBJECTIVES
Promote sales activities anytime, anywhere. Customers will not have to come
directly to the store or purchase according to the store's operating hours but can buy at
any time. This helps to maximize sales opportunities, boost sales and facilitate
customers to shop, making them more satisfied.
Reduce business costs. Having a sales app will help save a lot of costs for store
rental, warehouse and human resource costs. In addition, having a sales app also
makes the payment of customers convenient and easier. Customers can pay via ATM
cards, through electronic payment methods.
download by :
Having a separate sales app for the business will also help improve the
reputation and brand value of the business. The face of a business on the internet is the
app and the colors, features and information on the app will fully reflect the image of
the business with the customer, contributing to affirm the company's brand value in
the hearts of the public.
III. EXPECTED RESULTS
Design database for the application of ordering products through the app.
Build management and business processes for the app model.
IV. PRACTICAL SIGNIFICANCE
1. For users
When the software was built, it became easier for the housewives to shop and
cook. Specifically, through each form of software including customer management,
food import and export management (export here means providing food to customers).
Thanks to that, the manager can comprehensively monitor the data and use it properly,
thereby helping the usage process and supporting decision making in the best way.
2. For my team
Understanding the process of building a database from idea creation, modeling,
data collection, storage and operation on SQL.
Designing a software based on the available data.
Project is the basis that my group can continue to develop in the following
subjects.
download by :
CHAPTER II: INTRODUCTION
I. MODEL PARTICIPANT
Suppliers
Customers
Shipping unit
Bank
Employee
II. GENERAL DESCRIPTION OF THE COMPANY
APP acts as an intermediary to help seller's products reach consumers
conveniently and quickly on the website. In order to provide clean food to consumers
quickly and conveniently, APP has main departments including Sales and Marketing,
and Accounting Division IT department and warehouse management department.
III. GENERAL BUSINESS PROCESS
1. Import process
download by :
Procedure
Step 1
Step 2
Step 3
Step 4
2. Sales process
Procedure
Step 1
Step 2
Step 3
Step 4
IV. MAIN FUNCTION OF THE BUSINESS MODEL
1. Import process
download by :
- Plan and contract with supplier
Staff sends purchase request information to Seller including: real name,
product, quantity to be purchased, delivery schedule.
download by :
The import department contact with the Supplier and notify the plan to the
relevant to update information and sign a purchase contract. Then, the contract
information will be saved. And in the Contract database, each contract will be
managed with a contract code individual.
- Check the goods and compare
The warehouse department keeper relies on the purchase order or request form
to compare inventory information from the Warehouse database and at the same time
check their quality
- Make an inventory receipt
When the goods inspection is completed, all paperwork and receipt request will
be transferred to the accounting department to compare again before conducting the
transaction and printing the receipt.
Information about the goods entering the warehouse and the receipt will be
saved in the Warehouse database to manage imported products
- Completion of warehousing and payment
The department store keeper performs the stock storage operation and collates
with the sales information, then updates the information on the warehouse card.
Finally, payment is made to the provider. When the payment is successful, invoice
information will be recorded on the basis Corporate Purchase Invoice data.
2. Sales process
download by :
- Customers order
Customers through the information provided about the product and choose to
purchase through the application .
When ordering success, customer order information including order code,
customer code, Order date, product code and will be stored in the Order database to be
controlled.
download by :
- Order process
The system receives order information from the Order database, the company
checks orders and generates inventory information to prepare goods and shipping
Delivery Company.
Export slip information is stored in the Sales Voucher database
- Payment process
The accounting department transfers order information to issues invoices to
customers
- Delivery and processing of returned orders
The company will check the information and issue the same slip with row for
the Delivery company. The company receives the goods and carries out the
communication hang.
The delivery company receives and delivers the delivery. The delivery
company will confirm and send the bill of lading code and update the order status for
the company.
V. MAIN FUNCTION OF APP
Display information and images about the product: customers can feel the
authenticity through many angles of the product as well as reflect to customers partly
the product quality of the company.
For the product evaluation function: customers will have the reference to
decide whether to buy or not. At the same time, this function also helps the company
to manage quality 12 as well as its operation process effectively or not.
Display promotions and offers: to help customers have more opportunities to
access the company's products, especially for new products and outstanding products.
Not only that, promotion activities also aim to promote the product brand as well as
the company's reputation through consumer reviews.
download by :
Advanced product search and filtering function: Because the volume of
products is relatively large, customers often have the need to filter out a list of products
they want to buy, providing a better experience for users. trust and appreciate. instead
they have to be frustrated by wasting hours searching for the product they want.
Display related products: so that customers can refer more and increase the
ability to buy more products, an indispensable e-commerce app to display additional
products, reference products, products Other customers also buy …
Service experience: provides customers the option to add products to cart,
create a list of favorite products.
Show recipes : Not only provides clean, fresh and high quality ingredients, the
app also gives customers standard recipes to make family meals more delicious and
enjoyable. In addition to familiar Vietnamese dishes, the app also updates recipes from
famous chefs to get the richest menu for customers to choose from.
download by :
CHAPTER III: ENTITY RELATIONSHIP DIAGRAM
I. IDENTIFIES ENTITIES AND ATTRIBUTES
Entity
Attribu
Supplier
SupplierID
SupplierNam
Address
PhoneNumb
Email
Product
Employee
.
EmployeeID
DepartmentI
Position
LastName
FirstName
Address
PhoneNumb
Email
HireDate
Salary
*Position:
Manager
EmployeeOn
EmployeeOf
Manager
ManagerID
ManagerNam
Employee
Onl
EmployeeOn
ManagerID
EmployeeOf
f
EmployeeOf
ManagerID
Department
DepartmentI
DepartmentN
download by :
Contract
ContractID
ContractTim
SupplierID
SigningDate
QualityProd
antityProduc
ValueContra
ManagerID
Contract
Detail
ContractID
ContractTim
LineNumber
ProductID
QuantityPro
UnitPrice
VAT
TotalAmoun
WarehouseL
ist
WarehouseID
InventoryNa
Location
InventoryLis
t
WarehouseID
ProductID
QuantityPro
Product
ProductID
ProductNam
UnitPrice
ContractID
Goods
Receipt
Note
ReceiptNote
ceiptTime
SupplierID
EmployeeOf
Goods
Receipt
ReceiptNote
ceiptNotTim
Note
Detail
LineNumber
ProductID
QuantityPro
UnitPrice
VAT
TotalAmoun
WarehouseID
Customer
CustomerID
CustomerNa
ddress
PhoneNumb
Account
PassWord
Order
OrderID
OrderTime
CustomerID
Order
Detail
OrderID
OrderTime
LineNumber
CustomerID
ProductID
QuantityPro
Goods
Delivery
Note
DeliveryNot
DeliveryTim
OrderID
CompanyDe
Goods
Delivery
Note
Detail
DeliveryNot
DeliveryTim
e
LineNumber
QuantityPro
UnitPrice
TotalAmoun
ProductID
Invoice
InvoiceID
InvoiceTime
OrderID
CustomerID
Invoice
Detail
InvoiceID
InvoiceTime
LineNumber
ProductID
QuantityPro
UnitPrice
TotalAmoun
Delivery
Company
CompanyID
CompanyNa
Address
Email
PhoneNumb
Delivery
Status
DeliveryID
DeliveryTim
Status
CompanyID
Returned
Goods
Receipt
Note
ReturnNoteI
ReturnTime
DeliveryNot
CustomerID
Returned
Goods
Receipt
ReturnNoteI
ReturnTime
LineNumber
Note
DeliveryNot
Detail
ProductID
QuantityPro
UnitPrice
Reason
Refund
WarehouseID
II. RELATIONSHIP OF ENTITIES
Name
Relationship
Cardinality
Relationship
Description
download by :
R1
Supplier – Contract
R2
Contract – ContractDetail
R3
Supplier – GoodsReceiptNote
R4
GoodsReceiptNote – Goods
Receipt Note Detail
R5
Department – Employee
R6
Manager – EmployeeOnl
R7
Manager – EmployeeOff
R8
EmployeeOff – GoodsReceipt
Note
R9
WarehouseList – Goods
ReceiptNoteDetail
R10
ContractDetail – Product
R11
InventoryList – Warehouse List
R12
InventoryList – Product
R13
Customer – Order
R14
Order – OrderDetail
R15
Order - Invoice
R16
Invoice – InvoiceDetail
R17
InvoiceDetail – Goods
DeliveryNoteDetail
R18
GoodsDeliveryNote – Goods
DeliveryNoteDetail
R19
DeliveryCompany – Goods
DeliveryNote
R20
DeliveryCompany – Delivery
Status
R21
Customer – Invoice
R22
GoodsDeliveryNote – Returned
GoodsReceivedNote
R23
ReturnedGoods ReceivedNote –
ReturnedGoodsReceived
NoteDetail
R24
InventoryList – Returned
GoodsReceivedNoteDetail
III. ENTITY RELATIONSHIP DIAGRAM (ERD)
download by :