1. Trang chủ
  2. » Luận Văn - Báo Cáo

project report database of product flow in a fashion shop

17 0 0
Tài liệu được quét OCR, nội dung có thể không chính xác
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Database Of Product Flow In A Fashion Shop
Tác giả Nguyễn Xuân Thộ, Đỗ Trung Dũng, Trương Trọng Sang, Nguyễn Á Châu
Người hướng dẫn Prof. Trương Cụng Đoàn
Trường học Đại Học Quốc Gia Hà Nội
Chuyên ngành INS2080 — Database Systems
Thể loại Project Report
Năm xuất bản 2023
Thành phố Hanoi
Định dạng
Số trang 17
Dung lượng 3,46 MB

Nội dung

After investigating all about the origin and how the items were made, me conducted research on the shop’s Facebook page ad website to find out the way they handle their business with cus

Trang 1

II”

VNU-INTERNATIONAL SCHOOL ĐẠI HỌC QUỐC GIA HÀ NỘI

Vietnam National University, Hanoi

INS2080 — DATABASE SYSTEMS PROJECT REPORT TABASE OF PRODUCT FLOW IN A FASHION SHOP

Group information Nguyễn Xuân Thé - 21070106

Đỗ Trung Dũng — 21070495

Trương Trọng Sang — 21070799

Nguyễn Á Châu - 21070701

Lecturer

Prof Trương Công Đoàn

———————-— —›«>*†*»c— €©=————

Hanoi - 2023

Trang 2

MEMBERS’ CONTRIBUTION

No | Student Student ID Work Contribution Note

name

Code | Report | Slide

(50%) | (30%) | (20%)

1 Truong | Case research, gather real 30 40 30

Trong | information for the Database,

Sang | Convert ERD into relational

schema, Proofread and edit the

report, Design some useful

reports and information for real

usage

Trung | information for the Database,

Ding | Insert Data into SQL script,

Proofread and edit the report,

Design some useful reports and

information for real usage

A Chau | information for the Database,

Give out solutions for the useful

reports and information for real

usage, Proofread and edit the

report

Xuân | information for the Database,

Thé Design ERD, Write ERD report,

build physical database base on

relational schema and real data,

including writing the SQL seript

and insert some data, Conclude

the project

Trang 3

Table of Notations and Abbreviations

Trang 4

List of Tables

v © final

» E1 deliver

> FE items

> 1 manufacturer

» E1 shippe

> Fy shipping_company

> = shop

* E supplies

> & trading

In Views

