2.01 Relational Model

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

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.

17 Terms

1
New cards

relational database

  • A database model is a conceptual framework for database systems, with three parts

    • Data Structures

    • Operations

    • Rules

2
New cards

Data Structures

  • that prescribe how data is organized.

    • (blank) form the backbone of efficient and organized information storage.

    • Each database model relies on specific structures to represent entities, attributes, and relationships, ensuring data integrity and facilitating smooth retrieval and manipulation.

    • e.g. relational model: primary key, foreign key, data types(INT, STRING, ...), indexes.

3
New cards

set

  • unordered collection of elements enclosed in braces.

  • e.g. {a, b, c} and {c, b, a} are the same, since sets are not ordered.

4
New cards

tuple

  • ordered collection of elements enclosed in parentheses.

  • e.g. (a, b, c) and (c, b, a) are different, since tuples are ordered.

5
New cards

table

  • has a name, a fixed tuple of columns, and a varying set of rows.

  • Synonyms: File, Relation.

6
New cards

column

  • name and a data type.

  • Synonyms: Field, Attribute

7
New cards

row

  • is an unnamed tuple of values. Each value corresponds to a column and belongs to the column's data type.

  • since (blank) are a set, (blank) have no inherit order.

  • Synonyms: Record, Tuple

8
New cards

relational data type

named set of values, from which column values are drawn.

9
New cards

relational algebra

These operations are collectively called (blank) and are the theoretical foundation of the SQL language.

10
New cards

Relational rules

  • (blank) are logical constraints that ensure data is valid.

  • are part of the relational model and govern data in every relational database.

11
New cards

SELECT

selects a subset of rows of a table.

12
New cards

JOIN

combines two tables by comparing related columns.

13
New cards

UNION

selects all rows of two tables.

14
New cards

AGGREGATE

computes functions over multiple table rows, such as sum and count.

15
New cards

business rules

based on business policy and specific to a particular database.

16
New cards

Operations

that manipulate data structures.

17
New cards

Rules

logical constraints that ensure the data is valid.