I have following employee schema:
employee (id, name, address, age)
To find out the name of oldest employee, I know the SQL which looks like:
select name from employee,
(select max(age) max_age from employee) e2
where age=max_age
but I am not sure how to do that in relational algebra. Once again, text books have not mentioned how to do such things.
My probable solution looks like follows:
πname (σage=max_age( employee × ρmax_age/age(ℱmax(age)(employee)) ))