当前位置:网站首页>Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
2022-07-07 12:15:00 【Rsda DBA_ WGX】
Database system principle and Application Tutorial (010)—— Conceptual model and data model exercises
One 、 Short answer
1、 Explain the following terms
Entity , Entity set , attribute , code , Physical contact diagram (E-R chart ), Data model .
answer :
(1) Entity : Things or concepts that can be distinguished from each other in the real world are called entities . for example : One of the students , A machine , An employee of the company, etc .
(2) Entity set : The set of similar entities is called entity set . for example : A student is an entity , Then all the students managed are entity sets .
(3) attribute : An attribute is an abstract representation of a feature of an entity . for example : Student's name 、 Gender 、 Date of birth 、 nation 、 Political outlook, etc .
(4) code : Attributes or attribute groups that can uniquely identify an entity are called codes . for example : Student ID can uniquely identify a student , Then the student number is the code of the student entity .
(5) Physical contact diagram (E-R chart ):E-R Figure provides a representation of the entity set 、 Properties and contact methods . stay E-R In the figure , Use rectangle to represent entity set , Use ellipses to represent attributes , Use diamonds to represent the relationship between entity sets .
(6) Data model : Data model is the abstraction of data features , The data model is used to represent the record structure and the relationship of records . The most common data includes hierarchical models 、 Mesh model and relational model . Hierarchical models and mesh models are called non relational models .
2、 Detail the three elements of the data model .
answer : The three elements of the data model are : data structure 、 Data manipulation and integrity constraints .
(1) data structure : What kind of structure is the data stored in the database . hierarchy 、 Reticular structures and relationships ( surface ) The data model of the structure is named hierarchical model 、 Mesh model and relational model .
(2) Data manipulation : The data operations that can be carried out in the database mainly include data query and data update ( Insert 、 Delete and modify ), Abbreviation: increase 、 Delete 、 Change 、 check .
(3) Data constraints : Data constraints are a set of data integrity rules . Data integrity rules are the constraints and dependency rules of data and its connections in the data model . for example : Entity integrity in relational data model 、 Referential integrity and user-defined integrity . Data constraints are used to ensure the correctness of data in the database 、 Effective and compatible .
3、 Give three actual departments E-R chart , It requires one-to-one between entities 、 One to many 、 Many to many contact .
answer :
4、 There are several departments in the school , Each department has several classes and teaching and research sections , There are several teachers in each teaching and research room , Some professors and associate professors each bring several graduate students . There are several students in each class , Each student takes several courses , Each course is selected by several students . Please use E-R Draw a conceptual model of the school .
answer :
5、 A factory produces several kinds of products , Each product consists of different parts , Some parts can be used in different products . These parts are made of different raw materials , The materials used for different parts can be the same . These parts are placed in the warehouse according to their different products , Raw materials are stored in several warehouses by category . Please use E-R Picture the products of this factory 、 Spare parts 、 material 、 Conceptual model of warehouse .
answer :
6、 Why are currently used database management systems mostly relational ?
answer : Relational database takes relational model as the organization form of data . The relational model is based on strict mathematics , The main advantage of relational database is the single concept , Access path is transparent to users , Users do not need to understand complex access paths . Users only need to explain what to do , There is no need to explain how to do it , Simple and easy to use . Relational model has gradually replaced hierarchical model and mesh model , It is called the mainstream of database management system .
Two 、 choice question
1、 Which of the following is not the nature of the conceptual model ?(D)
(A) Have rich semantic expression ability (B) Easy to communicate and understand (C) Easy to change (D) The efficiency realized in the computer is high
2、 The data model using two-dimensional tables to represent entities and the relationships between entities is (C).
(A) Mesh model (B) hierarchical model (C) relational model (D) Object oriented model
3、 One machine can process many kinds of parts , Each part can be processed on multiple machines , There is (C) contact .
(A) one-on-one (B) One to many (C) Many to many (D) For one more
4、 The hierarchical model cannot directly represent (C).
(A) One to one contact (B) One to many connection (C) Many to many (D) One to one and one to many contact
5、(B) A model belonging to the information world , It is actually an intermediate level from the real world to the data world .
(A) Data model (B) conceptual model (C)E-R chart (D) relational model
6、 The wrong description of the relational model is (D).
(A) Based on strict data (B)DBMS Most of them use relational data model
(C) One of its characteristics is to use two-dimensional tables to represent relational models (D) Without connection operation DBMS It can also be a relational database system
7、 Candidate code in relation model (C).
(A) It can be composed of any attribute (B) It consists of at most one attribute
(C) It can be composed of one or more attributes whose values can uniquely identify tuples (D) None of the above
边栏推荐
- Summed up 200 Classic machine learning interview questions (with reference answers)
- Complete collection of common error handling in MySQL installation
- 【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
- 超标量处理器设计 姚永斌 第8章 指令发射 摘录
- 【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
- wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
- ENSP MPLS layer 3 dedicated line
- Flet教程之 15 GridView 基础入门(教程含源码)
- Typescript interface inheritance
- Is it safe to open Huatai's account in kainiu in 2022?
猜你喜欢
Zero shot, one shot and few shot
[neural network] convolutional neural network CNN [including Matlab source code 1932]
112. Network security penetration test - [privilege promotion article 10] - [Windows 2003 lpk.ddl hijacking rights lifting & MSF local rights lifting]
30. Feed shot named entity recognition with self describing networks reading notes
《看完就懂系列》天哪!搞懂节流与防抖竟简单如斯~
Hi3516全系统类型烧录教程
<No. 8> 1816. Truncate sentences (simple)
Complete collection of common error handling in MySQL installation
(待会删)yyds,付费搞来的学术资源,请低调使用!
从工具升级为解决方案,有赞的新站位指向新价值
随机推荐
ENSP MPLS layer 3 dedicated line
什么是局域网域名?如何解析?
DOM parsing XML error: content is not allowed in Prolog
[texture feature extraction] LBP image texture feature extraction based on MATLAB local binary mode [including Matlab source code 1931]
[filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation
Introduction and application of smoothstep in unity: optimization of dissolution effect
免备案服务器会影响网站排名和权重吗?
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
Rationaldmis2022 advanced programming macro program
idea 2021中文乱码
[shortest circuit] acwing1128 Messenger: Floyd shortest circuit
《通信软件开发与应用》课程结业报告
平安证券手机行开户安全吗?
Let digital manage inventory
What are the top-level domain names? How is it classified?
Superscalar processor design yaoyongbin Chapter 10 instruction submission excerpt
人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
UP Meta—Web3.0世界创新型元宇宙金融协议
Present pod information to the container through environment variables
Sort out the garbage collection of JVM, and don't involve high-quality things such as performance tuning for the time being