Selecting DISTINCT rows in relational algebra

后端 未结 3 1533
旧时难觅i
旧时难觅i 2021-01-08 00:33

There is a DISTINCT operator in SQL. However, I have an assignment in which I need to get some distinct values from a table, and I can only use relational algebra. Is there

3条回答
  •  醉话见心
    2021-01-08 01:19

    Relational projections always return distinct tuples so DISTINCT is never needed. Duplicate tuples are not permitted in the RA - that being one major difference between the relational model and the SQL model.

提交回复
热议问题