• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

DBMS-GATE | Question 4

Consider the following relations:

  • Person (DepartmentID, Name, Salary)
  • Department (DepartmentID, DepartmentName)

What is the result of the following relational algebra expression?
π Person.Name, Department.DepartmentName(σ Salary > 30000(Person⋈ Person.DepartmentID = Department.DepartmentID(Department)))

(A)

Names of Person and their departments with a salary greater than $30,000.

(B)

Names of Person who have a salary greater than $30,000 and their corresponding department names.

(C)

Names of Person who have a salary greater than $30,000 but without their department names.

(D)

 Names of Person and their departments with a salary equal to or greater than $30,000.

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments