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]
Table of contents
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
Information Sources
Refer to pharmnet subdatabase information
entity table
1. Product table
2. Company table
3. Agent form
4. List of approval numbers
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
Approval for each product
Correspondence between the company's agents in various places
Paradigm Analysis
INF 不可分割数据项
2NF非主属性完全依赖于候选码
3NF不存在传递传递
BCNF**
1非主属性函数完全依赖
2主属性对不包含的码完全依赖
3无任何属性完全依赖于非码属性组