What is the difference between Select and Project Operations

前端 未结 10 659
深忆病人
深忆病人 2020-12-23 20:42

I\'m referring to the basic relational algebra operators here.
As I see it, everything that can be done with project can be done with select.

I don\'t know if

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 21:01

    The difference between the project operator (π) in relational algebra and the SELECT keyword in SQL is that if the resulting table/set has more than one occurrences of the same tuple, then π will return only one of them, while SQL SELECT will return all.

提交回复
热议问题