How to provide relational algebra for the given schema?

前端 未结 2 786
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 03:19

EMPLOYEE(PERSONNAME, STREET, CITY)

WORKS(PERSONNAME,COMPANYNAME, SALARY)

COMPANY(COMPANYNAME, CITY)

MANAGES(PERSONNAME, MANAGERNAME)

Find the

2条回答
  •  爱一瞬间的悲伤
    2021-01-17 03:49

    As @wildplasser pointed out: The first part of the assumption

    assuming that all people work for exactly one company...

    declares the case that there is a exact one relation between employees and companies. This would imply that it is not allowed to have data records where an employee is not associated to any company. That is where the second part of the assumptions kicks in

    ... and people are allowed to appear in the database (e.g. in employee) but not appear in works

    So this tells us that is even possible to hold employees not being associated to any company.

    For me now i would conclude that the question asks for the zero or one relation between company and employee entities.

提交回复
热议问题