Degree of relation is number of attribute in relational database.
Now consider a relation $R(A,B,C,D,E)$
A |
B |
C |
D |
E |
5 |
6 |
7 |
8 |
9 |
6 |
8 |
9 |
2 |
3 |
4 |
7 |
9 |
4 |
2 |
Now consider the query $\sigma _{A< B}\left ( \pi _{A,B}\left ( \pi _{A,B,C\left ( R \right )} \right ) \right )$ which will evaluated to
So degree of relation is =2