当前位置:网站首页>Conceptual model design of the 2022 database of tyut Taiyuan University of Technology
Conceptual model design of the 2022 database of tyut Taiyuan University of Technology
2022-07-06 13:12:00 【Lala Lulu^_^】
Question 2
A description of a database is given in the question , Let's draw the database E-R chart , And indicate the attribute on the figure 、 The type of connection
(“ And indicate the attribute on the figure 、 The type of connection ” This sentence appears in the exam , Just treat him as if he didn't ; Because attributes are ellipses , Type is one-on-one , One to many , Many to many , These two things are paintings E-R Pictures must be drawn , In fact, from another perspective ,ER The attributes of a graph are divided into composite attributes 、 Multi valued attribute 、 Derived properties 、 Optional attribute , Contact properties , But we don't test so deep )
Talking about : This question should be a free question , I won't go into details , I believe everyone will , According to the requirements of the topic , Like high school Chinese reading , Find the entities in the topic ( Rectangle )、 Draw the properties next to the rectangle ( The ellipse ), Find out the relationship ( The diamond / The predicate in the question ) Then use according to the meaning of the topic 1、n、m Just connect , It should be noted that you should not use both adjacent many to many lines n Express , You have to use one n, One use m

Attach two examples to practice by yourself , If not, go back to the blog “ Question 1 E-R Graph to relational model ”, If you can't make a comment yet
example 1. Books in a library are stored in multiple libraries by category , For readers to borrow . There are several administrators in each library ( These administrators no longer manage other stacks ). Please design a database to store relevant information . among :
(1) The properties of the library include the library number 、 Location 、 Area etc. , The attributes of books include book numbers 、 Title 、 Publishing house, etc , The attributes of readers include reader number 、 full name 、 Unit, etc , The attributes of the administrator include employee number 、 Employee name and other attributes ; Please specify other properties by yourself .(2) The attributes that describe the borrowing relationship include lending date and return date
Try to draw the Library 、 The book 、 readers 、 Administrators and their contacts E-R chart ( It is required to indicate the relevant attributes and contact types ), And transform it into a relational pattern ( It is required to indicate the main code ).
Explain :
1. Library management database
(1) Library management database E-R The graph is as follows :

(2) The transformation to relational mode is as follows :
Library ( Library number , Address , area )
workers ( Employee number , full name , Age , Library number )
The book ( Book number , Title , author , Press. , Library number )
readers ( Reader number , full name , Company )
Borrow ( Reader number , Book number , Borrowing date , Return date )
2. Suppose a department's database contains the following information :
Employee information : Employee number 、 full name 、 Address and department .
Department Information : Department name 、 Manager's name 、 Telephone .
Product information : Product number 、 Product name 、 Price 、 model .
Manufacturer's information : Factory name 、 site of a factory 、 Fax .
In addition, it also includes information about the products sold by the Department and the products produced by the manufacturer .
Try to draw this database E-R chart ( It is required to indicate the relevant attributes and contact types ), And transform it into a relational pattern ( It is required to indicate the main code ).
Explain :
(1) database E-R The graph is as follows :

(2) The transformation to relational mode is as follows :
workers ( Employee number , full name , Address , Department name )
department ( Department name , The manager , Telephone )
product ( Product number , Product name , model , The unit price )
sales ( Department name , Product number )
Manufacturer ( Factory name , site of a factory , Fax )
production ( Product number , Factory name )
边栏推荐
- Ten minutes to thoroughly master cache breakdown, cache penetration, cache avalanche
- 【无标题】
- Inheritance and polymorphism (Part 2)
- MySQL 三万字精华总结 + 面试100 问,吊打面试官绰绰有余(收藏系列
- [rtklib 2.4.3 B34] version update introduction I
- [dry goods] cycle slip detection of suggestions to improve the fixed rate of RTK ambiguity
- The earth revolves around the sun
- 系统设计学习(一)Design Pastebin.com (or Bit.ly)
- [算法] 剑指offer2 golang 面试题3:前n个数字二进制形式中1的个数
- 编辑距离(多源BFS)
猜你喜欢

2022 National Games RE1 baby_ tree

架构师怎样绘制系统架构蓝图?

如何保障 MySQL 和 Redis 的数据一致性?
![[算法] 劍指offer2 golang 面試題2:二進制加法](/img/c2/6f6c3bd4d70252ba73addad6a3a9c1.png)
[算法] 劍指offer2 golang 面試題2:二進制加法
![[GNSS data processing] Helmert variance component estimation analysis and code implementation](/img/4e/ff0334cf9a2a37096778a8c5719a4e.jpg)
[GNSS data processing] Helmert variance component estimation analysis and code implementation

10 minutes pour maîtriser complètement la rupture du cache, la pénétration du cache, l'avalanche du cache

闇の連鎖(LCA+树上差分)

TYUT太原理工大学2022数据库大题之分解关系模式

TYUT太原理工大学2022数据库题库选择题总结

阿里云微服务(三)Sentinel开源流控熔断降级组件
随机推荐
[算法] 剑指offer2 golang 面试题6:排序数组中的两个数字之和
Error: symbol not found
阿里云微服务(二) 分布式服务配置中心以及Nacos的使用场景及实现介绍
Edit distance (multi-source BFS)
几道高频的JVM面试题
Usage differences between isempty and isblank
图书管理系统小练习
[算法] 剑指offer2 golang 面试题1:整数除法
Alibaba cloud microservices (II) distributed service configuration center and Nacos usage scenarios and implementation introduction
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
TYUT太原理工大学2022数据库大题之E-R图转关系模式
初识指针笔记
Introduction and use of redis
Introduction pointer notes
Chromatic judgement bipartite graph
Several high-frequency JVM interview questions
TYUT太原理工大学2022“mao gai”必背
Dark chain lock (lca+ difference on tree)
《软件测试》习题答案:第一章
染色法判定二分图