[A Stored Procedures

ep Functions

Trang 5

CONTENTS

Trang 6

Chapter 1: INTRODUCTION

1 About the Organization

Truong Ha fashion shop was first introduced and open for business 2 years ago, most of the store’s products include clothing and sometimes jewelry, but the jewelry business of the shop was not a success so there will be no data whatsoever included in the system The operation of the store is rather simple, the manager buys items from a trustworthy wholesale partner in China and then puts a tracking and authentication tag for after service and to prove that item is a high-quality item from our store afterward, the items will be sold to the customer in Vietnam’s region The business also includes collaboration with a certain shipping company

It was not hard to figure out the database system of the shop since the owner was a very good friend of mine and our team had 3 types of investigation made to clarify the data which afterward used by us to build up parts of this final examination

i —s Interview

We spent 2 hours every day for a whole week to interview the owner of the shop, we asked about where the source of her products was, how was that product made, if it was good to use and if it was from trustworthy and high-quality factures and suppliers

After investigating all about the origin and how the items were made,

me conducted research on the shop’s Facebook page ad website to find out the way they handle their business with customer, or to be exact, how did they sell their items and if the customer come to the shop directly to buy the items or they buy them online and have them delivered to their house

We found out that the shop is now working only on online platforms since the pandemic brought up a very big safety issue, they decided to close the physical shop until the working environment is safer, this is when we

Trang 7

inspect their shipping collaboration more carefully and put it in our database

After looking at the store’s online platforms and its shipping companions, we wanted to inspect further in the flow of the items, would there be any other trading activities of goods after it was bought used by the customer or not In this investigation, we found out the shop supported its clients to buy and trade theirs good after buying it by establishing a trading and reselling the store’s goods community a website and there is no shipping collaboration seen in this part, the customer can offer and deal and trade freely with the website playing the role of a midman to verify the authenticity of the product

3 Business Narrative

The first part that we consider the root of this business is the MANUFACTURER and the SUPPLIERS of the shop, without these two factors, the shop would not be able to operate, the MANUFACTURER has its name and address

to prove that this is a good and verified source of item, then the MANUFACTURER contact with its wholesale partner who will resell to the retail shop — the SUPPLIERS and each supplier will have its own number symbolize for the priority to buy better goods, which SUPPLIER have lower number in the MANUFACTURER’s list will have the better chance to buy good items Many SUPPLIERS provide many ITEMS which have authenticity code and proof of origin And through the SHOP, the ITEMS will be DELIVERED to CUSTOMERS by SHIPPERS who are bound to the SHIPPING COMPANY Afterwards, the CUSTOMERS can through the trading platform, trade the goods to 2NDCUSTOMERS

Trang 8

Chapter 2: ANALYZING AND DESIGNING THE DATABASE

ERD

To draw an ERD, we must first find out all the strong entities and theirs attributes, firstly the strong entities can be observed are MANUFACTURER have attribute name and address, SUPPLIERS have attribute number and phone number, ITEMS have attribute code and origin, SHIPPING COMPANY have attribute shipping code and delivery code, CUSTOMERS have attribute name, address and phone number and finally 2ND CUSTOMERS have attribute name, address and phone number For the part of relationships between them, MANUFACTURER to SUPPLIERS will be one must to maybe many since there must be manufacturer as the source and that source may sell to many suppliers and for the rest of the strong entities, the relationships between them all are many maybe to many maybe since many suppliers provide many items and those items may be shipped to many customers by many shipping company such as GHTK or Be or Extra Shipping and so on and many customers can also trade to many second customers

After expanding the ERD, we can see some more weak entities added in between all the many to many relationships first we have the SHOP weak entities after the expansion of suppliers and items many to many relationships since supplier have to go through shop and the shop will sell items, the shop entity has attribute is its name Followed by the expansion of shipping company and items many to many relationships is the appearance of the weak entity DELIVER since items must be delivered to the shipping company in order to be shipped to the customers, this leads to the appearance of weak entity SHIPPER when expanding many to many relationships of shipping company and customer

Trang 9

Relational Schema

-Firstly, we will list, select the filter information that must be given

-Next, we define the files and relationships between the implementation collectives

-For example, in my ERD, we have:

One MANUFACTURER can have a lot of SUPPLIERS

Trang 10

From SUPPLIERS we can add more unimportant entity is weak entity - SHOP One SUPPLIERS and One ITEMS can have a lot of SHOP

From ITEMS we can add more unimportant entities that are weak entities -

DELIVER

One ITEMS may have a lot of DELIVER

One SHIPPER may have a lot of DELIVER

From SHIPPER we can add more unimportant entity is weak entity - SHIPPING

COMPANY

One SHIPPER may have a lot of SHIPPING COMPANY

One CUSTOMER may have a lot of SHIPPING COMPANY

From CUSTOMER we can add more unimportant entity is weak entity -

RESELLER

One CUSTOMER may have a lot of TRADING

2NDCUSTOMER may have a lot of TRADING

-The next step is to define attributes like primary key, foreign key and bind the attribute for the file and relationship

-For example, in my ERD, we have:

Primary key:

Primary Key

(Manufacturer_Name) Primary

Key (Supplier_Number)

Primary Key (Item_Code)

Primary Key (Shipping Code)

Primary Key (Customer_Name)

Primary Key (Second_Customer_Name)

Forgein key:

Foreign Key (Manufacturer_Name) references SUPPLIERS

Foreign Key (Item_Code) references ITEMS

Trang 11

Foreign Key (Supplier_Number) references SUPPLIERS

Foreign Key (Shipping Code) references

SHIPPING_COMPANY Foreign Key (Customer_Name)

references CUSTOMER

Foreign Key (Second_Customer_Name) references SECOND_CUSTOMER Finally, draw an ERD diagram that identifies the type associations of the jobs performed in the schema

3 Some real data and SQL scripts

Trang 12

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INSERT

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

INTO

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

TRADING

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES ('

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

INSERT INTO SECOND_CUSTOMER VALUES

VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES VALUES

'Lê Thị Hiền ",

‘Truong Binh Uyên Diễm ', '186 Phan Rang, Ninh Thuan', Ø1688887788) ;

(259876, 'Nguyễn Nguyên Hồng', ‘anh long’); (3248930, ‘Ta Ai Nhi', ‘anh hai‘);

(204893, ‘Mach Qué Linh’, ‘anh thai‘);

(1567823, ‘Trinh Đông Tuyền', *anh hoàng");

(122234, ‘Nguyén Anh Lé', ‘anh hiéu');

(235867, ‘Tram Thu Hường', ‘anh difc’);

(587903, ‘Pham Xuan Léc' , 'anh mạnh");

(740009, 'Hồ Thế Vinh', 'anh lợi');

(988606, 'Nguyễn Công Hoán', 'anh cường'); (690000, 'Nguyễn Nhật Huy', 'chị hoa');

(780000, 'Quang Đức Khải', 'chị hải');

(457712, ‘Luc Xuan Bình', 'chị hẳng');

(655422, ‘Van Ngọc Khôi', ‘chi huyền");

(984453, 'Phạm Minh Khang’, ‘chi hạnh"); (365824, ‘Dinh Van Hién', ‘chi linh');

(3652887, ‘VG Thi Diém My ', ‘chi lan’); (1236056, 'Lê Thị Miền ', 'chị hòa');

(985314, 'Trương Bình Uyên Diễm ', 'chị lương');

(628021, ‘Bach Thién Hạnh', 'chị liên"); (655154, 'Lê Ngọc Sơn ', ‘chi nhàn");

liguyễn Nguyên Höng', '123 Binh Thang village', 923654728);

'Tạ Ái Nhỉ', '671 Pho Hoang Hoa Tham', 6437616458);

Mach Qué Linh', ‘Thanh Ba Townlet’, 0973885335);

Trịnh Đông Tuyền", “1 Nguyen Chỉ Thanh Street", 9932658741);

Hguyễn Ánh Lệ', '182/2/6 Nguyen Huu Canh S†', 8956478521);

‘Tram Thu Hudng', ‘46 Bich Cau, Quoc Tu Giam Ward’, @956326581) ; Pham Xuan L6éc', ‘Quarter 4, Binh Hung Hoa Ward’, 0962357841);

Hồ Thế Vinh', ‘ Be Van Dan Street’, 0956215877);

Iguyễn Công Hodn’, “123 Hoang Van Thu Street’, 9932664588);

Nguyễn Nhật Huy’, ‘Binh Thanh Dist, Ho Chi Minh’, 8326547892);

"Quang Đức Khải', ‘51B Tran Hung Dao Street’, @932587413):

Luc Kuan Binh’, ‘58 Nguyen Tri Phuong St‘, 0955662378);

Pham Minh Khang’, ‘16 Ho Ba Kien street’, 0965632584) ; Dinh Van Hién', 'Thi Xa Ha Tien,Tinh Kien Giang’, 9903720805) ;

Võ Thị Diễm My ', ‘Xa Thong Nhat, Huyen Krongbuk, Dac Lac’, 9913748604);

*D1/2 Lac Long Quan, P.19, Q.TB', 0912243263);

Bạch Thiện Hạnh', '283 Khu I, Bỉnh Đỉnh, Xuân Đinh, Xuan Loc, Đong Nai",

Lê Ngọc Sơn ', '74 Nguyen Hue, Thanh pho Quy Nhon, Tỉnh Bình Đỉnh ', 888072097) 9999274392) ; ;

Trang 13

INSERT INTO SHIPPING_COMPANY VALUES (1, “Extra Shipping’);

INSERT INTO SHIPPING_COMPANY VALUES (2, ‘Shopee Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (3, ‘GHTK');

INSERT INTO SHIPPING COMPANY VALUES (4, ‘Be');

INSERT INTO SHIPPING_COMPANY VALUES (5, 'Grab');

INSERT INTO SHIPPING_COMPANY VALUES (6, ‘Aha Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (7, ‘Alo Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (8, 'Shipping');

INSERT INTO SHIPPING_COMPANY VALUES (9, ‘Long Luong Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (19, ‘SSS Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (11, ‘Aladin Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (12, ‘Express Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (13, ‘ADC Ship’);

INSERT INTO SHIPPING_COMPANY VALUES (14, ‘CherryLove Ship’);

INSERT INTO SHIPPING _COMPANY VALUES (15, ‘GDC');

INSERT INTO SHIPPING_COMPANY VALUES (16, ‘TombowArt');

INSERT INTO SHIPPING_COMPANY VALUES (17, ‘FlowerKnows');

INSERT INTO SHIPPING_COMPANY VALUES (18, '*RtopR');

INSERT INTO SHIPPING_COMPANY VALUES (19, ‘Marvy');

INSERT INTO SHIPPING_COMPANY VALUES (28, ‘Holicshipping');

INSERT INTO SUPPLIERS VALUES (@1, @123456789, 'Anh Tiến','Nhà máy dệt Phương Đông"); INSERT INTO SUPPLIERS VALUES (02, @798451358, "Chi Giang’, ‘Nha may dét Phương Đông'); INSERT INTO SUPPLIERS VALUES (@3, @256648715, ‘Anh Mạnh','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (64, 6325678954, 'Chú Hải','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (@5, 0315884478, 'Bác Lành','Nhà máy dệt Phương Đông"); INSERT INTO SUPPLIERS VALUES (66, 9215475145, ‘Em Duyên','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (87, 6956231467, 'Em Hà', ‘Nha máy dệt Phuong Đông'); INSERT INTO SUPPLIERS VALUES (@8, 9956478125, 'Em Hải','Nhà máy dệt Phuong Đông'); INSERT INTO SUPPLIERS VALUES (@9, 6956453288, 'Em Hẳng','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (10, 6963256644, 'Em Huy','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (11, 9954486223, ‘Em Hương','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (12, 6965583211, 'Em Linh','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (13, 0943216581, 'Em Lan','Nhà máy dệt Phuong dng"); INSERT INTO SUPPLIERS VALUES (14, 9956562463, 'Em Luyến','Nhà máy dệt Phương Đông"); INSERT INTO SUPPLIERS VALUES (15, 0987874541, 'Em Đức','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (16, 9962457861, ‘Em Đăng','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (17, 6979783678, 'Cô Nhài','Nhà máy dệt Phương Đông'); INSERT INTO SUPPLIERS VALUES (18, 6937357959, 'Anh Mạng','Nhà máy dệt Phương Đông"); INSERT INTO SUPPLIERS VALUES (19, 9975567117, 'Chị Thảo','Nhà máy dệt Phương Đông"); INSERT INTO SUPPLIERS VALUES (20, 0968874849, 'Anh Mạnh','Nhà máy dệt Phương Đông");

Ngày đăng: 21/07/2024, 14:00

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN