






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
database management
Typology: Lecture notes
1 / 38
This page cannot be seen from the preview
Don't miss anything!































Relational Algebra
2
(^) Meaning of the term relational completeness. (^) How to form queries in relational algebra. (^) How to form queries in tuple relational calculus. (^) How to form queries in domain relational calculus. (^) Categories of relational DML.
4
(^) Relational algebra operations work on one or more relations to define another relation without changing the original relations. (^) Both operands and results are relations, so output from one operation can become input to another operation. (^) Allows expressions to be nested, just as in arithmetic. This property is called closure.
5
(^) Five basic operations in relational algebra: Selection, Projection, Cartesian product, Union, and Set Difference. (^) These perform most of the data retrieval operations needed. (^) Also have Join, Intersection, and Division operations, which can be expressed in terms of 5 basic operations.
7
8
predicate (R)
10
col1,... , coln(R)
11
(^) Produce a list of salaries for all staff, showing only staffNo, fName, lName, and salary details. staffNo, fName, lName, salary(Staff)
13
(^) List all cities where there is either a branch office or a property for rent. city(Branch) city(PropertyForRent)
14
16
17
(^) List all cities where there is both a branch office and at least one property for rent. city(Branch) city(PropertyForRent)
19
(^) List the names and comments of all clients who have viewed a property for rent. (clientNo, fName, lName(Client)) X (clientNo, propertyNo, comment (Viewing))
20