Heteroclinic.net logo

www.heteroclinic.net

Thinking in Relational Algebra -- a Division Case
1

201610

The materials are from Internet search not sourced. Our work is considered to be improvement, criticism and evaluation of a method or a theory. In relational algebra, a simple example is to list students that completed all the required courses. We use MySQL as the scripting language.

First, we create the tables and fill the data.

Thinking in Relational Algebra -- a Division Case
2

201610

Basically, we can formalize the process with the algebraic notation.


Thinking in Relational Algebra -- a Division Case
3

201610

The concrete steps implemented.


Thinking in Relational Algebra -- a Division Case
4

201610

We can add more data. When we run step 4 in the above section, we should get 't' in addition.