Database Design Concepts

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

32 Terms

1
New cards

Conceptual Design

• This stage provides a high-level view of the system and its

data requirements.

• The focus is on what data should be stored, not on how it

will be stored.

• The goal is to ensure that the design reflects real-world

business or user requirements.

• Entity Relationship Diagrams (ERDs) are commonly used to

represent the model.

2
New cards

Logical Design

• This stage translates the conceptual model into a detailed

relational schema.

• Logical design ensures data integrity and consistency

across the system.

• Normalization techniques are applied to organize data

and reduce redundancy.

• At this stage, the design remains independent of any

specific database software.

3
New cards

Physical Design

• This stage implements the logical design in a specific

DBMS such as MySQL, Oracle, or PostgreSQL.

• The design considers database performance, security,

and maintenance needs.

• Backup and recovery strategies are also planned at this

stage.

• Unlike the logical stage, this step is tied to hardware and

system requirements.

4
New cards

Database Design Process

Conceptual Design → Logical Design → Physical Design

5
New cards

Entities

• are the things about which we store data.

• “Something” of significance to the business about which

data must be known.

• A name for a set of similar things that you can list.

• Usually a noun and have Instances.

• Instance is a more specific example of an ______.

6
New cards

Entities can be:

• Tangible, like PERSON or PRODUCT

• Intangible, like SKILL LEVEL

• An Event, like CONCERT

7
New cards

Attributes

• Like an entity, an ____ represents something of

significance to the business.

• An ____ is a specific piece of information that helps:

• Describe, Quantify, Qualify, Classify, and Specify an Entity.

• An _____ has a single value that can be a number,

character string, a date, an image, a sound, etc.

8
New cards

Attributes

These are called “data types” or “formats.” Every attribute

stores one piece of data of one specific data type.

9
New cards

Volatile Attributes

Some attributes (such as age) have values that constantly

change.

10
New cards

Non-Volatile Attributes

Other attributes (such as order date) will rarely change, if

ever.

11
New cards

Mandatory Attribute

Must CONTAIN a value

12
New cards

Optional Attribute

may contain a value or be left null.

13
New cards

Identifiers

• A unique attribute or a set of attributes that

distinguishes one entity from another.

• It serves as a key element in maintaining data integrity

and ensuring accurate data retrieval.

• Critical in database design because they

allow relationships to be formed and maintained between

entities.

14
New cards

Primary Identifier

The unique attributes used to help distinguish one instance from

another. Commonly known as Unique Identifier (UID)

15
New cards

Secondary Identifier

Additional or alternative attributes used to supplement the primary

identifier.

16
New cards

Composite Identifier

A unique identifier formed by combining two or more attributes.

17
New cards

Natural Identifier

An attribute that already exists in the real world and uniquely

identifies an entity.

18
New cards

Artificial Identifier

A database-generated attribute used to uniquely identify an

entity when no natural identifier is available or practical.

19
New cards

Entity Relationship Modeling

• A theoretical framework or methodology used to describe data and their relationships conceptually.

• Defines the rules, principles, and concepts (entities, attributes, relationships, data types, constraints, etc.).

• “Implementation-Free Model”

20
New cards

Entity Relationship Diagram

• A visual representation or diagram of the ERM.

• It uses symbols and notations (Crow’s Foot, Chen, Barker’s, etc.) to illustrate entities and their relationships.

21
New cards

ERD has 3 components:

Entities, Attributes, Relationships

22
New cards

ERD has 3 types of notations

Chen, Barker, Crow’s Foot

23
New cards

Entity

• Must have a name (UPPERCASE)

• Will contain attributes

• Will have at least 1 relationship

24
New cards

Attributes

They have values and types.

25
New cards

Attribute - Barker’s

• Unique Identifier: #UID is an attribute whose value uniquely identifies an entity instance. Implemented as a Primary Key

• Mandatory Attribute: *a mandatory attribute is one whose value cannot be null.

• Optional Attribute: o an optional attribute is one whose value can be null.

26
New cards

Relationship

• The way in which two or more people or things are connected.

• Relationship have Optionality and Cardinality

27
New cards

Relationship - Barker’s

• Optionality

• Mandatory: represented by a solid line specifying that each instance from an entity MUST be related to another

instance.

• Optional: represented by a dashed line specifying that each instance from an entity MAY be related to another instance.

28
New cards

Cardinality

  • Measures the quantity of something

  • Ask the question how many?

29
New cards

ERD Drawing Conventions

• It is efficient to communicate information in a way that can easily be understood by many.

• ERD Drawing Convention follows a set of rules. An international standard.

• Entity

• Attribute

• Relationship

30
New cards

Steps for ERD Drawing Conventions

Step 1: Define all entities and draw them using Barker’s
Step 2: Define all attributes for both entities
Step 3: Define the relationship between entities

Step 4: Define the relationship between entities
Step 5: Define the relationship name/label.

31
New cards

ERDish

is the language we use to state relationships between entities in an ERD

32
New cards

ERDish Syntax

EACH <Entity A> <must/may> <relationship>

<one and only one/one or more> <Entity B>