문제

how would you convert this Select query to relational algebra:

SELECT Student.Name, Result.Mark
FROM Student, Results
WHERE Student.ID = Results.ID AND Results.Code = 'G51DBS'

This is what I have but I'm not sure:

[σ{Student.Name}(Student)]∪[Π{Result.Makr}σ{Student.ID = Results.ID ∧ results.code = g51dbs}(Results)]
도움이 되었습니까?

해결책

I think it should be like this:

∏Name,Mark (σResult.Code="G51DBS"(Student⋈Result))

You might want to look at this tutorial and for Natural join this

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top