Clear explanation of the “theta join” in relational algebra?

后端 未结 4 1655
鱼传尺愫
鱼传尺愫 2021-02-04 13:04

I\'m looking for a clear, basic explanation of the concept of theta join in relational algebra and perhaps an example (using SQL perhaps) to illustrate its usage.

If I

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 13:27

    You're not quite right - a theta join is a join which may include a condition other than = - in SQL, typically < or >= etc. See TechNet

    As for cartesian product (or CROSS JOIN), it is an operation rather than an idea or concept. It's important because sometimes you need to use it! It is a basic fact that set of 13 x set of 4 = 52, and cartesian product is based on this fact.

提交回复
热议问题