This is my database course's homework. We have this relation. Trained(A, B) A trained B
How can I figure out who has trained the most people by using relational algebra or it cannot be expressed in relational algebra? for example, (John, Kenny) (John, Kei) (John, Cohen) (Willson, John) (Kenny, Peter) (Ho, Tina)
In these tables, the answer obviously is John.But is it possible to express in relational algebra?
You use GROUP and HAVING. I don't know how your class does notation, but in mine we do something like this:
I'm not sure if this is correct, but it should be similar.