Relational Databases

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/45

flashcard set

Earn XP

Description and Tags

Reviewer 11-13

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

46 Terms

1
New cards

A database management system(DBMS)

model that organizes data into tables (relations)

2
New cards

Rows

represent individual entries

3
New cards

Columns

represent properties of the entity

4
New cards

Rows & Columns

Table is made up of

5
New cards

Primary Key

every row is uniquely identified by a?
Unique ID

6
New cards

Foreign Keys

connects different tables to show relationships
Links tables

7
New cards

Entity

A real-world object (Book, Customer, Author)

8
New cards

Attribute

A property of entity (Book Title, Price, ISBN)
Column

9
New cards

Relation

The way entities are connected (Customer places Order)
Table

10
New cards

Logical View

How users see the data

11
New cards

Primary Key

unique identifier, no duplicates, not null

12
New cards

Foreign Key

establishes a relationship between tables
Links tables

13
New cards

Unique Constraints

prevents duplicates values

14
New cards

Not Null Constraint

ensures no empty values

15
New cards

Check Constraint

must meet conditions (Age <= 18)

16
New cards

Domain Constraint

ensures valid data type and range

17
New cards

One-to-One

One row in Table A One row in Table B

18
New cards

One-to-Many

One row in Table A Many rows in Table B.

19
New cards

Many-to-Many

Many rows in A Many rows in B (needs a linking table).

20
New cards

SELECT

retrieve specific rows and columns

21
New cards

PROJECT

retrieve specific columns only

22
New cards

JOIN

combine rows from two or more tables

23
New cards

UNION

merge results of multiple queries

24
New cards

INTERSECTION

returns common rows from two select queries

25
New cards

DIFFERENCE

get rows from one table but not the other

26
New cards

INSERT

add new data rows into a table

27
New cards

UPDATE

modify existing data

28
New cards

DELETE

remove rows

29
New cards

CREATE

make new table

30
New cards

ALTER

change table structure

31
New cards

DROP

deletes a table

32
New cards

Requirements Gathering

work with stakeholders to identify what data to store, how it will be used

33
New cards

Conceptual Design

Identity entities, attributes, and relationships
Entity-Relationship Diagram

34
New cards

Logical Design

define specific data elements, constraints, and relationships
ER diagram into relational schema

35
New cards

Physical Design

create actual database schema, decide storage methods, indexing, and DBMS

36
New cards

implementation

build the database, create tables, load data, and configure the DBMS

37
New cards

Testing & Maintenance

test errors, ensure performance, update when needed

38
New cards

Normalization

Reduce data redundancy
Improve data integrity

39
New cards

First Normal Form (1NF)

each table has a Primary key
all attributes are atomic

40
New cards

Second Normal Form (2NF)

must already be in 1NF
no partial dependency

41
New cards

Third Normal Form (3NF)

must already be in 2NF
no transitive dependency

42
New cards

Boyce-Codd Normal Form

stronger version of 3NF
all non-trivial dependencies must be on a super key

43
New cards

Fourth Normal Form (4NF)

no multi-valued dependencies
attributes should not hold multiple independent values

44
New cards

Fifth Normal Form (5NF)

no join dependencies

45
New cards

Sixth Normal Form (6NF)

fully decomposed, no redundancy

46
New cards