Relational Algebra

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:26 PM on 10/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

What does a relational database represent?

data as a collection of related relations

<p>data as a collection of related relations</p>
2
New cards

What is meant by the domain?

permitted values for an attribute

3
New cards

What is meant by degree?

the number of attributes

4
New cards

What is meant by cardinality in terms of tuples?

the number of tuples

5
New cards

How is a function mapped?

each input is related to exactly one output

6
New cards

What is a relation?

a set of ordered pairs (one input can relate to several outputs)

7
New cards

What is the definition for a relation/table?

a logical representation of data based on set theory and predicate logic

8
New cards

What are the 3 rules of a relation?

  1. single valued cells

  2. unique rows

  3. row + column order don’t matter


9
New cards

What are the 3 aspects of data that the relational model covers?

  1. Data Structure - table,column,row,domain

  2. Data Integrity - rules to ensure data is valid

  3. Data Manipulation - use relational algebra to retrieve + change data


10
New cards

What does the relational model consist of?

  • data structures

    • entities + their relations

  • data constraints

    • restrication on data, relations… etc.

  • relational operators

    • restrict, project, cartesian product, union, difference


11
New cards

What are the 4 objectives of the relational model?

  1. Data Indepence - allow changes w/o affecting applications that use it

  2. Control Redundancy - data not stored in multiple places

  3. Maintain Consistency - copies are accurate and up to date

  4. Enable Set-Oriented Languages (e.g. relational algebra)


12
New cards

What is a relational schema?

a textual representation for a data model

<p>a textual representation for a data model</p>
13
New cards

Relational Vocab: RELATION

the whole table

14
New cards

Relational Vocab: TUPLE

1 row

15
New cards

Relational Vocab: ATTRIBUTE

1 named column

16
New cards

What is an alternate key?

a candidate key that was not chosen as the primary key

17
New cards

What is a foreign key?

attribute(s) that refer to a candidate key in another relation

18
New cards

What do NULL values represent?

missing information (e.g. unknown value, value inserted later)

19
New cards

What are the types of database constraints?

  • entity integrity - each row is unique + identifiable

  • referential integrity - accuracy + consistency of data between tables

  • multiplicity

  • required data (primary key not null)

  • domain constraints


20
New cards

What is the difference between entity and referential integrity?

ENTITY INTEGRITY

  • constraint on PK

  • unique values + not null

REFERENTIAL INTEGRITY

  • constrain on FK

  • values match candidate key referred to/ be null


21
New cards
22
New cards
23
New cards
24
New cards
25
New cards
26
New cards