Exercises - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Exercises

Description:

Reserves Sailors Boats Basic operations: Selection ( ) gives a subset of rows. Projection ( ) Deletes unwanted cols. Cross-product ( ) combine two relations. – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 6
Provided by: eben
Category:
Tags: exercises

less

Transcript and Presenter's Notes

Title: Exercises


1
Exercises
Reserves
Sailors
Boats
Basic operations Selection ( s ) gives a
subset of rows. Projection ( p ) Deletes
unwanted cols. Cross-product ( ? ) combine two
relations. Set-difference ( ) Tuples in reln.
1, but not in reln. 2. Union ( ?
) Tuples in reln. 1 and in reln. 2.
Additional operations Intersection (?) Tuples
in both relns. Join ( ) like ? but only
keep tuples where common fields equal Division
( / ) tuples from reln 1 with matches in reln
2 Renaming ( ?) Rename columns
Find names of sailors whove reserved boat 103
  • Solution 1

2
Exercises
Reserves
Sailors
Boats
Basic operations Selection ( s ) gives a
subset of rows. Projection ( p ) Deletes
unwanted cols. Cross-product ( ? ) combine two
relations. Set-difference ( ) Tuples in reln.
1, but not in reln. 2. Union ( ?
) Tuples in reln. 1 and in reln. 2.
Additional operations Intersection (?) Tuples
in both relns. Join ( ) like ? but only
keep tuples where common fields equal Division
( / ) tuples from reln 1 with matches in reln
2 Renaming ( ?) Rename columns
Find names of sailors whove reserved a red boat
3
Exercises
Reserves
Sailors
Boats
Basic operations Selection ( s ) gives a
subset of rows. Projection ( p ) Deletes
unwanted cols. Cross-product ( ? ) combine two
relations. Set-difference ( ) Tuples in reln.
1, but not in reln. 2. Union ( ?
) Tuples in reln. 1 and in reln. 2.
Additional operations Intersection (?) Tuples
in both relns. Join ( ) like ? but only
keep tuples where common fields equal Division
( / ) tuples from reln 1 with matches in reln
2 Renaming ( ?) Rename columns
Find sailors whove reserved a red or a green boat
4
Exercises
Reserves
Sailors
Boats
Basic operations Selection ( s ) gives a
subset of rows. Projection ( p ) Deletes
unwanted cols. Cross-product ( ? ) combine two
relations. Set-difference ( ) Tuples in reln.
1, but not in reln. 2. Union ( ?
) Tuples in reln. 1 and in reln. 2.
Additional operations Intersection (?) Tuples
in both relns. Join ( ) like ? but only
keep tuples where common fields equal Division
( / ) tuples from reln 1 with matches in reln
2 Renaming ( ?) Rename columns
Find sailors whove reserved a red and a green
boat


5
Exercises
Reserves
Sailors
Boats
Basic operations Selection ( s ) gives a
subset of rows. Projection ( p ) Deletes
unwanted cols. Cross-product ( ? ) combine two
relations. Set-difference ( ) Tuples in reln.
1, but not in reln. 2. Union ( ?
) Tuples in reln. 1 and in reln. 2.
Additional operations Intersection (?) Tuples
in both relns. Join ( ) like ? but only
keep tuples where common fields equal Division
( / ) tuples from reln 1 with matches in reln
2 Renaming ( ?) Rename columns
Find the names of sailors whove reserved all
boats
Write a Comment
User Comments (0)
About PowerShow.com