Relational Algebra Playground

Pick an operator, choose relation(s), and watch the result compute instantly. Great for checking your hand-worked answers.

Keep rows matching a predicate.

σ[ Department = CSE ] (STUDENT)
Input
StudentIDNameDepartmentYearEmail
S001Rahim AhmedCSE2rahim@uni.edu
S002Karim HasanEEE3karim@uni.edu
S003Nusrat JahanCSE1nusrat@uni.edu
3 tuples · 5 attributes
Result
StudentIDNameDepartmentYearEmail
S001Rahim AhmedCSE2rahim@uni.edu
S003Nusrat JahanCSE1nusrat@uni.edu
2 tuples · 5 attributes
Try these: σ on STUDENT where Department = CSE · π Name, Email · r ∩ s on the two (A,B) relations · r ⋈ s on r(A,B,C,D) and s(B,D,E).