首页 大连交通大学《数据库原理及应用》刘金玲版(56课时)习题参考答案

大连交通大学《数据库原理及应用》刘金玲版(56课时)习题参考答案

举报
开通vip

大连交通大学《数据库原理及应用》刘金玲版(56课时)习题参考答案大连交通大学《数据库原理及应用》刘金玲版(56课时)习题参考答案 大连交通大学《数据库原理及应用》(56课时)习题参考答案 第一章 1-1 文件系统阶段的数据管理有哪些特点, 答:文件系统阶段主要有5个特点:数据以“文件”形式长期保存;数据的逻辑结构与物理结构有了区别;文件组织已多样化;数据面向应用;对数据的操作以记录为单位。 1-2 文件系统阶段的数据管理有些什么缺陷,试举例说明。 答:主要有3个缺陷:数据冗余;数据不一致性;数据联系弱。 例如学校里教务处、财务处、保健处建立的文件中都有学生详细资料...

大连交通大学《数据库原理及应用》刘金玲版(56课时)习题参考答案
大连交通大学《数据库原理及应用》刘金玲版(56课时)习题参考答案 大连交通大学《数据库原理及应用》(56课时)习题参考答案 第一章 1-1 文件系统阶段的数据管理有哪些特点, 答:文件系统阶段主要有5个特点:数据以“文件”形式长期保存;数据的逻辑结构与物理结构有了区别;文件组织已多样化;数据面向应用;对数据的操作以记录为单位。 1-2 文件系统阶段的数据管理有些什么缺陷,试举例说明。 答:主要有3个缺陷:数据冗余;数据不一致性;数据联系弱。 例如学校里教务处、财务处、保健处建立的文件中都有学生详细资料,如联系电话,家庭住址等。这就是“数据”冗余;如果某个学生搬家,就要修改3个部门文件中的数据,否则会引起同一数据在3个部门中不一致;产生上述问题的原因是这3个部门的文件中数据没有联系。 1-3 数据库阶段的数据管理有哪些特色? 答:主要有5个特点:采用数据模型可以表示复杂的数据结构;有较高的数据独立性; 为用户提供了方便的用户接口;提供了4个方面的数据控制功能;对数据的操作以数据项为 单位,增加了系统的灵活性。 1-4 什么是数据独立性?在数据库中有哪两级独立性? 答:数据独立性是指应用程序与DB的数据结构之间的相互独立。在物理结构改变时,尽量不影响应用程序,称为物理独立性;在逻辑结构改变时,尽量不影响应用程序,称之为逻辑数据独立性。 1-5 试解释DB、DBMS和DBS三个概念。 答:DB是长期存储在计算机内、有组织的、统一管理的相关数据的集合。 DBMS是位于用户与0S之间的一层数据管理软件,它为用户或应用程序提供访问DB的方法。 DBS是实现有组织地、动态地存储大量关联数据、方便多用户访问的计算机硬件、软件 和数据资源组成的系统,即采用数据库技术的计算机系统。 1-6 SQL Server 2005有哪些数据类型, 答:SQL Server中数据类型分为整型、浮点型、二进制数据型、逻辑型、字符型、文本型、图形型、日期时间型、货币型、自定义类型、可变数据类型和表数据类型。 1-7 列举SQL Server 2005中新增的主要功能。 答:SQL Server 2005中新增的主要功能有: ? Notification Services增强功能; ? Reporting Services增强功能,其中包括:报表功能的增强功能、Reporting Services 设计 领导形象设计圆作业设计ao工艺污水处理厂设计附属工程施工组织设计清扫机器人结构设计 时增强功能、Reporting Services可编程性的增强功能、Reporting Services 可管理性和部署的增强功能; ? 新增的Service Broker以实现SQL Server中的消息传递方面具有以下优势:高伸缩性、消息协调、排序和锁定、集成数据库数据、集成数据库安全性; ? 数据库引擎增强功能; ? 数据访问接口方面的增强功能; ? SQL Server Analysis Services(SSAS)的增强功能; ? Integration Services的增强功能; ? 在可管理性、可用性、可编程性、移动性、可伸缩性和性能方面提供了改进。 ? 工具和实用工具增强功能; 1-8 SQL Server 2005的实用程序和常用工具有哪些, 第1页 答:SQL Server 2005给出的常用应用程序和实用工具有:企业管理器、查询分析器、商业智能开发平台、SQL Server分析器、SQL Server 2005数据库引擎优化程序、SQL Server 配置管理器等。 第二章 2-1 名词解释 逻辑数据 物理数据 联系的元数 1:1联系 1:N联系 M:N联系 数据模型 概念数据模型 外模式 概念模式 内模式 外模式/模式映象 模式/内模式映象 数据独立性 物理数据独立性 逻辑数据独立性 答:逻辑数据:指程序员或用户用以操作的数据形式。 物理数据:指存储设备上存储的数据。 联系的元数:与一个联系有关的实体集个数,称为联系的元数。 1:1联系:如果实体集El中每个实体至多和实体集E2中的一个实体有联习,反之亦然,那么El和E2的联系称为“l:1联系”。 1:N联系:如果实体集El中每个实体可以与实体集E2中任意个(零个或多个)实体有联系,而E2中每个实体至多和El中一个实体有联系,那么El和E2的联系是“1:N联系”。 M:N联系:如果实体集El中每个实体可以与实体集E2中任意个(零个或多个)实体有联系,反之亦然,那么El和E2的联系称为“M:N联系”。 数据模型:能表示实体类型及实体间联系的模型称为“数据模型”。 概念数据模型:独立于计算机系统、完全不涉及信息在计算机中的表示、反映企业组织所关心的信息结构的数据模型。 外模式:是用户用到的那部分数据的描述。 概念模式:数据库中全部数据的整体逻辑结构的描述。 内模式:DB在物理存储方面的描述。 外模式/模式映象:用于定义外模式和概念模式之间数据结构的对应性。 模式/内模式映象:用于定义概念模式和内模式之间数据结构的对应性。 数据独立性:应用程序和DB的数据结构之间相互独立,不受影响。 物理数据独立性:在DB的物理结构改变时,尽量不影响应用程序。 逻辑数据独立性:在DB的逻辑结构改变时,尽量不影响应用程序。 2-2 逻辑记录与物理记录、逻辑文件与物理文件有哪些联系和区别? 答:逻辑数据是用户用以操作的数据形式,是抽象的概念化数据。物理数据是实际存放在存储设备上的数据。 逻辑数据与物理数据在结构上可以差别很大,需通过两级映象来进行数据传输和格式转换。 从以上的解释可以看出,逻辑记录和逻辑文件是用户在程序中使用的记录和文件,而物理记录和物理文件是指磁盘上的记录和文件。逻辑记录、文件与物理记录、文件在结构、组成上可以有很大的差异,而数据库管理软件就是通过三级结构两级映象来实现逻辑数据与物理数据之间的转换。 2-3 试述ER模型、层次模型、网状模型、关系模型和面向对象模型的主要特点。 答:ER模型直接表示实体类型及实体间联系,与计算机系统无关,充分反映用户的需求,用户容易理解。 层次模型的数据结构为树结构,记录之间联系通过指针实现,查询较快,但DML属于过程化的语言,操作复杂。 第2页 网状模型的数据结构为有向图,记录之间联系通过指针实现,查询较快,并且容易实现M:N联系,但DML属于过程化的语言,编程较复杂。 关系模型的数据结构为二维表格,容易为初学者理解。记录之间联系通过关键码实现。DML属于非过程化语言,编程较简单。 面向对象模型能完整描述现实世界的数据结构,具有丰富的表达能力,能表达嵌套、递归的数据结构。但涉及的知识面较广,用户较难理解,这种模型尚未普及。 2-4 数据之间的联系在各种结构数据模型中是怎么实现的? 答:在层次、网状模型中,数据之间的联系通过指针实现的;在关系模型中,数据之间联系通过外键和主键间联系实现的;在面向对象模型中,数据之间嵌套、递归联系通过对象标识符(OID)实现的。 2-5 DB的三级模式结构描述了什么问题,试详细解释。 答:DB的三级模式结构是对数据的三个抽象级别,分别从外部(用户)级、概念级和内部级去观察数据库。 外部级是用户使用的局部数据库的逻辑结构,其描述称为外模式。 概念级是DB的整体逻辑结构,其描述称为概念模式。 内部级是DB的物理结构,其描述称为内模式。 2-6 试述概念模式在数据库结构中的重要地位。 答:数据按外模式的描述提供给用户,按内模式的描述存储在磁盘中,而概念模式提供了连接这蘧级的相对稳定的中间观点,并使得两级的任何一级的改变都不受另一级的牵制。 2-7 什么是数据独立性,其目的是什么, 数据库独立性是指应用程序与DB的数据结构之间相互独立。其目的是在物理结构改变或逻辑结构改变时,尽量不影响应用程序。 第三章 1 名词解释: 3- 关系模式 关系实例 属性 元组 超键 候选键 主键 外键 实体完整性规则 参照完整性规则 答:关系模式:是对关系的描述,包括模式名、诸属性名、值域名和模式的主键。 关系实例:关系模式具体的值,称为关系实例。 属性:即字段或数据项,与二维表中的列对应。属性个数,称为元数。 元组:即记录,与二维表中的行对应。元组个数,称为基数。 超键:能惟一标识元组的属性或属性集,称为关系的超键。 候选键:不含有多余属性的超键,称为候选键。 主键:正在使用的、用于标识元组的候选键,称为主键。 外键:属性集F是模式S的主键,在模式R中也出现,那么称F是模式R的外键。 实体完整性规则:实体的主键值不允许是空值。 参照完整性规则:依赖关系中的外键值或者为空值,或者是相应参照关系中某个主键值。 3-2 为什么关系中的元组没有先后顺序,且不允许有重复元组, 答:由于关系定义为元组的集合,而集合中的元素是没有顺序的,因此关系中的元组也譬没有先后的顺序(对用户而言)。这样既能减少逻辑排序,又便于在关系数据库中引进集合论的理论。 每个关系模式都有一个主键,在关系中主键值是不允许重复的。如果关系中有重复元组,那么其主键值肯定相等,起不了惟一标识作用,因此关系中不允许有重复元组。 3-3 外健值何时允许为空,何时不允许为空, 第3页 答:在依赖表中,当外键是主键的组成部分时,外键值不允许为空;否则外键值允许为 空。 3-4 笛卡尔积、等值连接和自然连接三者之间有什么区别, 答:笛卡儿积是一个基本操作,而等值连接和自然连接是组合操作。 设关系R的元数为r,元组个数为m;关系S的元数为s。,元组个数为n。 那么,R×S的元数为r+s,元组个数为m×n; ×n; R S的元数也是r+s,但元组个数小于等于miθj R S的元数小于等于r+s,元组个数也小于等于m×n: 3-5 设有关系R和S,如图3.18所示。 S R A B C A B C 3 6 7 3 4 5 2 5 7 7 2 3 7 2 3 4 4 3 图3.18 关系R和S 计算R?S,R-S,R?S,R×S,π(S),σ(R),R S,R S。 3,2B<'5'2<2 S.A S.B S.C R?S A B C R.A R.B R.C A B C R×S R-S 3 6 7 3 6 7 3 4 5 3 6 7 2 5 7 3 6 7 7 2 3 2 5 7 7 2 3 2 5 7 3 4 5 4 4 3 4 4 3 2 5 7 7 2 3 A B C R?S 3 4 5 7 2 3 3 4 5 7 2 3 7 2 3 7 2 3 π(S) C B 3,2 4 4 3 3 4 5 A B C (R) σB<’5’5 4 4 4 3 7 2 3 7 2 3 3 2 4 4 3 R S A B C R S R.A R.B R.C S.A S.B S.C 7 2 3 2<2 7 2 3 3 4 5 B’23’?SEX=’M’ ? π(σ(SC C)) CNAME,TEACHERS#=’S3’ ? π(σ(S SC C)) SNAMESEX=’F’?TEACHER=’LIU’ ? π(C)-π(σ(S SC)) C#C#SNAME=’WANG’ ? π(σ(SC×SC)) 11=4?2?5 ? π(C (π(SC)?π(S))) C#,CNAMES#,C#S# ? π(SC)?π(σ(C)) S#,C#C#TEACHER=’LIU’ 3-8 在3.7题的三个关系中,用户有一查询语句:检索数学系的学生选修计算机系开设 的课程的课程名和任课教师姓名。 ? 试写出该查询的关系代数表达式。 ? 试写出该查询优化的关系代数表达式。 ? 画出该查询初始的关系代数表达式的语法树。 ? 使用3.5.3节的优化算法,对语法树进行优化,并画出优化后的语法树。 解:? π(σ(S SC C)) CNAME,TEACHERDEPT=‘数学系’ ? 设L1=π(σ(S)),L2=π(SC),则优化的关系代数表达式为: S#DEPT=‘数学系’S#,C# π(σ(π(σ((L1×L2)×C)))) CNAME,TEACHERSC.C#=C.C#SC.C#S.S#=SC.S# 第5页 ? 查询初始的关系代数表达式可表达为: π(σ(π(σ((S×SC)×C)))) CNAME,TEACHERDEPT=‘数学系’LS.S#=SC.S#?SC.C#=C.C# 此处L为S、SC、C中的全部属性(公共属性只取一次)。 π CNAME,TEACHER σ DEPT=’数学系’ π L σ S.S#=SC.S#?SC.C#=C.C# × × C S SC ? 优化后的语法树为 π CNAME,TEACHER σ SC.C#=C.C# × π C SC.C# σ S.S#=SC.S# × π π S# S#,C# σ SC DEPT=’数学系’ S 3-9 为什么要对关系代数表达式进行优化, 答:关系代数表达式由关系代数操作组合而成。操作中,以笛卡尔积和连接操作最费时间,并生成大量的中间结果。如果直接按表达式书写的顺序执行,必将花费很多时间,并生成大量的中间结果,效率较低。在执行前,由DBMS的查询子系统先对关系代数表达式进行优化,尽可能先执行选择和投影操作,以便减少中间结果,节省时间。 优化工作是由DBMS做的,用户书写时不必关心优化一事,仍以简练的形式书写。 习题4 4-1 名词解释 基本表 视图 实表 相关子查询 联接查询 嵌套查询 交互式SQL 嵌入式SQL 游标 答: 基本表:实际存储在数据库中的表,称为基本表。 视图:是从基本表或其他视图中导出的表,它本身不独立存储在数据库中,也就是数据库中只存放视图的定义而不存放视图的数据。 第6页 实表:是对基本表的别称。 相关子查询:SELECT语句嵌套时,子查询中查询条件依赖于外层查询中的值,因此子 查询要反复求值供外层查询使用。这种子查询称为相关子查询。 连接查询:查询时要从多个基本表中提取数据,此时把多个基本表写在同一层的FROM 子句中,这种查询形式称为连接查询。 嵌套查询:查询时要从多个基本表中提取数据,此时把多个基本表分别放在不同层次 上的FROM子句中,这种查询形式称为嵌套查询。 交互式SQL:在终端交互方式使用的SQL语言。 嵌入式SQL:嵌入在高级语言的程序中使用的SQL语言。 游标:游标是与某一查询相联系的符号名。游标有游标关系和游标指针两层含义。在 游标打开时,游标(指针)指向查询结果的第一个记录之前。 4-2 对于教务管理数据库的三个基本表 S(SNO,SNAME, SEX, AGE,SDEPT) SC(SNO,CNO,GRADE) C(CNO,CNAME,CDEPT,TNAME) 试用SQL的查询语句表达下列查询: ? 检索LIU老师所授课程的课程号和课程名。 ? 检索年龄大于23岁的男学生的学号和姓名。 ? 检索学号为200915146的学生所学课程的课程名和任课教师名。 ? 检索至少选修LIU老师所授课程中一门课程的女学生姓名。 检索WANG同学不学的课程的课程号。 ? ? 检索至少选修两门课程的学生学号。 ? 检索全部学生都选修的课程的课程号与课程名。 ? 检索选修课程包含LIU老师所授课程的学生学号。 解: ? SELECT C#,CNAME FROM C WHERE TEACHER=’LIU’; ? SELECT S#,SNAME FROM S WHERE AGE>23 AND SEX=’M’; ? SELECT CNAME,TEACHER FROM SC,C WHERE SC.C#=C.C# AND S#=’200915146’ ? SELECT SNAME (连接查询方式) FROM S,SC,C WHERE S.S#=SC.S# AND SC.C#=C.C# AND SEX=’F’ AND TEACHER=’LIU’; 或: SELECT SNAME (嵌套查询方式) FROM S WHERE SEX=’F’AND S# IN (SELECT S# FROM SC WHERE C# IN (SELECT C# 第7页 FROM C WHERE TEACHER=’LIU’)) 或: SELECT SNAME (存在量词方式) FROM S WHERE SEX=’F’ AND EXISTS(SELECT* FROM SC WHERE SC.S#=S.S# AND EXISTS(SELECT * FROM C WHERE C.C#=SC.C# AND TEACHER=’LIU’)) ? SELECT C# FROM C WHERE NOT EXISTS (SELECT * FROM S,SC WHERE S.S#=SC.S# AND SC.C#=C.C# AND SNAME=’WANG)); ? SELECT DISTINCT X.S# FROM SC AS X,SC AS Y WHERE X.S#=Y.S# AND X.C#!=Y.C#; SELECT C#.CNAME ? FROM C WHERE NOT EXISTS (SELECT * FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE S#=S.S# AND C#=C.C#)); ? SELECT DISTINCT S# FROM SC AS X WHERE NOT EXISTIS (SELECT * FROM C WHERE TEACHER=’LIU’ AND NOT EXISTS (SELECT * FROM SC AS Y WHERE Y.S#=X.S# AND Y.C#=C.C#)); 4-3 试用SQL查询语句表达下列对4.2题中教务管理数据库的三个基本表S、SC、C查 询: ? 统计有学生选修的课程门数。 ? 求选修4号课程的学生的平均年龄。 ? 求LIU老师所授课程的每门课程的学生平均成绩。 ? 统计每门课程的学生选修人数(超过10人的课程才统计)。要求输出课程号和选修 人数,查询结果按人数降序排列,若人数相同,按课程号升序排列。 第8页 ? 检索学号比WANG同学大,而年龄比他小的学生姓名。 ? 检索姓名以WANG打头的所有学生的姓名和年龄。 ? 在SC中检索成绩为空值的学生学号和课程号。 ? 求年龄大于女同学平均年龄的男学生姓名和年龄。 ? 求年龄大于所有女同学年龄的男学生姓名和年龄。 解: ? SELECT COUNT(DISTINCT C#) FROM SC; ? SELECT AVG(AGE) FROM S,SC WHERE S.S#=SC.S# AND C#=’4’AND SEX=’F’; ? SELECT C.C#,AVG(GRADE) FROM SC,C WHERE SC.C#=C.C# AND TEACHER=’LIU’; ? SELECT C#,COUNT(S#) FROM SC GROUP BY C# HAVING COUNT(*)>10 ORDER BY 2 DESC,1; ? SELECT SNAME FROM S WHERE S#>ALL(SELECT S# FROM S WHERE SNAME=’WANG’ AND AGE(SELECT AVG(AGE) FROM S WHERE SEX=’F’); ? SELECT SNAME,AGE FROM S WHERE SEX=’M’AND AGE>ALL(SELECT AGE FROM S WHERE SEX=’F’); 4-4 试用SQL更新语句表达对4.2给出的教务管理数据库中三个基本表S、SC、C进行 第9页 如下更新操作: ? 往基本表S中插入一个学生元组(‘200912143’,‘张晶’,21)。 ? 在基本表S中检索每一门课程成绩都大于等于80分的学生学号、姓名和性别,并把 检索到的值送往另一个已存在的基本表STUDENT(SNO,SNAME,SEX)。 ? 在基本表SC中删除尚无成绩的选课元组。 ? 把张成民同学在SC中的选课记录全部删去。 把选修高等数学课程中不及格的成绩全部改为空值。 ? ? 把低于总平均成绩的女同学成绩提高5%。 ? 在基本表SC中修改4号课程的成绩,若成绩小于等于75分时提高5%,若成绩大于 75分时提高4%(用两个UPDATE语句实现)。 解: ? INSERT INTO S(S#,SNAME,AGE) VALUES(‘200912143’,’张晶’,21); ? INSERT INTO STUDENT(SNO,SNAME,SEX) SELECT S#,SNAME,SEX FROM S WHERE S# IN (SELECT S# FROM SC WHERE 80<=ALL(SELECT GRADE FROM SC GROUP BY S#)); ? DELETE FROM SC WHERE GRADE IS NULL; ? DELETE FROM SC WHERE S# IN(SELECT S# FROM S WHERE SNAME=’张民’) ? UPDATE SC SET GRADE=NULL WHERE GRADE<60 AND C# IN(SELECT C# FROM C WHERE CNAME=’高等数学’); ? UPDATE SC SET GRADE=GRADE*1.05 WHERE S# IN(SELECT S# FROM S WHERE SEX=’F’) AND GRADE<(SELECT AVG(GRADE) FROM SC); ? 用两个UPDATE语句实现: UPDATE SC SET GRADE=GRADE*1.04 WHERE C#=’4’AND GRADE>75; 第10页 UPDATE SC SET GRADE=GRADE*1.05 WHERE C#=’4’AND GRADE<=75; 注意:这两个UPDATE语句的顺序不能颠倒。 4-5 假设某“仓库管理”关系模型有下列五个关系模式: 零件PART(PNO,PNAME,COLOR,WEIGHT) 项目PROJECT(JNO,JNAME,JDATE) 供应商SUPPLIER(SNO,SNAME,SADDR) 供应P_P(JNO,PNO,TOTAL) 采购P_S(PNO,SNO,QUANTITY) ? 试用SQL DDL语句定义上述五个基本表,并说明主键和外键。 ? 试将PROJECT、P_P、PART三个基本表的自然联接定义为一个视图VIEW1, PART、P_S、SUPPLIER三个基本表的自然联接定义为一个视图VIEW2。 ? 试在上述两个视图的基础上进行数据查询: ? 检索上海的供应商所供应的零件的编号和名字。 ? 检索项目J4所用零件的供应商编号和名字。 解: ? CREATE TABLE PART (PNO CHAR(6),PNAME CHAR(10) NOT NULL,COLOR CHAR(6),WEIGHT FLOAT(6),PRIMARY KEY(PNO)); CREATE TABLE PROJECT (JNO CHAR(6),JNAME CHAR(12)NOT NULL,DATE DATE,PRIMARY KEY(JNO)); CREATE TABLE SUPPLIER (SNO CHAR(8),SNAME CHAR(12)NOT NULL,SADDR VARCHAR(30),PRIMARY KEY(SNO)); CREATE TABLE P_P (JNO CHAR(6),PNO CHAR(6),TOTAL INTEGER,PRIMARY KEY(JNO,PNO); FOREIGN KEY(JNO) REFERENCES PROJECT(JNO), FOREIGN KEY(PNO) REFERENCES PART(PNO)); CREATE TABLE P_S (PNO CHAR(6),SNO CHAR(8),QUANTITY INTEGER,PRIMARY KEY(PNO,SNO) FOREIGN KEY(PNO) REFERENCES PART(PNO), FOREIGN KEY(SNO) REFERENCES SUPPLIER(SNO)); ? CREATE VIEW VIEWl AS SELECT A.JNO,JNAME,DATE,C.PNO,PNAME,COLOR,WEIGHT,TOTAL FROM PROJECT A,P_P B,PART C WHERE A.JNO=B.JNO AND B.PNO=C.PNO; CREATE VIEW VIEW2 AS SELECT A.PNO,PNAME,COLOR,WEIGHT,C.SNO,SNAME,SADDR,QUANTITY FROM PART A,P_S B,SUPPLIER C WHERE A.PNO=B.PNO AND B.SNO=C.SNO; ?? SELECT PNO,PNAME FROM VIEW2 WHERE SADDR LIKE ’上海,’; 第11页 ? SELECT SNO,SNAME FROM VIEWl,VIEW2 WHERE VIEWl.PNO=VIEW2.PNO AND JNO=’J4’; 4-6 对于教务管理数据库中基本表SC,已建立下列视图: CREATE VIEW S_GRADE(SNO,C_NUM,AVG_GRADE) AS SELECT SNO,COUNT(CNO),AVG(GRADE) FROM SC GROUP BY SNO; 试判断下列查询和更新是否允许执行。若允许,写出转换到基本表SC上的相应操 作: ? SELECT * FROM S_GRADE ? SELECT SNO,C_NUM FROM S_GRADE WHERE AVG_GRADE>80; ? SELECT SNO,AVG_GRADE FROM S_GRADE WHERE C_NUM>(SELECT C_NUM FROM S_GRADE SNO=’200912121’); ? UPDATE S_GRADE SET C_NUM=C_NUM+1 WHERE SNO=’200915122’ ? DELETE FROM S_GRADE WHERE C_NUM>4; 答:? 允许查询。相应的操作如下: SELECT SNO,COUNT(CNO) AS C_NUM,AVG(GRADE) AS AVG_GRADE FROM SC GROUP BY SNO; ? 允许查询。相应的操作如下: SELECT SNO,COUNT(CNO)AS C_NUM FROM SC GROUP BY SNO HAVING AVG(GRADE)>80; ? 允许查询。相应的操作如下: SELECT SNO,AVG(GRADE) AS AVG_GRADE FROM SC GROUP BY SNO HAVING COUNT(CNO)>(SELECT COUNT(CNO) FROM SC GROUP BY SNO HAVING SNO=’200912121’); ? 不允许。C_NUM是对SC中的学生选修课程的门数进行统计,在未更改SC表时,要在视图S_GRADE中更改门数,是不可能的。 ? 不允许。在视图S_GRADE中删除选修课程的门数在4门以上的学生元组,势必造成 第12页 SC中这些学生学习元组的删除,这不一定是用户的原意,因此使用分组和聚合操作的视图,不允许用户执行更新操作。 4-7 预处理方式对于嵌入式SQL的实现有什么重要意义, 答:此时宿主语言的编译程序不必改动,只要提供一个SQL函数定义库,供编译时使用。预处理方式只是把源程序中的SQL语句处理成宿主语言的函数调用形式。 4-8 SQL的集合处理方式与宿主语言单记录处理方式之间如何协调, 答:用游标机制协调。把SELECT语句查询结果定义成游标关系,以使用文件的方式来使用游标关系。与游标有关的SQL语句有4个:游标定义,游标打开,游标推进,游标关闭。 4-9嵌入式SQL的DML语句何时不必涉及到游标,何时必须涉及到游标, 答:不使用游标的SQL语句有下面两种情况: ? INSERT、DELETE、UPDATE语句,只要加上前缀和结束标志,就能嵌入在宿主语言程序中使用; ? 对于SELECT语句,如果已知查询结果肯定是单元组,也可不必涉及游标操作。 使用游标的SQL语句有下面两种情况: ? 当SELECT语句查询结果是多个元组时,必须用游标机制把多个元组一次一个地传递给主程序处理: ? 对游标指向元组进行修改或删除操作时,也涉及到游标。 4.10 用T-SQL语句创建教务管理数据库(JWGL),在SQL Server 2005的查询分析器的环境中验证习题4.2、习题4.3和习题4.4的有关内容。 略。 习题5 5-1 解释下列名词 + 函数依赖 函数依赖集F的闭包F 最小依赖集 无损分解 保持函数依赖 1NF 2NF 3NF BCNF 答: 函数依赖:设有关系模式R(U),X和Y是属性集U的子集,若对于R(U)的任意一个可能的关系r,r中不可能存在两个元组在X上的属性值相等,而在Y上的属性值不等,则称X函数确定Y或Y函数依赖(Functional Dependency,简记为FD)于X,记作X?Y。 +函数依赖集F的闭包F:被F逻辑蕴涵的函数依赖全体构成的集合,称为F的闭包, +记为F。 最小依赖集:设F是属性集U上的FD集,F是F的最小依赖集,那么F应满足下列minmin++四个条件:(F)=F;每个FD的右边都是单属性;F中没有冗余的FD;每个FD的左边没minmin 有冗余的属性。 无损分解:设关系模式R,F是R上的FD集,ρ={R,„,R}是R的一个分解。如果对R lk k 中满足F的每一关系r,都有r= πR(r),那么称分解ρ相对F是“无损分解”。 ii=1 保持函数依赖:设关系模式R,F是R上的FD分解,ρ={R,„,R}是R的一个分解,1k 如果有 k,, (()),FF,:Ri1,i 那么称分解p保持FD集F。 第13页 1NF:如果关系模式R的每个关系r的属性值都是不可分的原子值,那么称R是1NF的模式。 2NF:如果R是1NF的模式,且每个非主属性完全函数依赖于R的候选键,那么称R是2NF的模式。 3NF:如果R是1NF的模式,且每个非主属性都不传递依赖于R的候选键,那么称R是3NF的模式。 BCNF:如果R是1NF的模式,且每个属性都不传递依赖于R的候选键,那么称R是BCNF的模式。 5-2 已知关系模式R(ABC),F是R上成立的FD集,F={A?B,B?C},试写出F的闭 +包F。 解: +根据已知条件和推理规则,可知F有43个FD: A?Ф AB?Ф AC?Ф ABC?Ф B?Ф C?Ф A?A AB?A AC?A ABC?A B?B C?C A?B AB?B AC?B ABC?B B?C Ф?Ф A?C AB?C AC?C ABC?C B?BC A?AB AB?AB AC?AB ABC?AB BC?Ф A?AC AB?AC AC?AC ABC?AC BC?B A?BC AB?BC AC?BC ABC?BC BC?C A?ABC AB?ABC AC?ABC ABC?ABC BC?BC -3 设关系模式R(ABCD),F是R上成立的FD集,F={A?B,C?B},则相对于F,试5 写出关系模式R的关键码。并说明理由。 解:R的关键码为ACD。因为从已知的F,只能推出ACD?ABCD。 5-4 设关系R(ABCDE)上FD集为F,并且F={A?BC,CD?E,B?D,E?A}。求出R的候选键。 解:R的候选键有4个:A、E、CD和BC。 5-5 设关系模式R(ABC),F是R上成立的FD集,F={B?C,C?A},那么分解ρ={AB,AC}相对于F,是否无损分解和保持FD,并说明理由。 答:已知F={B?C,C?A},而π(F)={B?A},π(F)={C?A},显然这个分解丢失了ABAC FD:B?C。 A B C A B C 对于保持无损分解: 由FD AB a1 a2 b13 AB a1 a2 b13 AC a1 b22 a3 AC a1 b22 a3 无a行,所以是有损分解。 5-6 设关系模式R(ABCD),F是R上成立的FD集,F={A?B,B?C,A?D,D?C},ρ={AB,AC,BD}是R的一个分解。 ? 相对于F,ρ是无损分解吗,为什么, ? 试求F在ρ的每个模式上的投影。 ? ρ保持F吗,为什么, 答: ? 用测试过程可以知道,ρ相对于F是损失分解。 ? π(F)={A?B},π(F)={A?C},π(F)=Ф。 ABACBD ? 显然,分解ρ相对于F不保持FD分解,因为丢失了B?C,A?D,D?C等三个FD。 第14页 5-7 设关系模式R(ABCD),R上的FD集F={A?C,D?C,BD?A},试说明ρ={AB, ACD,BCD}相对于F是损失分解的理由。 答:根据已知的F集,不可能把初始表格修改为一个全a行的表格,因此ρ相对于F是损失分解。 5-8 设关系模式R(ABCD),F是R上成立的FD集,F={AB?CD,A?D}。 ? 试说明R不是2NF模式的理由。 试把R分解成2NF模式集。 ? 答:? 从已知的函数依赖集F,可知R的候选键是AB。另外,由AB?CD可推出AB?D,再由A?D可知AB?D是部分(局部)函数依赖,因此R不是2NF模式。 ? 如果将R分解成ρ={AD,ABC},则ρ是2NF模式集。 5-9 设关系模式R(ABC),F是R上成立的FD集,F={C?B,B?A}。 ? 试说明R不是3NF模式的理由。 ? 试把R分解成3NF模式集。 答:? 从已知函数依赖集F可知,R的候选键是C。由C?B,B?A可知,C?A是一个传递依赖,因此R不是3NF模式。 ? 此时如果将R分解成ρ={CB,BA},则ρ是3NF模式集。 5-10设有关系模式R(职工编号,日期,日营业额,部门名,部门经理),该模式统计商店里每个职工的日营业额,以及职工所在的部门和经理信息。如果规定:每个职工每天只有一个营业额;每个职工只在一个部门工作;每个部门只有一个经理。试回答下列问题: ? 根据上述规定,写出模式R的基本FD和关键码; 说明R不是2NF的理由,并把R分解成2NF模式集; ? ? 进而分解成3NF模式集。 解: ? 基本的FD有三个: (职工编号,日期)? 日营业额 职工编号 ? 部门名 部门名 ? 部门经理 R的关键码为:(职工编号,日期)。 ? R中有两个这样的FD: (职工编号,日期)?(部门名,部门经理) 职工编号 ?(部门名,部门经理) 可见前一个FD是局部依赖,所以R不是2NF模式。 R应分解Rl(职工编号,部门名,部门经理) R2(职工编号,日期,日营业额) 此处,Rl和R2都是2NF模式。 ? R2已是3NF模式。 在R1中,存在两个FD:职工编号 ? 部门名 部门名 ? 部门经理 因此,“职工编号 ? 部门经理”是一个传递依赖,Rl不是3NF模式。 R1应分解成R11(职工编号,部门名) R12(部门名,部门经理) 这样,ρ={R11,Rl2,R2}是一个3NF模式集。 第15页 5-11设有关系模式R(运动员编号,比赛项目,成绩,比赛类别,比赛主管),如果规定:每个运动员每参加一个比赛项目,只有一个成绩;每个比赛项目只属于一个比赛类别;每个比赛类别只有一个比赛主管。试回答下列问题: ? 根据上述规定,写出模式R的基本FD和关键码; ? 说明R不是2NF的理由,并把R分解成2NF模式集; ? 进而分解成3NF模式集。 基本的FD有3个: 解:? (运动员编号,比赛项目)? 成绩 比赛项目 ? 比赛类别 比赛类别 ? 比赛主管 R的关键码为(运动员编号,比赛项目)。 ? R有两个这样的FD: (运动员编号,比赛项目)? (比赛类别,比赛主管) 比赛项目 ? (比赛类别,比赛主管) 可见,前一个FD是部分(局部)函数依赖,所以R不是2NF模式。 如果把R分解成R1(比赛项目,比赛类别,比赛主管) R2(运动员编号,比赛项目,成绩) 这里,R1和R2都是2NF模式。 ? R2已是3NF模式。 在R1中,存在两个FD:比赛项目 ? 比赛类别 ? 比赛主管 比赛类别 因此,“比赛项目 ? 比赛主管”是一个传递依赖,R1不是3NF模式。 R1应分解为R11(比赛项目,比赛类别) R12(比赛类别,比赛主管) 这样,ρ={R11,R12,R2}是一个3NF模式集。 习题6 6-1 名词解释 生命周期法 快速原型法 面向对象法 数据流图 数据字典 弱实体 超类 子类 继承性 答: 生命周期法:生命周期法就是将整个数据库应用系统的开发过程分解成若干个阶段,并对每个阶段的目标、任务、方法作出规定,使整个数据库应用系统的开发过程具有合理的组织和科学的秩序。数据库应用系统的生命周期,可以分成四个主要阶段:系统分析、系统设计、系统实施、系统运行与维护。 快速原型法:快速原型法的基本思想是以少量代价快速地构造一个可执行的软件系统,使用户和开发人员可以较快地确定需求。在初步了解用户的基本要求后,开发人员先建立一个他们认为符合用户要求的模式系统交付用户检验,由于模型是可以执行的,所以为用户提供了获得感性认识的机会。 面向对象法:面向对象法是针对面向过程提出的,是区别于传统的结构化方法的一种新方法、新思路,是一种基于数据抽象的类的组合的自底向上的开发方法,由四个基本步骤组成:标识对象和定义类、组织类间关系、在类层中构造框架、建立可复用的类库和系统总框架。 第16页 数据流图:数据流图是从“数据”和“对数据的加工”两方面表达数据处理系统工作过程的一种图形表示法。具有直观、易于被用户和软件人员双方都能理解的一种表达系统功能的描述方式。 数据字典:数据字典提供了对数据库数据描述的集中管理,它的功能是存储和检索各种数据描述,如叙述性的数据定义等,并且为DBA提供有关的报告。对数据库设计来说,数据字典是进行详细的数据收集和数据分析所获得的主要成果。数据字典中通常包括数据项、数据结构、数据流、数据存储和处理过程五个部分。 弱实体:一个实体对于另一些实体(父实体)具有很强的依赖联系,而且该实体主键的部分或全部从其父实体中获得,则称该实体为弱实体。 超类、子类:某个实体类型中所有实体同时也是另一个实体类型中的实体,此时称前一实体类型是后一实体类型的子类,后一实体类型称为超类。 继承性:指子类继承其超类上定义的所有属性,但其本身还可以包含其他的属性。 6-2 什么是数据库设计目标,数据库设计的基本步骤有哪些, 答:数据库设计的主要目标有:最大限度地满足用户的应用功能需求、获得良好的数据库性能、对现实世界模拟的精确度要高、数据库设计应充分利用和发挥现有DBMS的功能和性能、符合软件工程设计要求。 数据库设计的基本步骤是:需求分析阶段、概念结构设计阶段、逻辑结构设计阶段、物理结构设计阶段、数据库实施阶段、数据库运行和维护阶段。 6-3 数据库设计的需求分析阶段是如何实现的,任务是什么, 答:需求分析阶段的工作由下面4步组成:分析用户活动,产生用户活动图;确定系统范围,产生系统范围图;分析用户活动所涉及的数据,产生数据流图;分析系统数据,产生数据字典。 需求分析阶段的任务是对系统的整个应用情况作全面的、详细的调查,确定企业组织的 目标,收集支持系统总的设计目标的基础数据和对这些数据的要求,确定用户的需求;并把这些要求写成用户和数据库设计者都能接受的文档。 6-4 评审在数据库设计中有什么重要作用,为什么允许设计过程中有多次的回溯与反复, 答:评审的作用在于确认某一阶段的任务是否全部完成,通过评审可以及早发现系统设计中的错误, 并在生存期的早期阶段给予纠正,以减少系统研制的成本。 如果在数据库已经实现时再发现设计中的错误,那么代价比较大。因此应该允许设计过程的回溯与反复。设计过程需要根据评审 意见 文理分科指导河道管理范围浙江建筑工程概算定额教材专家评审意见党员教师互相批评意见 修改所提交的阶段设计成果,有时修改甚至要回溯到前面的某一阶段,进行部分乃至全部重新设计。 6-5 对概念模型有些什么要求, 答:对概念模型一般有以下要求: ? 概念模型是对现实世界的抽象和概括,它应真实、充分地反映现实世界中事物和事物之间的联系,具有丰富的语义表达能力,能表达用户的各种需求,包括描述现实世界中各种对象及其复杂联系、用户对数据对象的处理要求和手段。 ? 概念模型应简洁、明晰,独立于机器、容易理解、方便数据库设计人员与应用人员交换意见,使用户能积极参与数据库的设计工作。 ? 概念模型应易于变动。当应用环境和应用要求改变时,容易对概念模型修改和补充。 ? 概念模型应很容易向关系、层次或网状等各种数据模型转换,易于从概念模式导出也DBMS有关的逻辑模式。 6-6 概念设计的具体步骤是什么, 第17页 答:概念设计的主要步骤为:进行数据抽象、设计局部概念模式;将局部概念模式综合成全局概念模式;评审。 6-7 试述采用ER方法的数据库概念设计的过程。 答:利用ER方法进行数据库的概念设计,可分成三步进行:首先设计局部ER模式,然后把各局部ER模式综合成一个全局ER模式,最后对全局ER模式进行优化,得到最终的ER模式,即概念模式。 6-8 逻辑设计的目的是什么,试述逻辑设计过程的输入和输出环境。 答:逻辑设计的目的是把概念设计阶段设计好的基本ER图转换为与选用的具体机器上的DBMS所支持的数据模型相符合的逻辑结构(包括数据库模式和外模式)。 逻辑设计过程中的输入信息有:独立于DBMS的概念模式,即概念设计阶段产生的所有局部和全局概念模式;处理需求,即需求分析阶段产生的业务活动分析结果;约束条件,即完整性、一致性、安全性要求及响应时间要求等;DBMS特性,即特定的DBMS特性,即特定的DBMS所支持的模式、子模式和程序语法的形式规则。 逻辑设计过程输出的信息有:DBMS可处理的模式;子模式;应用程序设计指南;物理设计指南。 6-9 试述逻辑设计阶段的主要步骤及内容。 答:逻辑设计主要是把概念模式转换成DBMS能处理的模式。 转换过程中要对模式进行评价和性能测试,以便获得较好的模式设计。 逻辑设计的主要步骤包括:初始模式的形成、子模式设计、应用程序设计梗概、模式评价、修正模式。 -10 规范 编程规范下载gsp规范下载钢格栅规范下载警徽规范下载建设厅规范下载 化理论对数据库设计有什么指导意义, 6 答:在概念设计阶段,已经把关系规范化的某些思想用作构造实体类型和联系类型的 标准 excel标准偏差excel标准偏差函数exl标准差函数国标检验抽样标准表免费下载红头文件格式标准下载 , 在逻辑设计阶段,仍然要使用关系规范化的理论来设计模式和评价模式。 规范化的目的是减少乃至消除关系模式中存在的各种异常,改善完整性,一致性和存储效率。 6-11 什么是数据库结构的物理设计,试述其具体步骤。 答:数据库结构的物理设计是指对一个给定的逻辑数据模型选取一个最适合应用环境的物理结构的过程, 所谓数据库的物理结构主要指数据库在物理设备上的存储结构和存取方法。物理设计的步骤为: (1)设计存储记录结构,包括记录的组成、数据项的类型和长度,以及逻辑记录到存储记录的映射; (2)确定数据存储安排; (3)设计访问方法,为存储在物理设备上的数据提供存储和检索的能力; (4)进行完整性和安全性的分析、设计; (5)程序设计。 6-12 数据库实现阶段主要做哪几件事情, 答:数据库实现阶段的主要工作有以下几点:建立实际数据库结构、试运行、装入数据。 6-13 数据库系统投入运行后,有哪些维护工作, 答:数据库系统投入运行后,主要维护工作有: (1)维护数据库的安全性与完整性控制及系统的转储和恢复; (2)性能的监督、分析与改进; (3)增加新功能; (4)发现错误,修改错误。 第18页 6-14 设某商业集团数据库中有三个实体集。一是“商店”实体集,属性有商店编号、商店名、地址等;二是“商品”实体集,属性有商品号、商品名、规格、单价等;三是“职工”实体集,属性有职工编号、姓名、性别、业绩等。 商店与商品间存在“销售”联系,每个商店可销售多种商品,每种商品也可放在多个商店销售,每个商店销售每一种商品,有月销售量;商店与职工间存在着“聘用”联系,每个商店有许多职工,每个职工只能在一个商店工作,商店聘用职工有聘期和月薪。 试画出ER图,并在图上注明属性、联系的类型。再转换成关系模式集,并指出每个关系模式的主键和外键。 解:ER图如下图所示。 商品号 商品名 单价 规格 商品 M 月销售量 销售 商店编号 N 商店名 商店 1 聘期 地址 聘用 月薪 N 职工 职工编号 姓名 性别 业绩 所转换成的关系: 商品(商品号,商品名,规格,单价) 商店(商店编号,商店名,地址) 销售(商店编号,商品号,月销售量) 职工(职工编号,姓名,性别,业绩,聘期,月薪,商店编号) 6-15 设某商业集团数据库中有三个实体集。一是“公司”实体集,属性有公司编号、公司名、地址等;二是“仓库”实体集,属性有仓库编号、仓库名、地址等;三是“职工”实体集,属性有职工编号、姓名、性别等。 公司与仓库间存在“隶属”联系,每个公司管辖若干仓库,每个仓库只能属于一个公司管辖; 仓库与职工间存在“聘用”联系,每个仓库可聘用多个职工,每个职工只能在一个仓库工作,仓库聘用职工有聘期和工资。 试画出ER图,并在图上注明属性、联系的类型。再转换成关系模式集,并指出每个关系模式的主键和外键。 解:ER图及属性、联系图如下: 第19页 公司编号 公司名 地址 公司 1 隶属 仓库编号 N 仓库名 仓库 1 聘期 地址 聘用 工资 N 职工 职工编号 姓名 性别 将ER图转换成为关系模式集为: 公司(公司编号,公司名,地址) 仓库(仓库编号,仓库名,地址,公司编号) 职工(职工编号,姓名,性别,仓库编号,聘期,工资) 6-16 设某商业集团数据库中有三个实体集。一是“商品”实体集,属性有商品号、商品名、规格、单价等;二是“商店”实体集,属性有商店号、商店名、地址等;三是“供应商”实体集,属性有供应商编号、供应商名、地址等。 供应商与商品间存在“供应”联系,每个供应商可供应多种商品,每种商品可向多个供应商订购,供应商供应每种商品有月供应量;商店与商品间存在“销售”联系,每个商店可销售多种商品,每种商品可在多个商店销售,商店销售商品有月 计划 项目进度计划表范例计划下载计划下载计划下载课程教学计划下载 数。 试画出ER图,并在图上注明属性、联系的类型。再转换成关系模式集,并指出每个关系模式的主键和外键。 解: ER图及属性、联系图为: 商品号 商品名 规格 单价 商品 N N 月供应量 月计划数 供应 销售 M M 供应商 商店 第20页 供应商编号 供应商名 地址 商店号 商店名 地址 这个ER图转换的关系模式如下: 商品(商品号,商品名,规格,单价) 供应商(供应商编号,供应商名,地址) 商店(商店号,商店名,地址) 供应(商品号,供应商编号,月供应量) 销售(商品号,商店号,月计划数) 6-17 假设要为银行的储蓄业务设计一个数据库,其中涉及到储户、存款、取款等信息, 试设计ER模型。 解:储蓄业务主要是存款、取款业务,设计的ER图如下所示。 账号 身份证号 姓名 地址 存款余额 储户 1 1 存款日期 取款日期 存款 取款 N N 存款单 取款单 存款单号 存款方式 金额 取款单号 金额 取款方式 -18 假设某超市公司要设计一个数据库系统来管理该公司的业务信息。该超市公司的6 业务管理规则如下: ? 该超市公司有若干仓库,若干连锁商店,供应若干商品。 ? 每个商店有一个经理和若干收银员,每个收银员只在一个商店工作。 ? 每个商店销售多种商品,每种商品可在不同的商店销售。 ? 每个商品编号只有一个商品名称,但不同的商品编号可以有相同的商品名称。每种 商品可以有多种销售价格。 ? 超市公司的业务员负责商品的进货业务。 试按上述规则设计ER模型。 解: 仓库 N M M M P 业务员 进货 库存 商店 发货 N 1 1 N P N 销售 商品 M 拥有 主管 1 具有 1 N N 第21页 收银员 经理 销售价格 6-19 假设要根据某大学的系、学生、班级、学会等信息建立一个数据库。一个系有若干专业,每个专业每年只招一个班,每个班有若干学生;一个系的学生住在同一宿舍区;每个学生可以参加多个学会,每个学会有若干学生,学生参加某学会有入会年份。试为该大学的系、学生、班级、学会等信息设计一个ER模型。 解:下图所示的是一种设计方案。 专业 N 1 设置 招收 1 N 系 班级 N 1 住宿 有 1 N 宿舍区 学生 M 参加 N 学会 习题7 7-1 名词解释 数据库安全性 用户标识 存取控制机制 数据库角色 事务 并发操作 封锁 X锁 PX协议 PXC协议 S锁 PS协议 PSC协议 活锁 饿死 死锁 串行调度 并发调度 可串行化调度 两段封锁协议 约束 规则 更新锁(U锁) 完整数据库备份 差异数据库备份 事务日志备份 文件组备份 答: 数据库安全性:数据库的安全性就是指数据库中数据的保护措施,一般包括的登陆的身份验证管理、数据库的使用权限管理和数据库中对象的使用权限管理三种安全性保护措施。 用户标识:用户标识是系统提供的最外层安全保护措施。其方法是由系统提供一定的方式让用户标识自己的名字或身份。每次用户要求进入系统时,由系统进行核对,通过鉴定后才提供机器使用权。 存取控制机制:存取控制机制主要包括两部分:定义用户权限,并将用户权限登记到数据字典中;合法权限检查,每当用户发出存取数据库的操作请求后(请求一般应包括操作类 第22页 型、操作对象和操作用户等信息),DBMS查找数据字典,根据安全规则进行合法权限检查,若用户的操作请求超出了定义的权限,系统将拒绝执行此操作。 数据库角色:数据库角色是被命名的一组与数据库操作相关的权限,角色是权限的集合。可以为一组具有相同权限的用户创建一个角色,使用角色来管理数据库权限可以简化授权的过程 事务:事务是构成单一逻辑工作单元的操作集合。 并发操作:在多用户共享系统中,许多事务可能同时对同一数据进行操作,这种操作称为并发操作。 封锁:封锁是系统保证对数据项的访问以互斥方式进行的一种手段。 X锁:事务T对某数据加了X锁后,其他事务要等T解除X锁后,才能对这个数据进行封锁。 PX协议:只有获准X锁的事务,才能修改数据,否则这个事务进入等待状态。 PXC协议:PX协议再加上一条规则:“X锁必须保留到事务终点才能解除”。 S锁:事务T对某数据加了S锁后,仍允许其他事务再对该数据加S锁,但在对该数据的所有S锁都解除之前决不允许任何事务对该数据加X锁。 PS协议:只有获准X锁的事务,才能修改数据,否则这个事务进入等待状态。 PSC协议:PX协议再加上一条规则:“X锁必须保留到事务终点才能解除”。 活锁:系统可能使某个事务永远处于等待状态,得不到封锁的机会,这种现象称为“活锁”。 饿死:若干事务连续不断地对某数据实现加S锁和释放S锁的操作,那么若有一个事务欲对该数据加X锁,将永远轮不上封锁的机会。这种现象称为“饿死”。 死锁:若干事务都处于等待状态,相互等待对方解除封锁,结果造成这些事务都无法继续执行,这种现象称为系统进入了“死锁”状态。 串行调度:多个事务依次执行,称为事务的串行调度。 并发调度:利用分时的方法,同时处理多个事务,则称为事务的并发调度。 可串行化调度:如果一个并发调度的执行结果与某一串行调度的执行结果等价,那么这个并发调度称为“可串行化的调度”。 两段封锁协议:事务分成两个阶段,前一阶段只能申请封锁,后一阶段只能释放封锁,这一规则称为事务的两段封锁协议。 约束:约束是Microsoft SQL Server提供的自动保持数据库完整性的一种方法,它定义了可输入表或表的单个列中的数据的限制条件。它是用来维护关系数据中数据的正确性和一致性、保证数据库完整性的必要条件。 规则:规则是数据库中对存储在表的列或用户定义数据类型中值的规定和限制。规则同默认值一样,也是单独存储的独立数据库对象。规则与其作用的表或用户定义数据类型是相互独立的,即表或用户定义数据类型的删除、修改不会对与之相连的规则产生影响。 更新锁(U锁):当一个事务查询数据以便进行修改时,可以对数据项施加更新锁,如果事务修改资源,则更新锁会转换成排他锁,否则会转换成共享锁。一次只有一个事务可以获得资源上的更新锁,它允许其他事务对资源的共享式访问,但阻止排他式的访问。 完整数据库备份:完整数据库备份就是备份整个数据库。它备份数据库文件、这些文件的地址以及事务日志的某些部分(从备份开始时所记录的日志顺序号到备份结束时的日志顺序号)。 差异数据库备份:差异数据库备份是指将从最近一次完全数据库备份以后发生改变的数据进行备份。如果在完整备份后将某个文件添加至数据库,则下一个差异备份将会包括该新文件。这样可以方便地备份数据库,而无须了解各个文件。 第23页 事务日志备份:事务日志备份就是自从上一个事务以来已经发生了变化的部分。事务日志备份比完整数据库备份节省时间和空间,而且利用事务日志备份进行恢复时,可以指定恢复到某一个事务。 文件组备份:文件组备份就是对数据库中的部分文件或文件组进行备份。文件组是一种将数据库存放在多个文件上的方法,并允许控制数据库对象(比如表或视图)存储到这些文件当中的某些文件上。 7-2 试叙述事务的四个性质,并解释每一个性质由DBMS的哪个子系统实现,每一个性质对DBS有什么益处, 答:? 事务的原子性,是指一个事务对DB的所有操作,是一个不可分割的工作单元。原子性是由DBMS的事务管理子系统实现的。事务的原子性保证了DBS的完整性。 ? 事务的一致性,是指数据不会因事务的执行而遭受破坏。事务的一致性是由DBMS的完整性子系统实现的。事务的一致性保证数据库的完整性。 ?事务的隔离性,是指事务的并发执行与这些事务单独执行时结果一样。事务的隔离性是由DBMS的并发控制子系统实现的。隔离性使并发执行的事务不必关心其他事务,如同在单用户环境下执行一样。 ?事务的持久性,是指事务对DB的更新应永久地反映在DB中。持久性是由DBMS的恢复管理子系统实现的。持久性能保证DB具有可恢复性。 7-3 设有两个关系模式: 职工(职工号,姓名,年龄,职务,工资,部门号) 部门(部门号,名称,经理名,地址,电话号) 请用SQL的GRANT和REVOKE语句完成以下授权定义: ? 用户王明对两个表有SELECT权限; ?用户李勇对两个表有INSERT和DELETE权限; ? 每个职工只对自己的记录有SELECT权限; ? 用户刘星对职工表有SELECT权限,对工资字段具有更新权限; ? 撤销各用户所授予的权限。 解: ? GRANT SELECT ON TABLE 职工,部门 TO 王明 ? GRANT INSERT,DELETE ON TABLE 职工,部门 TO 李勇 ? GRANT SELECT ON 职工 WHEN USER()=NAME TO ALL ? GRANT SELECT,UPDATE(工资) ON TABLE 职工 TO 刘星 ? ? 撤销用户王明对两个表有SELECT权限; REVOKE SELECT ON 职工,部门 FROM 王明; ? 撤销用户李勇对两个表有INSERT和DELETE权限; REVOKE INSERT,DELECT ON 职工,部门 第24页 FROM 李勇; ? 撤销每个职工只对自己的记录有SELECT权限; REVOKE SELECT ON 职工 WHEN USER()=NAME FROM ALL; ? 撤销用户刘星对职工表有SELECT权限,对工资字段具有更新权限; REVOKE SELECT,UPDATE ON 职工 FROM 刘星 7-4 什么是数据库中的自主存取控制方法和强制存取控制方法, 答:在自主存取控制中,用户具有不同的存取权限,不同的用户对同一对象也有不同的权限,而且用户还可以将其拥有的存取权限转授给其他用户。 在强制存取控制中,每一个数据库对象被标以一定的密级,每一个用户也被授予某一个级别的许可证。对于任意一个对象,只有具有合法许可证的用户才可以存取。 7-5 事务的COMMIT语句和ROLLBACK语句各做什么事情, 答:COMMIT语句表示事务执行成功地结束(提交),此时告诉系统,DB要进入一个新的正确状态,该事务对DB的所有更新都已交付实施(写入磁盘)。 ROLLBACK语句表示事务执行不成功地结束(应该“回退”)此时告诉系统,已发生错误,DB可能处于不正确的状态,该事务对DB的所有更新必须被撤销,DB应恢复该事务到初始状态。 7-6 “检查点技术”的主要思想是什么,COMMIT语句与检查点时刻的操作如何协调, 答:“检查点机制”的主要思想是在检查点时刻才真正做到把对DB的修改写到磁盘。在DB恢复时,只有那些在最后一个检查点到故障点之间还在执行的事务才需要恢复。 事务在COMMIT时,事务对DB的更新已提交,但对DB的更新可能还留在内存的缓冲区,在检查点时刻才真正写到磁盘。因此事务的真正结束是在COMMIT后还要加上遇到检查点时刻。 7-7 什么是“运行记录优先原则”,其作用是什么, 答:写一个修改到DB中和写一个表示这个修改的登记记录到日志文件中是两个不同的操作,后者比前者重要,后者应先做。这就是运行记录优先原则。其作用是保证DBS具有可恢复性。 7-8 试叙述“串行调度”与“可串行化调度”的区别, 答:如果多个事务依次执行,则称事务串行调度。如果利用分时的方法处理多个事务,则称为事务的并发调度。如果一个并发调度的结果与某一串行调度执行结果等价,则称这个并发调度是可串行化调度。 7-9 试叙述数据库镜像的优缺点, 答:数据库镜像的优点:一旦出现介质故障,可由镜像磁盘继续提供使用,同时DBMS自动利用镜像磁盘数据进行数据库的恢复,不需要关闭系统和重装数据库副本。 数据库镜像的缺点:由于数据库镜像是通过复制数据实现的,频繁地复制数据自然会降低系统运行效率。 7-10 试叙述在SQL Server 2005中对数据库进行安全管理的几个方面, 答:SQL Server 2005中广泛使用安全主体和安全对象管理安全。一个服务器、数据库或架构资源的实体称为安全主体。每一个安全主体都有唯一的安全标识符。安全主体在3个级别上进行管理:Windows、SQL Server和数据库。安全主体的级别决定了安全主体的影响范围,而数据库级别的安全主体的影响范围是特定的数据库。 7-11 试叙述在SQL Server 2005中规则与CHECK约束不同点, 第25页 答:在SQL Server 2005中规则与CHECK约束的不同之处有以下三点: ? CHECK 约束是在创建表时指定的,而规则可以作为单独的数据库对象来对列约束; ? 在同一表的列中,可以有一个规则及多个CHECK约束; ? 规则可以应用于多个列,还可以应用于用户定义数据类型,而CHECK约束只能用于它定义的列。 7-12 简述在SQL Server 2005中查看锁的两种方式。 查看锁的两种方式为: 答:在SQL Server 2005中 ? 使用Sys.dm_tran_locks视图可以快速了解SQL Server内的加锁情况。 ? 使用SQL Server Management Studio可以实现图形化显示加锁信息。 7-13 简述在SQL Server 2005中完全备份、差异备份、事务日志备份以及文件和文件组备份各有什么特点, 答:完整数据库备份就是备份数据库文件、这些文件的地址以及事务日志的某些部分(从备份开始时所记录的日志顺序号到备份结束时的日志顺序号)。这是任何备份策略中都要求完成的一种备份类型。 差异数据库备份是指将从最近一次完全数据库备份以后发生改变的数据进行备份。如果在完整备份后将某个文件添加至数据库,则下一个差异备份将会包括该新文件。这样可以方便地备份数据库,而无须了解各个文件。 尽管事务日志备份就是备份自从上一个事务以来已经发生了变化的部分。事务日志备份比完整数据库备份节省时间和空间,而且利用事务日志备份进行恢复时,可以指定恢复到某一个事务。 文件组备份允许控制数据库对象(比如表或视图)存储到这些文件当中的某些文件上。数据库不会受到只存储在单个硬盘上的限制,而是可以分散到许多硬盘上。 7-14 某企业的SQL Server 2005数据库每周日12点进行一次完整备份,每天晚上24点进行一次差异备份,每小时进行一次事务日志备份,数据库在2009-7-16 6:30崩溃,应如何将其恢复从而使数据库损失最小, 答:2009年7月16日是星期四,在此前的星期日(2009年7月12日)的12点进行了一次完整备份,在2009年7月15日晚上24点又进行了自完整备份以来的差异备份,而每小时进行一次事务日志备份。恢复时,依次恢复完整备份、差异备份、事务日志备份,这样最多只会丢失2009年7月16日6点到6点30分这30分之内的数据。 习题8 8-1 什么是ODBC,如何创建ODBC数据源, 答: ODBC是Microsoft的视窗开放系统体系结构(WOSA)中有关数据库的一个组成部分,它建立了一组规范,并提供了一组对数据库访问的标准API(Application Program Interface,应用程序编程接口)。这些API利用SQL来完成其大部分任务。ODBC本身也提供了对SQL语言的支持,用户可以直接将SQL语句传送给ODBC。 以在Windows xp操作系统下为例介绍如何建立ODBC的连接,创建ASP程序使用的DSN。步骤如下: ? 单击【开始】|【设置】|【控制面板】命令,打开控制面板。 ? 双击【管理工具】按钮,打开管理工具,在管理工具窗口中双击【数据源(ODBC)】,打开ODBC数据源管理器,单击【系统DSN】选项卡。 ? 单击【添加】按钮,弹出【创建新数据源】对话框,选择【SQL Server】选项。 ? 单击“完成”按钮,弹出创建数据源对话框。在“名称”编辑框中输入数据源名,如本例中JWGL;在“服务器”从列表框中选择要连接的SQL Server服务器。 第26页 ? 单击【下一步】按钮,弹出SQL Server验证模式设置对话框,这里设置“使用用户输入登录ID与密码的SQL Server验证”,并且在下面填写登录ID与密码。 ? 单击【下一步】按钮,弹出设置默认数据库等参数对话框。 ? 单击【下一步】按钮,弹出设置默认语言等参数对话框。 ? 单击【完成】按钮,弹出ODBC数据源的描述信息,最好单击【测试数据源】按钮,进行数据连接测试。 ? 单击【确定】按钮,就成功地创建了DSN桥梁。 8-2 试比较在SQL Server中利用ADO与数据库连接和利用ODBC与数据库连接的异同, 答: 应用程序利用ODBC访问数据库,首先必须用ODBC管理器注册一个数据源,管理器根据数据源提供的数据库位置、数据库类型及ODBC驱动程序等信息,建立起ODBC与具体数据库的联系。这样,只要应用程序将数据源名提供给ODBC,ODBC就能建立起与相应数据库的连接。而ADO对数据库的操作先是利用Connection对象建立与数据库的连接,然后再利用Command对象对数据库执行查询等SQL命令,得到Recordset记录集,最后在Recordset对象中进行具体操作。 习题9 9-1 简述ASP.NET与ASP相比,主要有那些进步, 答:(1) 执行效率的大幅提高; (2) ASP.NET构架是可以用Microsoft公司最新的产品 Visual Studio.net开发环境进行开发; (3) ASP.NET可以运行在Web应用软件开发的几乎全部的平台上; (4) 简单性和易学性; (5) 高效的管理性; (6) ASP.NET已经被设计成为一种可以用于多处理器的开发工具,它在多处理器的环境下用特殊的无缝连接技术,将很大的提高运行速度; (7) 自定义性和可扩展性。 -2 简述DataReader与Dataset有什么区别, 9 答:DataSet对象:必须结合DataAdapter对象使用,它是由许多数据表、记录和字段组成的一个对象。主要用于在内存中存放数据,它可以一次读取整张数据表的内容,也可以对网页中显示的数据进行编辑,并且还可以在数据中任意移动。 DataReader对象:必须结合Command对象使用,一次读取一条数据,只读且数据只能单向向前移动,一般用于单独显示数据。 9-3 试述数据库断开式数据访问模式的过程。 答:断开式数据访问模式的基本过程如下: ? 使用连接对象Connection 连接并打开数据库; ? 使用数据适配器DataAdapter 填充数据集DataSet; ? 关闭连接,对DataSet进行操作; ? 操作完成后打开连接; ? 使用数据适配器DataAdapter更新数据库。 9-4 试述显示和修改数据库中数据的常用方法及其主要功能。 答:ExecuteReader方法是查询显示数据库中数据最常用的一种方法,即利用该方法可以读出数据源中的数据,生成一个DataReader对象,然后利用SqlDataReader对象进行输出显示; ExecuteNonQuery方法返回一个整数,表示已执行的语句所影响的数据行数; 第27页 ExecuteScalar方法是使得返回查询所影响的结果集中在第一行的第一列。由于在查询数据库中的数据时,常常会查询最大值、最小值、平均值、总和等,即查询函数运算值,这时就要使用ExecuteScalar方法。 ExecuteXmlReader方法主要实现数据库与XML文档的交流,使用该方法需要传递一个For XML子句的T-SQL语句。 习题10 10-1 解释下列名词 对象与对象标识 封装 类及类层次 OODBMS 分布式数据库系统 分布透明性 ODBC C/S体系结构 数据仓库 数据挖掘 答: 对象与对象标识:现实世界的任一实体都被统一地模型化为一个对象,每个对象有一个惟一的标识,称为对象标识(OID)。 封装:封装是对象外部界面与内部实现之间实行清晰隔离的一种抽象,外部与对象的通信只能通过消息来实现。 类及类层次:共享同样属性和方法集的所有对象构成了一个对象类(简称类),在面向对象数据模式中,一组类可以形成一个类层次。一个面向对象数据模式可能有多个类层次。在一个类层次中,一个类继承其所有超类的属性、方法和消息。 OODBMS:面向对象数据库管理系统(OODBMS),是支持将数据当作对象来模拟和创造的一种数据库管理系统。 分布式数据库系统:是由一组数据组成的,这组数据分布在计算机网络的不同计算机上,网络中的每个结点具有独立处理的能力(称为场地自治),可以执行局部应用。同时,每个结点也能通过网络通信子系统执行全局应用。 分布透明性:分布透明性是分布式数据库系统的重要特征,透明性层次越高,应用程序的编写就越简单、方便。分布透明性包括分布透明性、位置透明性和局部数据模式透明性。 ODBC:ODBC是开发一套开放式数据库系统应用程序的公共接口,利用ODBC接口使得在多种数据库平台上开发的数据库应用系统之间可以直接进行数据存取,提高系统数据的共享性和互用性。 C/S体系结构:C/S (Client/Server)体系结构,即客户机和服务器体系结构。它是软件系统体系结构,通过它可以充分利用两端硬件环境的优势,将任务合理分配到Client端和Server端来实现,降低了系统的通讯开销。 数据仓库:在支持管理的决策生成过程中,一个面向主题的、集成的、时变的、非易失的数据集合。 数据挖掘:是从大量的、不完全的、有噪声的、模糊的、随机的实际数据中,提取隐含在其中的,尚不完全被人们了解的、然而却是潜在有用的信息和知识的过程。 10-2 什么是操作的重载,在OODB中为什么要滞后联编, 答:在OO模型中对于同一个操作,可以按照类的不同,重新定义操作的实现,这称为操作的重载。这样,同一个操作名就与不同的实现方法,与不同的参数相联系。 为了提供这个功能,OODBMS不能在编译时就把操作名联编到程序上,必须在运行时根据实际请求中的对象类型和操作来选择相应的程序,把操作名与它联编上(即把操作名转换成该程序的地址),这个推迟的转换称为滞后联编。 10-3 分布式数据库系统有哪些特点, 答:分布式数据库系统是在集中式数据库系统技术的基础上发展起来的,但不是简单地 第28页 把集中式数据库分散地实现,它是具有自己的性质和特征的系统。 (1)数据独立性 在分布式数据库系统中,除了数据的逻辑独立性与物理独立性外,还有数据分布独立性亦称分布透明性。分布透明性指用户不必关心数据的逻辑分片,不必关系数据物理位置分布的细节,也不必关心重复副本(冗余数据)一致性问题,同时也不必关心局部场地上数据库支持哪种数据模型。分布透明性也可以归入物理独立性的范围。 (2)集中与自治相结合的控制结构 在分布式数据库系统中,数据共享的控制机构具有两个层次:集中和自治。分布式数据库系统常常采用集中和自治相结合的控制机构。各局部的DBMS可以独立地管理局部数据库,具有自治的功能。同时,系统又设有集中控制机制,协调各局部DBMS的工作,执行全局应用。 (3)适当增加数据冗余度 在分布式数据库系统中希望增加冗余数据,在不同的场地存储同一数据的多个副本,增加数据冗余度方便了检索,提高了系统的查询速度、可用性和可靠性,但不利于更新,增加了系统维护的代价。 (4)全局的一致性、可串行性和可恢复性 分布式数据库系统中各局部数据库应满足集中式数据库的一致性、并发事务的可串行性和可恢复性。 10-4 分布式数据库系统由哪些主要部分组成, 答: 分布式DBS的体系结构分为四级:全局外模式、全局概念模式、分片模式和分配模式。 (1)全局外模式:它们是全局应用的用户视图,是全局概念模式的子集。 (2)全局概念模式:全局概念模式定义了分布式数据库中所有数据的逻辑结构。 (3)分片模式:分片模式定义片段以及定义全局关系与片段之间的映象。这种映象是一对多的,即每个片段来自一个全局关系,而一个全局关系可分成多个片段。 (4)分配模式:片段是全局关系的逻辑部分,一个片段在物理上可以分配到网络的不同场地上。分配模式根据数据分配策略的选择定义片段的存放场地。 10-5 试述面向对象数据库的模式演进中模式的一致性的主要内容。 答:数据库模式为适应需求的变化而随时间变化称为模式演进。 在关系数据库中,模式的变化比较简单。对于面向对象数据库系统,模式的修改就相对复杂得多。模式在演进过程中不能出现自身的矛盾与错误,这是模式的一致性。模式的一致性通过一致性约束实现,包括惟一性约束、存在性约束和子类约束。 惟一性约束:命名惟一。在一个模式中类命名必须惟一,同一类中属性名必须惟一,类名与属性名可以相同,但应尽量避免。 存在性约束:显式引用的成分必须存在。被引用的类、属性和操作必须在模式定义中的相应位置中给予定义,操作还必须有其实现程序。 子类约束:子类与超类之间不能出现环状联系,相互联系必须有必要的说明,并应避免由于多继承带来的冲突。 10-6 简述ODBC多层驱动程序与单层驱动程序的区别。 答:多层驱动程序与单层驱动程序的区别不仅是驱动程序是否具有数据库管理系统的功能,它们在效率上也存在很大的差别。由于单层驱动程序的应用程序是把存放数据库的服务器当作文件服务器使用,在网络中传输的是整修数据库文件,网络的数据通信量很大,不仅网络负荷大,且负载不均衡,使得效率较低。多层驱动程序的应用程序使用的是客户机/服务器系统结构,在数据库服务器上实现对数据库的各种操作,在网络上传输的只是用户请 第29页 求和数据库处理的,使网络的通信量大大减少,不仅减轻了网络的负担,还均衡了服务器和 客户机的负载,提高了应用程序的运行效率,这是客户机/服务器结构的优点。 第30页 (英文版 ) Two regulations promulgated for implementation is in the party in power for a long time and the rule of law conditions, the implementation of comprehensive strictly strategic plan, implementation in accordance with the rules and discipline to manage the party, strengthen inner-party supervision of major initiatives. The two regulations supporting each other, the < code > adhere to a positive advocate, focusing on morality is of Party members and Party leading cadres can see, enough to get a high standard; < rule > around the party discipline, disciplinary ruler requirements, listed as "negative list, focusing on vertical gauge, draw the party organizations and Party members do not touch the" bottom line ". Here, the main from four square face two party rules of interpretation: the first part introduces two party Revised regulations the necessity and the revision process; the second part is the interpretation of the two fundamental principles of the revision of laws and regulations in the party; the third part introduces two party regulations modified the main changes and needs to grasp several key problems; the fourth part on how to grasp the implementation of the two regulations of the party. < code > and < Regulations > revised the necessity and revised history of the CPC Central Committee the amendment to the Chinese Communist Party members and leading cadres honest politics several guidelines > and < Chinese Communist Party discipline and Punishment Regulations > column 1 by 2015 to strengthen 第31页 party laws and regulations focus. Two party regulations revision work lasted a Years, pooling the wisdom of the whole party, ideological consensus, draw historical experience, respect for the wisdom of our predecessors, which reflects the unity of inheritance and innovation; follow the correct direction, grasp the limited goals, adhere to the party's leadership, to solve the masses of the people reflect a focus on the problem. The new revision of the < code > and < rule >, reflects the party's 18 and the eighth session of the third, the spirit of the fourth plenary session, reflecting the experience of studying and implementing the General Secretary Xi Jinping series of important speech, reflects the party's eighteen years comprehensive strictly practice. (a) revised two regulations of the party need of < the ICAC guidelines > in < in 1997 Leaders as members of the Communist Party of China clean politics certain criteria (Trial) > based on revised, the promulgation and implementation of January 2010, to strengthen the construction of the contingent of leading cadres play an important role. But with the party to manage the party strictly administering the deepening, has not been able to fully meet the actual needs. Content is too complicated, "eight prohibition, 52 are not allowed to" hard to remember, and also difficult to put into practice; the second is concisely positive advocated by the lack of prohibited provisions excessive, no autonomy requirements; the third is banned terms and discipline law, both with the party discipline, disciplinary regulations 第32页 repeat and Criminal law and other laws and regulations repeat; the fourth is to "clean" the theme is not prominent, not for the existing problems, and is narrow, only needle of county-level leading cadres above. < rule > is in 1997 < Chinese Communist Party disciplinary cases (Trial) > based on revision, in December 2003 the promulgation and implementation, to strengthen the construction of the party play very important role. Along with the development of the situation, which many provisions have been unable to fully meet the comprehensive strictly administering the practice needs. One is Ji law, more than half of the provisions and criminal law and other countries laws and regulations Repetition; two is the political discipline regulations is not prominent, not specific, for violation of the party constitution, damage the authority of Party Constitution of misconduct lack necessary and serious responsibility to pursue; third is the main discipline for the leading cadres, does not cover all Party members. Based on the above situation, need to < the criterion of a clean and honest administration > and < rule > the two is likely to be more relevant regulations first amendment. By revising, really put the authority of Party discipline, the seriousness in the party tree and call up the majority of Party members and cadres of the party constitution of party compasses party consciousness. (II) two party regulations revision process the Central Committee of the Communist Party of China attaches great importance to two regulations revision . Xi Jinping, general books recorded in the Fifth 第33页 Plenary Session of the eighth session of the Central Commission for Discipline Inspection, on the revised regulations < > made clear instructions. According to the central deployment, the Central Commission for Discipline Inspection from 2014 under six months begin study two regulations revision. The Standing Committee of the Central Commission for Discipline Inspection 4 review revised. Comrade Wang Qishan 14 times held a special meeting to study two regulations revision, amendment clarifies the direction, major issues of principle, path and target, respectively held a forum will listen to part of the province (area) secretary of the Party committee, Secretary of the Discipline Inspection Commission, part of the central ministries and state organs Department The first party committee is mainly responsible for people, views of experts and scholars and grassroots party organizations and Party members. Approved by the Central Committee of the Communist Party of China, on 7 September 2015, the general office of the Central Committee of the Party issued a notice to solicit the provinces (autonomous regions, municipalities) Party, the central ministries and commissions, state ministries and commissions of the Party (party), the General Political Department of the military, every 3 people organization of Party of two regulations revision opinion. Central Commission for Discipline Inspection of extensive solicitation of opinions, careful study, attracting, formed a revised sent reviewers. In October 8 and October 12, Central Committee Political 第34页 Bureau Standing Committee and the Political Bureau of the Central Committee After consideration of the two regulations revised draft. On October 18, the Central Committee of the Communist Party of China formally issued two regulations. Can say, two laws amendment concentrated the wisdom of the whole party, embodies the party. Second, < code > and < Regulations > revision of the basic principles of two party regulations revision work and implement the party's eighteen, ten eight plenary, the spirit of the Fourth Plenary Session of the Eleventh Central Committee and General Secretary Xi Jinping important instructions on the revised < low political criterion > and < Regulations >, highlighting the ruling party characteristics, serious discipline, the discipline quite in front of the law, based on the current, a long-term, advance as a whole, with Bu Xiuding independent < rule > and < rule >. Main principle is: first, adhere to the party constitution to follow. The constitution about discipline and self-discipline required specific, awaken the party constitution of party compasses party consciousness, maintaining the authority of the constitution. General Secretary Xi Jinping pointed out that "no rules, no side round. Party constitution is the fundamental law, the party must follow the general rules. In early 2015 held the eighth session of the Central Commission for Discipline Inspection Fifth Plenary Session of the 16th Central Committee, Xi Jinping again pointed out that constitution is the party must follow the general rules, but also the general rules." the revision 第35页 of the < code > and < rule > is Method in adhere to the regulations established for the purpose of combining rule of virtue is to adhere to the party constitution as a fundamental to follow, the constitution authority set up, wake up the party constitution and party rules the sense of discipline, the party constitution about discipline and self-discipline specific requirements. 4 second is to adhere to in accordance with the regulations governing the party and the party. The Party of rule of virtue "de", mainly refers to the party's ideals and beliefs, excellent traditional style. The revised the < code > closely linked to the "self-discipline", insisting on the positive initiative, for all members, highlight the "vital few", emphasized self-discipline, focusing on the morality, and the majority of Party members and the ideological and moral standards. The revised < > Ji method separately, Ji, Ji Yan to Method, as a "negative list", emphasizing the heteronomy, focusing on vertical gauge. Is this one high and one low, a positive reaction, the strict party discipline and practice results transformation for the integration of the whole party to observe moral and discipline requirements, for the majority of Party members and cadres provides benchmarking and ruler. Third, insist on to. In view of the problems existing in the party at the present stage, the main problems of Party members and cadres in the aspect of self-discipline and abide by the discipline to make clearly defined, especially the party's eighteen years strict political discipline and political rules, organization and discipline and 第36页 to implement the central eight provisions of the spirit against the four winds and other requirements into Disciplinary provisions. Not one pace reachs the designated position, focusing on in line with reality, pragmatic and effective. After the revision of major changes, major changes in the < code > and < rule > modified and needs to grasp several key problems (a) < code > < code > adhere to according to regulations governing the party and party with morals in combination, for at the present stage, the leadership of the party members and cadres and Party members in existing main problems of self-discipline, put forward principles, requirements and specifications, showing Communists noble moral pursuit, reflected at all times and in all over the world ethics from high from low 5 common requirements. One is closely linked to the "self-discipline", removal and no direct relation to the provisions of . the second is adhere to a positive advocate, "eight prohibition" 52 are not allowed to "about the content of the" negative list moved into synchronization amendment < cases >. Three is for all the party members, will apply object from the leadership of the party members and cadres to expand to all Party members, fully embodies the comprehensive strictly required. The fourth is prominent key minority, seize the leadership of the party members and cadres is the key, and put forward higher requirements than the ordinary Party members. Five is to simplify, and strive to achieve concise, easy to understand, easy to remember. The revised < code > is the ruling Party since the first insists on 第37页 a positive advocate forAll Party members and the self-discipline norms, moral declaration issued to all members of the party and the National People's solemn commitment. > < criterion of a clean and honest administration consists of 4 parts, 18, more than 3600 words. After the revision of the < code >, a total of eight, 281 words, including lead, specification and Party member cadre clean fingered self-discipline norms, etc. Part 3 members low-cost clean and self-discipline, the main contents can be summarized as "four must" "eight code". Lead part, reiterated on ideal and faith, fundamental purpose, the fine traditions and work style, noble sentiments, such as "four must" the principle of requirements, strong tone of self-discipline, The higher request for 6 and supervised tenet, the foothold in permanent Bao the party's advanced nature and purity, to reflect the revised standards requirements. Members of self-discipline norms around the party members how to correctly treat and deal with the "public and private", "cheap and rot" thrifty and extravagance "bitter music", put forward the "four norms". Party leader cadre clean fingered self-discipline norms for the leadership of the party members and cadres of the "vital few", around the "clean politics", from civil servant of the color, the exercise of power, moral integrity, a good family tradition and other aspects of the leadership of the party members and cadres of the "four norms" < > < norm norm. "The Party member's self-discipline norms" and "party members and leading cadre clean fingered self-discipline norms," a 第38页 total of eight, collectively referred to as the "eight". "Four must" and "eight" of the content from the party constitution and Party's several generation of leaders, especially Xi Jinping, general secretary of the important discussion, refer to the "three discipline and eight points for attention" statements, and reference some embody the Chinese nation excellent traditional culture essence of epigrams. (2) the revised regulations, the main changes in the revised Regulations > to fully adapt to the strictly requirements, reflects the according to the regulations governing the law of recognition of deepening, the realization of the discipline construction and Jin Ju. < rule > is party a ruler, members of the basic line and follow. And the majority of Party members and cadres of Party organizations at all levels should adhere to the bottom line of thinking, fear discipline, hold the bottom line, as a preventive measure, to keep the party's advanced nature and purity. 1, respect for the constitution, refinement and discipline. Revised < rule > from comprehensive comb physical constitution began, the party constitution and other regulations of the Party of Party organizations and Party discipline requirements refinement, clearly defined in violation of the party constitution will be in accordance with regulations to give the corresponding disciplinary action. The original 10 categories of misconduct, integration specification for political discipline, discipline, honesty and discipline masses Ji Law and discipline and discipline and other six categories, the content of < rule > 第39页 real return to Party discipline, for the majority of Party members and listed a "negative list. 7 2, highlighting the political discipline and political rules. > < Regulations according to the stage of the discipline of outstanding performance, emphasizing political discipline and political rules, organization and discipline, in opposition to the party's leadership and the party's basic theory, basic line, basic program and basic experience, the basic requirement of behavior made prescribed punishment, increase the cliques, against the organization such as violation of the provisions, to ensure that the central government decrees and the Party of centralized and unified. 3, adhere to strict discipline in the law and discipline In front, Ji separated. Revised < Regulations > adhere to the problem oriented, do Ji separated. Any national law existing content, will not repeat the provisions, the total removal of 79 and criminal law, repeat the content of the public security management punishment law, and other laws and regulations. In the general reiterated that party organizations and Party members must conscientiously accept the party's discipline, die van comply with national laws and regulations; at the same time, to investigate violations of Party members and even criminal behavior of Party discipline and responsibility, > < Regulations distinguish five different conditions, with special provisions were made provisions, so as to realize the connection of Party discipline and state law. 4, reflect Wind building and anti-corruption struggle of the latest achievements. < rule > the party's eighteen years 第40页 implement the spirit of the central provisions of the eight, against the requirements of the "four winds" and transformation for disciplinary provisions, reflecting the style construction is always on the road, not a gust of wind. In the fight against corruption out of new problems, increase the trading rights, the use of authority relatives profit and other disciplinary terms. Prominent discipline of the masses, the new against the interests of the masses and ignore the demands of the masses and other disciplinary terms and make provisions of the disposition and the destruction of the party's close ties with the masses. Discipline to protect the party's purpose. 8 of these regulations, a total of three series, Chapter 15, 178, more than 24000 words, after the revision of the regulations a total of 3 series, Chapter 11, 133, 17000 words, divided into "general" and "special provisions" and "Supplementary Provisions" Part 3. Among them, add, delete, modify the provisions of the proportion of up to nearly 90%. 1, the general general is divided into five chapters. The first chapter to the regulations of the guiding ideology, principles and scope of application of the provisions, highlight the strengthening of the party constitution consciousness, maintenance the authority of Party Constitution, increase the party organizations and Party members must abide by the party constitution, Yan Centralized centralized, would examine at all levels of the amended provisions implementing and maintaining Party discipline, and consciously accept the party discipline, 第41页 exemplary compliance with national laws and regulations. The second chapter of discipline concept, disciplinary action types and effects of the regulations, will be a serious warning from the original a year for a year and a half; increase the Party Congress representative, by leaving the party above (including leave probation) punishment, the party organization should be terminated its representative qualification provisions. The third chapter of the disciplinary rules of use prescribed in the discipline rectifying process, non convergence, not close hand classified as severely or heavier punishment. "Discipline straighten "At least eighteen years of five years, these five years is to pay close attention to the provisions of the central eight implementation and anti -" four winds ". The fourth chapter on suspicion of illegal party disciplinary distinguish five different conditions, with special provisions were made provisions, to achieve effective convergence of Party and country 9 method. < rule > the provisions of Article 27, Party organizations in the disciplinary review found that party members have committed embezzlement, bribery, dereliction of duty dereliction of duty and other criminal law act is suspected of committing a crime shall give cancel party posts, probation or expelled from the party. The second is < Regulations > Article 28 the provisions of Party organizations in the disciplinary review But found that party members are stipulated in the criminal law, although not involved in a crime shall be investigated for Party discipline and responsibility should 第42页 be depending on the specific circumstances shall be given a warning until expelled punishment. This situation and a difference is that the former regulation behavior has been suspected of a crime, the feeling is quite strict, and the latter for the behavior not involving crime, only the objective performance of the provisions of the criminal code of behavior, but the plot is a crime to slightly. < Regulations > the 29 provisions, Party organizations in the discipline review found that party members and other illegal behavior, affect the party's image, the damage to the party, the state and the people's interests, we should depend on the situation Seriousness given disciplinary action. The loss of Party members, seriously damaging the party's image of behavior, should be given expelled from the party. At this article is party member is in violation of the criminal law outside the other illegal acts, such as violates the public security administration punishment law, customs law, financial laws and regulations behavior. The fourth is < cases > Article 32 stipulates, minor party members and the circumstances of the crime, the people's Procuratorate shall make a decision not to initiate a prosecution, or the people's court shall make a conviction and exempted from criminal punishment shall be given within the party is removed from his post, probation or expelled from the party. Party members and crime, sheets were fined in accordance with For acts; the principal Ordinance amended the provisions of the preceding paragraph. This is the new content, in order to achieve Ji method effective 第43页 convergence. Five is < > the thirty third article 10 of the provisions, the Party member due to an intentional crime is sentenced to criminal law (including probation) sheets or additional deprivation of political rights; due to negligence crime and was sentenced to three years or more (excluding three years) a penalty, shall give expelled punishment. Due to negligence crime is convicted and sentenced to three years (including three years) in prison or be sentenced to public surveillance, detention, shall in general be expelled from the party. For the individual may not be expelled from the party, should control Approval. This is followed and retained the original > < Regulations the provisions of punishment party authorization rules and report to a level party organizations. For is "party members with criminal acts, and by the criminal punishment, generally should be expelled from the party". The fifth chapter of probationary Party member of the discipline and discipline after missing members of the treatment and punishment decisions, such as the implementation of the provisions, clear the related party discipline and punishment decision made after, for duties, wages and other relevant alteration formalities for the longest time. 2, sub sub section will the original regulations of 10 categories of acts of violation of discipline integration revised into 6 categories, respectively, in violation of the punishments for acts of political discipline "in violation of discipline behavior of punishment" in violation of integrity of disciplinary action points "of violation punishments for acts 第44页 of mass discipline" "the violation of work discipline, punishment" in violation of discipline of life behavior punishment "6 chapters. 3, annex" Supplementary Provisions "clear authority making supplementary provisions of, cases of interpretative organ, as well as regulations implementation time and retroactivity etc.. 11 (3) learning understanding > < regulations needs to grasp several key problems The first problem -- about the violation of political discipline behavior > < new ordinance chapter 6 the political discipline column for the six disciplines, that is the main opposition to Party leadership and the opposition of the basic theory, basic line, basic program and basic experience, basic requirements of misconduct made provisions of the disposition, especially the eighteen since the CPC Central Committee put forward the Yan Mingzheng treatment of discipline and political rules requirements and practical achievements transformation for Discipline article, increase the false debate central policies, cliques, against the organization review, make no discipline of the principle of harmony terms. These are the party's eighteen years in comprehensive strictly Process combined with the practice of rich content. (1) false debate the central policies and undermine the Party of centralized and unified the problem is made in accordance with the provisions of the party constitution. Constitution in general programme requirements adhere to democratic centralism is one of the requirements of the construction of the party must adhere to the four cardinal. Application 第45页 of this principle is not only the party the basic organization principle and is also the mass line in party life, it requires that we must fully develop inner-party democracy, respect for the dominant position of Party members, safeguarding the Party member democratic rights, give full play to the enthusiasm and creativity of the party organizations at all levels and Party members, at the same time, also must implement the right concentration, ensure the party's mission < the chaos in unity and concerted action to ensure that the party's decision to get quickly and effectively implementing. The Party Central Committee formulated the major principles and policies, through different channels and ways, fully listen to the party organizations and Party members of the opinions and suggestions, but 12 is some people face to face not to say back blather "" will not say, after the meeting said, "" Taiwan does not say, and nonsense ", in fact, not only disrupt the people thought, some causing serious consequences, the damage to the Party of the centralized and unified, hinder the central policy implementation, but also a serious violation of the democratic system of principles. There is no doubt that shall, in accordance with the Regulations > 4 Specified in Article 6 to give the appropriate punishment. For did not cause serious consequences, to give criticism and education or the corresponding tissue processing. (2) about the destruction of the party's unity < New Regulations > the forty eighth to fifty second article, to damage Party's unity unified and violation of political discipline, punishment situation 第46页 made explicit provisions. Article 52 of the new "in the party get round group, gangs seek private gain, cliques, cultivate private forces or through the exchange of interests, for their own to create momentum and other activities to gain political capital, given a serious warning or withdraw from their party posts disposition; if the circumstances are serious, to give Leave a party to observation or expelled from the party. (3) on against the organization review of the provisions of the constitution, party loyalty honesty is party members must comply with the obligations. Members must obey the organization decision, shall not violate the organization decided encounters by asking questions to find organization, rely on the organization, shall not deceive the organization, against the organization. For example, after the investigation does not take the initiative to explain the situation, but to engage in offensive and defensive alliance, hiding the stolen money is against survey organization, is a violation of the behavior of political discipline. Article 24 of the original > < Regulations, although the provisions of the interference, hinder group review the behavior of the fabric can be severely or 13 Aggravated punishment, but did not put this kind of behavior alone as a discipline for qualitative amount of discipline. > < new regulations increase the Article 57, "anti organization review, one of the following acts, given a warning or serious warning; if the circumstances are relatively serious, giving removed from or placed on probation within the party post; if the circumstances are serious, give 第47页 expelled from the party: (a) on supply or forged, destroyed, transfer, conceal evidence; (II) to prevent others expose, providing evidence Material; (III) harboring co personnel; (4) to the organization to provide false information, to hide the fact; (5) the him against the acts of the organization review. "< rule > add this clause to the Constitution requires more specific, the previous no punishment in accordance with the definite list and put forward clear punishment in accordance with. (4) about organizing or participating in superstitious activities as < Regulations > about engage in activities of feudal superstition obstruction of social management order" violations of Article 164 the provisions, but according to the original < rule > only in disrupting production, work, social life order The case to be disciplinary treatment, in other words, alone make the feudal superstition, organize or participate in the activities of feudal superstition of, does not constitute a violation. Which is not consistent with the requirements of our party's political party. > < new regulations in this change is, superstitious activities on the political discipline, increase the Article 58, is the organization of Party members, in superstitious activities included in violation of the negative list of political discipline deserves punishment, which and Party members should adhere to the correct political principle, political standpoint and viewpoint is consistent. 14 the second question about organization and discipline violation behavior of democratic centralism is our The party's fundamental 第48页 organizational system. < New Regulations > Chapter 7 "in violation of the behavior of organizational discipline punishment" mainly for violation of democratic centralism, contrary to the "four obey the discipline behavior for source classification rules. Increased not in accordance with the relevant provisions or requirements to the organization for instructions to report on major issues; do not report truthfully report about personal matters; falsify personal archives; hide before joining the party serious mistakes; leading cadres in violation of the relevant provisions of the organization, will participate in the spontaneous formation of the old Xiang, Alumni Association, comrades in arms; to obtain illegal country residence abroad or foreign nationality, illegal for private frontier Documents such as discipline terms. (1) on the report truthfully report personal matters in 2010 the Central Committee of the Communist Party of China office, office of the State Council introduced < provisions on issues related to the leading cadres to report personal >, is clear about the request, deputy division level and above leading cadres should truthfully report changes in my marriage and spouse, children, moved to the country (territory), practitioners, income, real estate, investment and other matters, for failing to report, do not report, concealed and unreported, according to the seriousness of the case, giving criticism and education, and to make a correction within a time limit, shall be ordered to make a check, the commandment Jiemian conversation, informed criticism or jobs, free Post 第49页 processing, constitute violations, in accordance with the relevant provisions shall be given a disciplinary sanction. But since the original < Regulations > and there is no corresponding specific terms, the violation of the regulations, do not report, as a false report about personal matters, there is no corresponding disciplinary action terms, in practice it is difficult to operate. In this regard, in order to solve is not reported, as a false report about personal matters 15 asked censure, the new < Regulations > add the Article 67 of violation of personal matters related to reporting requirements, report truthfully report the clear punishment basis, making this kind of violation behavior is no longer free drilling for Exhibition on matters of personal checks to verify and supervision of cadres, discipline review provides a powerful discipline guarantee. (2) about the illegal organization, to fellow, alumni, friends of the war will < regulations stipulated in Article 68 of >, leading cadres of the party in violation of relevant provisions of the organization, will participate in the spontaneous formation of fellow, Alumni Association, comrade in arms to give the punishment according to the seriousness of the case. Here special needs note is three points: this provision for only the leading cadres ", reflecting the high requirements of leading cadres; second violation in 2002, the Central Commission for Discipline Inspection, the central Organization Department and the The relevant provisions of the General Political Department jointly issued the < off in leading cadres not to participate in 第50页 the initiative to set up "the villagers would be" alumni "" comrades in arms organization notice >. That is to say, to the spontaneous formation of fellow, Alumni Association, comrades in arms will constitute the premise of discipline is a violation of the provisions of this. The notification specified, leading cadres are not allowed to participate in the spontaneous incorporation of fellow, alumni, between comrades association would like the organization and shall not bear the sorority Human and the organizer shall not hold the corresponding position in the sorority; shall not borrow machine woven "network" and engage in kiss sparsely, round and round the gangs, but not "align" "Jieyi Gold Orchid" behavior. The third is to emphasize here that shall be organized to participate in the initiative to set up the villager, Alumni Association, comrades in arms. The so-called 16 spontaneous was established mainly means without registration. Therefore, Party members include leading cadres in the normal range of fellow, alumni, comrades in the party is not a violation of the rules of Party discipline. The three problem about integrity violations discipline Lian Jie discipline has been eighteen years clean government and anti The focus of the work of corruption. This Ordinance to amend, honesty and discipline this biggest adjustment, the new content, most of which prescribed by the original < criterion of a clean and honest administration > 8 ban and 52 are not allowed into the basic this part. (1) the central eight provisions of the spirit and requirements into < New > in 第51页 the regulations of the party's eighteen years, central resolutely implement the provisions of the eight and pay close attention to the node and intensive briefing, on public funds, private bus, public funds tourism, gifts of public funds, the big parade and lavish weddings and festive, illegal payment allowances and subsidies, illegal construction of buildings such as the original masses reflects the relatively strong, "four winds" problem of the Resolute rectification. But original < Regulations > to eat and drink, super standard reception and no clear and specific expression, new < rule > will implement eight Central provisions of the spirit of the problem increased to "clean cheap self-discipline" chapter, clear to exceed the standard, beyond the scope of the reception or borrow machine eating and drinking etc. some in violation of the provisions of the spirit of the eight central relevant persons responsible for punishment, once the violation will be according to the < rule > severely punished, binding, enhanced significantly. One is to add Article 87, about to obtain illegal, hold, and the actual use of the sports card, golf ball cards and other consumer card. Illegal access to private clubs made the punishment provisions. The second is increase the Article 97, has made provisions of the disposition of illegal self pay or 17 spamming allowances, subsidies and bonuses. The third is added to the Article 99, on violation of super standard, beyond the scope of the reception or borrow machine eat and drink to make the provisions of punishment. The fourth is to increase the Article 101, on the management 第52页 of conference activities in violation of the provisions made sanctions regulations. The fifth is the increased Article 102, for violation of office space management provisions made the punishment provisions. Six is to split the original < rule > Article 78, formed article 98, Article 100 of public Models of tourism, violate the provisions on the administration of the use of discipline of the bus through the list of made a more detailed provisions, apply more operational. Seven is increased the article 96, in violation of the relevant provisions of the, to participate in public funds to pay for dinner, high consumption of entertainment, fitness activities and public funds to buy gift, send gifts to make the provisions of the disposition. On the violation of the central provisions of the spirit of the eight, in addition to > < new regulations into "violation of honesty and self-discipline" misconduct outside, is different with the original < Regulations >, revised < rule > clearly defined not only to disposition of the directly responsible persons, but also dispose of collar Guide responsibilities. (2) increased trading rights, use of authority or position influence as relatives and close to profit violation of the terms of the < New Regulations > absorption < clean politics several guidelines > the relevant provisions spirit, increase the "negative list, including trading rights, the functions and powers or duties of influence as relatives and staff around profit. Increase Article 81" mutual use of office or authority ring for each other and their spouses, children and their spouses and other relatives, 第53页 around 18 personnel and other specific relationship between the people to seek benefits engage in trading rights, given a warning or serious warning Sanctions; if the circumstances are relatively serious, giving removed from or placed on probation within the party post; if the circumstances are serious, shall be expelled from the party. Increase Article 82 "connivance, acquiescence to the spouse, children and spouse etc. relatives and staff around the effect of Party members and cadres personal authority or position for personal gain, if the circumstances are relatively minor, given a warning or a serious warning; if the circumstances are relatively serious, giving removed from or placed on probation within the party post; if the circumstances are serious, the given Expelled from the party. Party members and cadres of the spouses, children and their spouses does the actual work and get salary or although the actual work but to receive significantly beyond the same rank salary standard, Party members and cadres informed fails to correct, in accordance with the provisions of the preceding paragraph. "(3) about the gifts, gifts misconduct from handling practices in recent years, engaged in official cadres received gifts, gifts problems more prominent. This has seriously affected the image of Party members and cadres, damaged the relations between the party and the masses, and is a hotbed of corruption, is really necessary for this kind of behavior to be disciplined. < rule > no on accepting gifts, gifts, Card consumption behavior to engage in simple "one 第54页 size fits all", but the difference between the different separately. One is in accordance with the provisions of Article 83, accepting may affect the impartial enforcement of the official gifts, gifts, consumer cards to depending on the seriousness of the case shall be given disciplinary sanctions. That is to say, for may affect the fair execution of business gifts, gifts, consumer cards are not allowed to accept. 19 is in accordance with the provisions of Article 83, accepting was significantly higher than normal ceremony is still exchanges of gifts, gifts, consumer card to disciplinary action. This is new regulations that daily life is purely reciprocity, accepting the same thing, boys , fellow friends gifts, gifts, shopping cards, although and fair execution of business has nothing to do, also want to as the case shall be dealt with, the situation is obviously beyond normal reciprocity ". The so-called" reciprocity ", one is emphasizes the reciprocal in protocol. In other words is you to me how, I to you how, not only does not go. The second is to significantly exceeded the normal local economy level, customs and habits, economic capacity of individual gifts, gift value. Specific sanctions to according to the processing of a variety of factors to consider, as appropriate. The third is the root according to the provisions of Article 84," to Engaged in public service personnel and their spouses and children, children's spouses and other relatives and other specific relationship presented Ming Xianchao normal reciprocity of gifts, gifts, consumer card, if the circumstances are 第55页 relatively serious, given a warning until probation. "In accordance with the above provisions, gift giving significantly beyond the normal reciprocity, giver constitute the discipline. (4) on illegal trading of stocks or of other regulations of securities investment < > Article 88 is engaged in punishment regulation of camp and activity in violation of the relevant provisions on. Among them, 3 will" buying and selling stocks or in other securities investment "column as one of disciplinary cases Out. First need to be clear, > < regulations did not change the provisions of the Ordinance. The ordinance of the provisions of the second paragraph of Article 77 provisions "who, in violation of the provisions of the sale of stocks" is one of the violation, and at the beginning of the first paragraph of this article "violation of 20 against the relevant provisions of the" textual representation of the repeat revision. In, just from the legislative technique removed the "personal" in violation of the provisions, content and not to change the original provisions. Need to clear is, "buy or sell a stock or of other securities investment" refers to violation of the relevant provisions refers to in April 2001, the Party Central Committee, the State Council promulgated the On the work of the party and government organs staff's personal investment in securities if dry provisions >. According to the provisions of Article 3, use of work time, office facilities, the sale of stocks and securities investment fund belongs to illegal behavior. The fourth question, about the violation of the masses of the disciplinary actions < 第56页 new regulations > would violate public discipline behavior of a single set of a class of restored "three rules of discipline and eight note" in the discipline of the masses of excellent traditional. < New Regulations > Chapter 9 "to violate the masses of disciplinary action", mainly the destruction of the party's close ties with the masses of misconduct made provisions on disciplinary; enrich and perfect the super standard, beyond the scope of Xiang Qun < All to raise fund and labor, in for involving the public affairs deliberately, chinakayao, in social security, policy support, disaster relief funds and materials and other matters assigned any kind and affectionate friends, obviously unfair acts against the interests of the masses of the disciplinary terms; increase the terms not in accordance with the provisions of the public party provided, government, factory and village (neighborhood) provided etc. violation of the people's right to know the behavior of the discipline. The fifth issue, on the violation of work discipline violation of work discipline added "negative list, including Party organizations carry out strictly Main responsibility for poor discipline terms. (1) the new party organization comprehensive strictly the main responsibility of the party does not fulfill the 21 or perform poor disciplinary terms < New Regulations > has a lead people to pay attention to the new terms, that is, in chapter ten "on the violation of work discipline behavior punishment" increase in the one hundred and fourteenth "party fail to perform 第57页 comprehensive strictly the main responsibility of the party or to perform comprehensive strictly the main responsibility for administering the ineffective, resulting in serious damage or serious adverse effects, to the person directly responsible and the responsibility of leadership and give a warning or serious warning. The situation is serious, giving removed from their party posts or on probation Punishment. "Here the changes. For the first time, the main responsibility write < rule >. (2) new shall report does not report or false reporting discipline shall increase the 117 bar" in the higher level units to check to inspect the work or report to the parent unit, work report of shall report the matters do not report or do not report, cause serious damage or serious adverse effects of, to the person directly responsible and the responsibility of leadership, to give warning or a serious warning; if the circumstances are serious, giving removed from their party posts or placed on probation. "For example, during the tour visits to the region, the unit Members the obligation to the inspection teams to reflect the true situation, to conceal not reported or intentionally to the inspection teams to provide false information, causing serious damage or serious adverse effects of, the person directly responsible and the responsibility of leadership should be in accordance with the provisions of < rule > Article 117 to give the appropriate punishment. (3) the new not granted in accordance with the provisions of punishment, not according to the provisions of the implementation of disciplinary measures 22 violation 第58页 of the provisions of Article 115 "Party organizations have one of the following circumstances, the direct leadership responsibility. Probation: members were sentenced punished, in accordance with the provisions give disciplinary action or in violation of state law Rules of behavior should be given disciplinary punishment and dispose of; disciplinary punishment by decision or complaint review the decision made, not in accordance with the provisions of the implementation decisions on punishment of the party, position, rank, and the treatment of the matters; Party members subject to disciplinary action, not in accordance with the cadre management authority and organizational relationships of by dispose of Party members to carry out education and supervision of daily management. "What needs to be pointed out is," cliff "demoted with cars, housing, secretary problem, implementation is not a discipline and party posts and ranks treatment by the organization department is responsible for the implementation, with cars, housing by the logistics department is responsible for the implementation of, Ji Commission responsible oversight responsibilities. The six questions, about the acts violating the discipline of life "in violation of discipline of life behavior punishment", mainly to "four winds" problems and a serious violation of social morality, family virtue acts of misconduct made provisions on disciplinary, an increase of extravagant life, contrary to the social public order and good customs disciplinary terms. Worth mentioning is, > < Regulations in Article 150 第59页 about "adultery" "mistress (Cardiff) formulation in the new < rule > is removed, to expand the scope of Article 127 provisions" and others hair improper sexual relations, let face disciplinary action Wider more strict. Four, and earnestly do a good job in the < code > and < rule > implement system of life lies in execution. < code > and < Regulations > is 23 Party organizations at all levels of a strong constraint and all Party members follow. Learning and implementing the < code > and < rule > is party committees (party), commission for discipline, discipline inspection group), the majority of Party members and cadres of the common responsibility, must party caught together, the party one execution. () Party committees (party) and play and implement comprehensive strictly the main responsibility, pays special attention to the two party regulations learning cross penetration. One is to Adhere to the party constitution is fundamental to follow, and resolutely safeguard the authority of the Party Chapter. The second is to adhere to the problem oriented, to strictly political discipline and political rule moments in the first place. The third is to adhere to the discipline and rules quite in front must not allow the bottom line to break the discipline. The fourth is to seriously organize the study of propaganda and education, in the city party members to create a disciplined, about the rules of the strong atmosphere. (II) Commission for Discipline Inspection at all levels (Discipline Inspection Group) to an important basis for the revised two party regulations as, adhere to easily 第60页 blame, strengthen supervision and enforcement And early method in combining Ji, increase accountability efforts. One is to two regulations within the party important basis, adhere to the party constitution duties, with strict discipline to maintain the constitution authority. The second is to adhere to high standards and keep the bottom line, adhere to Ji Yan in law and discipline, the discipline and rules quite in front, grasping grasping small, easily blame, comprehensive use of supervision and discipline of "four kinds of form" in the discipline embodies the strict requirements and care for the discipline, tighten up, Yan. According to discipline in accordance with regulations to carry out disciplinary review. Increase the violations punishment, clues can initiate an investigation on the trial of cases According to the discipline on the provisions of the proportion of processing and control manager maintains discipline. To focus on investigating non convergence, don't accept hand serious disciplinary violations at the same time, pay more attention to the general review of discipline 24 behavior, and gradually increase the lighter punishment. Four is to illuminate two party regulations, combined with the local district of the Department of party conduct Lianzheng to relevant laws and regulations system clean, timely research proposes to establish, change, waste release opinion, avoid conflict, and the fasten system of cage, and gradually formed not rot, not rot, not want to rot system and working mechanism. (3) the leadership of the party members and cadres 第61页 should play an exemplary role. The rate of higher consciousness of the front of the Ordinance to lead practice self-discipline norms, leading to maintain discipline of seriousness and authority. One is the above rate, demonstration and guidance, take the lead in learning and mastering the < code > and < > the requirements and regulations, do the deep understanding, learning to use. The second is to play an exemplary role in abiding by discipline rate, take the lead in practicing self-discipline norms, firmly establish before the discipline are equal, the system has no privilege, discipline is no exception, and consciously do standards, require more strict measures more practical. Third is to consciously accept supervision, conscientiously participate in the democratic life and debriefing honesty responsibility, such as Real to the party organization to report personal matters, and to accept the supervision of the work and life of the normal, habits under the supervision of the exercise of power, to carry out the work. The fourth is to set an example for the strict enforcement of discipline. Leading cadres should take the lead in the maintenance of discipline of seriousness and authority, to dare to seriously, dare to struggle, dare to offend people, for misconduct not laissez faire, but do not indulge, not tolerate to ensure the party constitution of party compasses party put in place. (4) the majority of Party members and cadres to set high standards and hold the bottom line, consciously abide by the < code > and < rule >. One is to control the < standard > and < 25 cases >, tight Close connection 第62页 with their own thoughts, practical work and life, efforts to solve the problems, to enhance the study and implement of the effectiveness and pertinence. The second is to establish a high standard and hold the bottom line, consciously in the self-discipline pursuit of high standards, strictly in the party away from the red line discipline, discipline, about the rules and know fear, distrust, the formation of the honor system, comply with the system, safeguard system of good habits. Regulations and discipline regulations of < < New Revision of the Communist Party of China clean fingered self-discipline criterion > and < Chinese Communist Party Disciplinary Regulations > is the Party Central Committee in the new situation to promote the comprehensive strictly root of the lift, the regulations of the party construction of keeping pace with the times. We should study and implement the Standards > and < > as the primary political task, adhere to the party constitution duties, adhere to the discipline of, Ji Yan in law, the full implementation of supervision and discipline accountability responsibilities for coordination and promotion "four overall" strategic layout in XX District vivid practice to provide a strong guarantee. - Si Jian Wu, and effectively enhance the implementation of the implementation of the < code > < > The consciousness of General Secretary Xi pointed out that the party is in charge of the party, to manage the party; strictly, it can cure good party. Criterion > and < rule > keep pace 第63页 with the times is our party to form a new potential strictly rules, to deepen understanding of the ruling law, is a comprehensive strictly, and strengthen the supervision within the party important grasper. Criterion > closely linked to the theme of self-discipline, self-discipline intensity-modulated, focusing on morality, for the majority of Party members and cadres set to see, feel the high standard, show the Communists noble moral sentiment; District Ordinance < < rule > the constitution of discipline integration into a political discipline, organization and discipline, honesty and discipline, discipline of the masses, work discipline, discipline, emphasize discipline, focusing on established rules, to draw the party organizations and Party members do not touch the bottom line. Party committees (party) to effectively strengthen the study and publicize the implementation of the < code > and < rule > the organization and leadership of criterion > and < > a full range, multi angle, deep publicity, the formation of study and publicize and implement the boom, in order to consolidate the development of good political environment to create a positive environment and atmosphere. The majority of Party members and cadres to strict requirements, the < rule > and < Ordinance cases > as a guide to action and behavior criterion, adhere to the moral standards and discipline of the bottom line, to maintain the discipline of worship and awe, learning, compliance, and maintain party discipline and rules of the model. The discipline inspection and supervision organs and cadres to the < code > and < > as the deepening of 第64页 the "three", and strengthen supervision and discipline of accountability is important to follow correctly grasp the use of supervision and discipline of "four types", promote the comprehensive strictly in new roots. Strict discipline, adhere to the discipline and rules quite in front of the enterprise in the implementation of expensive to implement to execute. The discipline inspection and supervision organs to implement the < code > and < Efforts to investigate cases > as an opportunity, adhere to the party should manage the party strictly, serious performance of their duties to promote two regulations implementation. Change discipline concept. From the simple "investigation of illegal" to a comprehensive "stare at violate discipline"; from the business case to prosecute the big cases and timely solve the signs of tilt to. From the orientation to the normal supervision; from the tube "minority" to resist the "most". Guide Party members and cadres to seriously implement the < code > and < rule >, consciously abide by the political, organizational, honest people, work, life six discipline. Urge the leadership cadres sent to play an exemplary role, take the lead in strictly enforced. Relaxation and rest Strong wind is Su Ji, closely linked to the "four winds" prone to multiple, the masses reflect the strong important nodes and, glued to the four winds "new form, new trends, seriously investigate and deal with violations of the central eight provisions of the spirit, to increase the bulletin exposure intensity, the formation of Chajiu" four winds "loudly, continue to release and discipline 第65页 must be strict signal. At the same time, extended supervision tentacles, through the development of the rural and fishery party conduct Lianzheng construction inspection, issued in a timely manner, Chajiu occurred in grassroots side of corruption and unhealthy, and earnestly safeguard the interests of the masses and social stability. The creativity and discipline. Grasp and make good use of the supervision and discipline of" four types ", to ensure the Promoting clues to lots of discipline and the law of the vacuum tube, strict together. Not only to the "less" and "very few" thorough investigation severely punished, but also the "most" to maintain zero tolerance trend through layers of conductive pressure, let the discipline about the rules for each party members and cadres consciously follow. At present, it is necessary to implement the "list" management, strictly follow the clues to the disposal of five standards, make the classification of disposal, dynamic cleanup. Zadok Party committees at all levels to implement the main responsibility, comprehensive use of disciplinary action and tissue processing and other means to effectively curb the commonplace, used to see do not blame the "small problem", not because of "practice" and "exception". Prominent Discipline characteristics, the problems of violation of discipline and rules into the focus of supervision and discipline and disciplinary review. At the same time, increase case double check the intensity, the serious problems of discipline violations or "four winds" ban but not absolutely, not only to be 第66页 held directly responsible, but also held leadership responsibility; not only to pursue studies the main responsibility of the Party committee, and to pursue Commission for Discipline Inspection and supervision responsibilities and promote accountability to become the new norm. The implementation of supervisory responsibility. Maintain < code > and < rule > the seriousness and authority of the discipline and rules and truly become the party's ruler. Discipline as supervision within the party the specialized agency, we must strengthen the responsibility to act, adhere to the Impartial discipline accountability, earnestly will be strict discipline, discipline must be punished, and severely punish the acts in violation of rules and regulations. 第67页
本文档为【大连交通大学《数据库原理及应用》刘金玲版&#40;56课时&#41;习题参考答案】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_842972
暂无简介~
格式:doc
大小:218KB
软件:Word
页数:92
分类:生活休闲
上传时间:2017-12-20
浏览量:160