Null in Relational Algebra
问题 I want to query the id of all apartments that were never rented I tried something like this: (π a_id (apartments)) - (π a_id σ from_date Exists ∧ end_date Exists (rental) ⨝ rental.a_id on apartment.a_id (apartment)) But I think I cannot use Exist in relational algebra or null or anything. How could I do it? Thanks I attach the schema here 回答1: For the most straightforward relational algebra, where a relation has an attribute set as heading & tuple set as body: Presumably apartment ids in