RENAME (ρ) Operation in Relational Algebra

Prerequisites – Introduction of Relational Algebra in DBMS, Basic Operators in Relational Algebra

The RENAME operation is used to rename the output of a relation.

Sometimes it is simple and suitable to break a complicated sequence of operations and rename it as a relation with different names. Reasons to rename a relation can be many, like –

  • We may want to save the result of a relational algebra expression as a relation so that we can use it later.
  • We may want to join a relation with itself, in that case, it becomes too confusing to specify which one of the tables we are talking about, in that case, we rename one of the tables and perform join operations on them.

Notation –

ρ X (R)


where the symbol ‘ρ’ is used to denote the RENAME operator and R is the result of the sequence of operation or expression which is saved with the name X.



  • Example-1:
    Query to rename the relation Employee as MaleStudent and the attributes of Employee – RollNo, EName as (Eno, Name).

    ρ MaleStudent(Eno, Name) πRollNo, ENameCondition(Student))

    Eno Name
    2600 Ronny
    2655 Raja

  • Example-2:
    Query to rename the attributes Name, Age of table Department to A,B.

    ρ (A, B) (Department)

  • Example-3:
    Query to rename the table name Project to Pro and its attributes to P, Q, R.

    ρ Pro(P, Q, R) (Project) 

  • Example-4:
    Query to rename the first attribute of the table Employee with attributes A, B, C to P.

    ρ (P, B, C) (Employee) 

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.