当前位置:网站首页>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
边栏推荐
- Explore cloud database of cloud services together
- Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool
- 110.网络安全渗透测试—[权限提升篇8]—[Windows SqlServer xp_cmdshell存储过程提权]
- 5V串口接3.3V单片机串口怎么搞?
- [extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
- Cenos openssh upgrade to version 8.4
- 【滤波跟踪】捷联惯导纯惯导解算matlab实现
- Is it safe to open Huatai's account in kainiu in 2022?
- 2022 年第八届“认证杯”中国高校风险管理与控制能力挑战赛
- Up meta - Web3.0 world innovative meta universe financial agreement
猜你喜欢
idea 2021中文乱码
【最短路】Acwing1128信使:floyd最短路
110. Network security penetration test - [privilege promotion 8] - [windows sqlserver xp_cmdshell stored procedure authorization]
30. Feed shot named entity recognition with self describing networks reading notes
千人规模互联网公司研发效能成功之路
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool
Complete collection of common error handling in MySQL installation
超标量处理器设计 姚永斌 第10章 指令提交 摘录
随机推荐
2022 8th "certification Cup" China University risk management and control ability challenge
[shortest circuit] acwing 1127 Sweet butter (heap optimized dijsktra or SPFA)
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
Superscalar processor design yaoyongbin Chapter 10 instruction submission excerpt
110. Network security penetration test - [privilege promotion 8] - [windows sqlserver xp_cmdshell stored procedure authorization]
Simple network configuration for equipment management
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
Xiaohongshu microservice framework and governance and other cloud native business architecture evolution cases
Cmu15445 (fall 2019) project 2 - hash table details
数据库系统原理与应用教程(011)—— 关系数据库
EPP+DIS学习之路(1)——Hello world!
The function of adding @ before the path in C #
清华姚班程序员,网上征婚被骂?
NGUI-UILabel
一起探索云服务之云数据库
【全栈计划 —— 编程语言之C#】基础入门知识一文懂
从工具升级为解决方案,有赞的新站位指向新价值
Introduction to three methods of anti red domain name generation
MATLAB實現Huffman編碼譯碼含GUI界面
Visual studio 2019 (localdb) \mssqllocaldb SQL Server 2014 database version is 852 and cannot be opened. This server supports version 782 and earlier