How to implement relational equivalent of the DIVIDE operation in SQL Server
问题 I was reading relational algebra from one of the textbook. I came across DIVIDE operation. From Wikipedia: The division is a binary operation that is written as R ÷ S. The result consists of the restrictions of tuples in R to the attribute names unique to R, i.e., in the header of R but not in the header of S, for which it holds that all their combinations with tuples in S are present in R. Thus if R is: +----+----+ | A | B | +----+----+ | a1 | b1 | | a2 | b1 | | a3 | b1 | | a4 | b1 | | a1 |