Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Relational Database Model - Database Management and Design - Lecture Slides, Slides of Introduction to Database Management Systems

Some concept of Database Management and Design are Advanced SQL, Database Design, Database Administration, Databases In Electronic Commerce, Entity Relationship Modeling, Intro To Database Systems. Main points of this lecture are: Relational Database Model, Database, Logical View, Relational, Components, Relationships Among, Entities, Attributes, Organized, Database Operators

Typology: Slides

2012/2013

Uploaded on 04/27/2013

sonu
sonu 🇮🇳

4.3

(14)

41 documents

1 / 71

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Relational Database Model
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47

Partial preview of the text

Download Relational Database Model - Database Management and Design - Lecture Slides and more Slides Introduction to Database Management Systems in PDF only on Docsity!

Relational Database Model

In this chapter, you will learn:

  • That the relational database model takes a logical view of data
  • That the relational model’s basic components are entities, attributes, and relationships among entities
  • How entities and their attributes are organized into tables

A Logical View of Data

  • Relational model
    • Enables us to view data logically rather than physically
    • Reminds us of simpler file concept of data storage
  • Table
    • Has advantages of structural and data independence
    • Resembles a file from conceptual point of view
    • Easier to understand than its hierarchical and network database predecessors

Tables and Their

Characteristics

  • Table : two-dimensional structure composed of rows and columns
  • Contains group of related entities an entity set - Terms entity set and table are often used interchangeably

Characteristics of a Relational Table

Table 3.

STUDENT Table Attribute Values

Student Classification

Keys (continued)

  • Composite key
    • Composed of more than one attribute
  • Key attribute
    • Any attribute that is part of a key
  • Superkey
    • Any key that uniquely identifies each entity
  • Candidate key
    • A superkey without redundancies

Controlled Redundancy

  • Makes the relational database work
  • Tables within the database share common attributes that enable us to link tables together
  • Multiple occurrences of values in a table are not redundant when they are required to make the relationship work
  • Redundancy is unnecessary duplication of data Docsity.com

An Example of a

Simple Relational Database

Keys (continued)

  • Foreign key (FK)
    • An attribute whose values match primary key values in the related table
  • Referential integrity
    • FK contains a value that refers to an existing valid tuple (row) in another relation
  • Secondary key
    • Key used strictly for data retrieval purposes

Relational Database Keys

An Illustration of Integrity

Rules

A Dummy Variable Value

Used as a Flag