Database Management System 13: Query Using Relational Algebra
Database Management System 13: Query Using Relational Algebra
Database Management System 13: Query Using Relational Algebra
Algebra
Chittaranjan Pradhan
System 13
Query Using Relational Algebra
Chittaranjan Pradhan
School of Computer Engineering,
KIIT University
13.1
Query Using Relationa
Query Using Relational Algebra Algebra
Chittaranjan Pradhan
13.2
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
Query Using
Relational Algebra
13.3
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
Sailor Database
Query Using
Sailors(sid, sname, rating, age) Relational Algebra
13.4
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
Query Using
Relational Algebra
Query: Find the sailor ids of the sailors who’ve reserved all boats
π sid,bid (Reserves) ÷ π bid (Boats)
13.5
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
Query Using
Shipment Database Relational Algebra
Query: Find the names of customers with more than $10 million
in annual revenue
π cust_name (σ annual_revenue>$10million (Customer))
13.6
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
13.7
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
13.8
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
Query: List the customers whose shipments have been delivered Query Using
by truck driver Ramesh Relational Algebra
13.9
Query Using Relationa
Query Using Relational Algebra... Algebra
Chittaranjan Pradhan
Query: Find the cities which have received shipments from every
customer
π destination_city ,cust_id (Shipment) ÷ π cust_id (Customer)
13.10