Create a database project ** Cosmetics database **

Create a database project practical cosmetics database

**This project was done on the principle of database when I was a sophomore, but my understanding of database is not very deep, so it is a bit rudimentary, please don’t dislike it[^1]

Background of the project

It is convenient for manufacturers to produce, consumers to check the authenticity, and the Health Inspection Commission to regularly inspect. We have created a database that can query cosmetics, companies, manufacturers, product approval numbers, product approval dates, and expiration dates for everyone to use.

demand analysis

There are four entities in this database, so four basic tables are created
Product approval company agent
product approval enterprise reposible_unit
The relationship between the four entities
insert image description here

Information Sources

Refer to pharmnet subdatabase information

entity table

1. Product table

insert image description here

2. Company table

insert image description here

3. Agent form

insert image description here

4. List of approval numbers

insert image description here

relational table connection

a. Approval & product

b. Enterprise &product

c. Enterprise & responsible unit

There are two primary keys that are the primary keys of their respective tables

view

information we can see

Company's product list

insert image description here

Approval for each product

insert image description here

Correspondence between the company's agents in various places

insert image description here

Paradigm Analysis

INF 不可分割数据项

2NF非主属性完全依赖于候选码

3NF不存在传递传递

BCNF**

			1非主属性函数完全依赖
			2主属性对不包含的码完全依赖
			3无任何属性完全依赖于非码属性组

Guess you like

Origin blog.csdn.net/weixin_55928972/article/details/130157312