当前位置:网站首页>Database design
Database design
2022-07-24 01:30:00 【Climbing procedural ape】
Include information management requirements ( Store and manage the required data objects in the database ) And data processing requirements : Processing of data objects , Such as query 、 Additions and deletions 、 Statistics and analysis, etc .
Demand analysis
The output of requirement analysis is user requirement specification and data dictionary .

The most important thing in a database is a data dictionary , Contain data item , data structure , Data flow , data storage , Treatment process .
Data flow is already the transmission path of data structure in the system . Data items or data structures form a data structure , The data items are described as follows :
| Data item | Student number |
| Definition | Uniquely identify each student |
| Alias | Student number |
| type | Character |
| length | 9 |
| Value range | 0000 00 000 to 9999 99 999 |
| Value meaning | front 4 Bits indicate the year of enrollment of the student , The first 5 The first 6 The number of your major department , The last three digits are numbered in sequence , for example 201615008 |
| Logical relationship with other data items | The value of the student number determines the value of other data items |
The data flow is described as follows :
| Data flow | Physical examination results |
| explain | The final report of the student's physical examination |
| Data stream source | physical examination ( Treatment process ) |
| Where does the data flow go | approval ( Treatment process ) |
| form | { Student number ,{ routine blood test },{ Urine routine },{ Blood biochemistry },{ electrocardiogram },{B super },{ Other }} |
| Average flow | 200/ God |
| Peak traffic | 400/ God |
Data storage description :
| Number | 1 |
| Data store name | Student registration form |
| explain | Record the basic situation of students |
| Input data stream | Every semester 5000 |
| Output data stream | Every semester 5000 |
| form | { Student number , full name , Gender , Age ,{ Student achievement },{ Physical examination results },{ Reward and punishment records }} |
| Data volume | Every year, 10000 Zhang |
| Access method | Random access + According to the professional 、 system 、 Class printing |
Process description : yes physical design Input and Performance evaluation Principle of
| Treatment process | Assign dormitories |
| explain | Assign student dormitories to all students |
| Input | Student , dormitory |
| Output | Dormitory arrangement |
| Handle | After the freshmen check in , Assign student dormitories to all freshmen |
| requirement | After the freshmen check in , Assign student dormitories to all freshmen , A student can only be arranged in one dormitory , The living area of each student shall not be less than 6 Square meters , Arrange the dormitory for freshmen, and the processing time shall not exceed 15 minute |
The following is EA Tool drawing data flow diagram , Search for dataflow that will do .

notes :EA You can treat a process as an element , Introduce to other flow charts
Conceptual structural design
ER chart 、 Extended ER chart 、UML The representation of the figure , Feeling UML The class diagram of is more appropriate and explicit .
The division principle of entities and attributes ( Classify the data received by mobile phones in the demand analysis stage 、 organization ):
(1) The real world can be treated as an attribute , Try to treat... As an attribute
(2) As attribute , Can no longer have the properties that need to be described
(3) Attributes cannot be associated with other entities ,ER The connection shown in the figure is the connection between entities


Logical structure design
take
Continuous updating
边栏推荐
猜你喜欢

Code reading methods and best practices

Review of HCIA

A little understanding of encoder

How safe is Volvo XC90? 5 seats and 7 seats are available

面试题之:ArrayList和LinkedList有哪些区别

Data warehouse construction - ods floor

Hcip day 5 notes

Matlab绘制双坐标图(全网最简单)

Research on retinal vascular segmentation based on GAN using few samples

Disadvantages of win11
随机推荐
SCM learning notes 1 -- data download and environment construction (based on Baiwen STM32F103 series tutorials)
Hcip network type, PPP session, data link layer protocol
C byte array and class mutual conversion
Vessel Segmentation in Retinal Image Based on Retina-GAN
小熊派简介和环境搭建
Polymer synthesis technology
Exchange 2013 SSL证书安装文档
免费学习机器学习交易的资源
Draw a two coordinate diagram with MATLAB (the simplest in the whole network)
After the interview with 20 or 30 companies, there is no offer that you can't get after the Android interview
Arm architecture and programming 4 -- serial port (based on Baiwen arm architecture and programming tutorial video)
Data warehouse construction - ods floor
"Guanghetong AI intelligent module sca825-w" with full AI performance accelerates the era of e-commerce live broadcast 2.0
SCM learning notes 6 -- interrupt system (based on Baiwen STM32F103 series tutorials)
HCIP第十一天笔记
Exchange 2010通配符SSL证书安装文档
BAT代码:批量文件下划线重命名
c语言支持yaml配置文件通用方法
Disadvantages of win11
OSPF(第四天笔记)