Sets, Products, Relations, and Functions in Relational Databases, Slides of Relational Database Management Systems (RDBMS)

The mathematical foundations of sets, products, relations, and functions in the context of relational databases. It includes explanations of set operations such as membership, subset, equality, union, intersection, and subtraction. The document also covers the concepts of flat products and tuples, and provides exercises to test understanding. Recommended resources include the first few chapters of any discrete maths textbook.

Typology: Slides

2011/2012

Uploaded on 03/12/2012

kyleaus
kyleaus 🇦🇺

5

(4)

12 documents

1 / 34

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Relational Databases - Comp2400 / Comp6240
Lecture 12: Sets, Products, Relations, Functions
Mathematical catch-up
Help and exercises for the mathematically challenged.
This will prepare us for some relational algebra, and
normalisation, which is largely about “functional dependencies”.
Much of todays material is from Sets and Groups, J. A. Green,
Routledge & Kegan Paul, 1965.
The first couple of chapters of any discrete maths textbook will
help.
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

Partial preview of the text

Download Sets, Products, Relations, and Functions in Relational Databases and more Slides Relational Database Management Systems (RDBMS) in PDF only on Docsity!

Relational Databases - Comp2400 / Comp

Lecture 12: Sets, Products, Relations, Functions

Mathematical catch-up

Help and exercises for the mathematically challenged. This will prepare us for some relational algebra, and normalisation, which is largely about “functional dependencies”. Much of todays material is fromRoutledge & Kegan Paul, 1965. Sets and Groups , J. A. Green, The first couple of chapters of any discrete maths textbook willhelp.

Set operations and relations

membership we write x ∈ { x , y , z } to say that x is in the set

Set operations and relations

membership we write x ∈ { x , y , z } to say that x is in the set subset if every member of A is also in B we write AB equality two sets are equal if they have the same members

Set operations and relations

membership we write x ∈ { x , y , z } to say that x is in the set subset if every member of A is also in B we write AB equality two sets are equal if they have the same members union we write AB for the set containing everything in A and everything in B

Set operations and relations

membership we write x ∈ { x , y , z } to say that x is in the set subset if every member of A is also in B we write AB equality two sets are equal if they have the same members union we write AB for the set containing everything in A and everything in B intersection we write AB for the set of things that are in both A and B subtraction AB is the elements from A that are not in B

Membership, Subset

Z = { integers} Which of the following are true? (^1 42) ⊆ Z

Membership, Subset

Z = { integers} Which of the following are true? (^1 42) ⊆ Z (^2) { 42 } ⊆ Z (^3 42) ∈ Z

Membership, Subset

Z = { integers} Which of the following are true? (^1 42) ⊆ Z (^2) { 42 } ⊆ Z (^3 42) ∈ Z (^4) { 42 } ∈ Z

Membership, Subset

Z = { integers} Which of the following are true? (^1 42) ⊆ Z (^2) { 42 } ⊆ Z (^3 42) ∈ Z (^4) { 42 } ∈ Z (^5) { 42 } ∈ {{ 42 }} (^6) {} ⊆ Z

Union, Intersection, Set-Subtraction

Describe the following sets in words: A = { x ∈ Z | 2 ≤ x } B = { x ∈ Z | x ≤ 5 }

Union, Intersection, Set-Subtraction

Describe the following sets in words: A = { x ∈ Z | 2 ≤ x } B = { x ∈ Z | x ≤ 5 } Find AB and AB. And AB.

Product, Set Equality

What is { 1 } × Z?

Product, Set Equality

What is { 1 } × Z? What is ({ 1 } × Z) ∩ (Z × { 2 })? Does the following equation make sense?Is it true? ( A × B ) ∩ ( B × A ) = ( AB ) × ( AB )

“Flat” Products and Tuples

Is ( 1 , ( 2 , 3 )) = (( 1 , 2 ), 3 )?