This presentation is the property of its rightful owner.
Sponsored Links
1 / 41

第 6 章 数据库规范化设计 PowerPoint PPT Presentation


  • 73 Views
  • Uploaded on
  • Presentation posted in: General

第 6 章 数据库规范化设计. 孙焘. 重点:. 1. 2. 3. 4. 概念模型. 物理模型. 多 framePowerDesigner 工具的使用 页面设计. 三个范式的基本概念. 1. 2. 3. 4. “ 强制”关系概念的理解. 概念模型和物理模型的区别. 多对多模型的转换. 范式概念的理解. 难点:. 6.1 E-R 模型. E-R 图也即实体 - 联系图 (Entity Relationship Diagram) ,提供了表示实体型、属性和联系的方法,用来描述现实世界的概念模型。

Download Presentation

第 6 章 数据库规范化设计

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


6

6


6

1

2

3

4

framePowerDesigner


6

1

2

3

4


6 1 e r

6.1 E-R


6

  • E-R-(Entity Relationship Diagram)

  • E-R:-Entity-Relationship Approach

  • E-R


Entity

(Entity)

  • ;E-R


Attribute

(Attribute)

  • E-R


Relationship

(Relationship)

  • E-R


6

  • 111

  • 111N

  • N,M


6 2 key

6.2 (Key)

  • (PK)

  • (FK)ABA


6

6.3


6


6

  • ER


6

  • ER

  • ER

  • ER


6

6.4


6

6.5


6

(1NF)

  • RrR1NF1NF


6


6

09001

M

Email:[email protected], Phone:88888888

09002

M

Email:[email protected], Phone:77777777


6

(2NF)

  • R1NFR


6


6

2(CS2)


6

CS2

  • (1)nn-1

  • (2)

  • (3)

  • (4)


6

(3NF)

  • R2NFRUFR"A B C"CA


6

  • 1

  • 2


6

Course


6

-BCNF


6

StorehouseManage(ID, ID, ID, )

(ID, ID) (ID, )

(ID, ID) (ID, )

(ID, ID)(ID, ID)StorehouseManage

(ID) (ID)

ID) (ID)


6

BCNF

(1)

"ID""""ID""ID"

(2)

(3)

ID


6

StorehouseManage(ID, ID)

Storehouse(ID, ID, )

BCNF


6

  • BC


6 6 sql

6.6 SQL

  • SQL SQL


6

  • WITH SCHEMABINDING CHECK DEFAULT Transact-SQL XML (schema_name.object_name)


6


6

  • X Y X Y SQL X Y X Y Y X X Y


6

  • X Y

  • USE tempdb;

    GO

    CREATE PROCEDURE dbo.Y AS

    SELECT * FROM sys.objects

    GO

    CREATE PROCEDURE dbo.X as

    EXEC dbo.Y;

    GO


6

  • X Y

  • SELECT *

    FROM sys.sql_expression_dependencies

    WHERE referencing_id = OBJECT_ID('X')

    AND referenced_id = OBJECT_ID('Y')

    AND referenced_schema_name = 'dbo'

    AND referenced_entity_name = 'Y'

    AND referenced_database_name IS NULL

    AND referenced_server_name IS NULL;

    GO


6

6.7

  • authors titles


6

  • pubs titleauthor


6

  • 3

  • inner joinselect * from where id in (select id from )


6


  • Login