406 views

2 Answers

Best answer
6 votes
6 votes

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

A B
5 6
6 8
4 7

So degree of relation is =2

selected by
1 votes
1 votes
ans should be 2 degree of a relation is the number of attributes in the table innermost projection operator will yield 3 attributes A,B,C the second  projection will give A,B 2 Attributes and finally oute select opeartion will give rows with 2 attributes  with condition A<B

Related questions

0 votes
0 votes
1 answer
1
srestha asked Dec 16, 2017
1,558 views
Consider the relation schema:Student(roll no, name course no)Enroll(roll no, course no,course name)The number of tuples in the student and enroll table is 30 and 40 respe...
3 votes
3 votes
2 answers
2
iarnav asked Dec 6, 2017
1,308 views
Say we have two relations R (a,b,c) and S (b,d,e).Now, R has 200 tuples and S has 300 tuples. What will be Minimum number of tuples when we do R ⋈ S ( ⋈ = Natural Joi...
3 votes
3 votes
1 answer
3
techbrk3 asked Nov 9, 2017
2,020 views
R(A, B) foreign key B refers S.S(A, B) foreign key A refers R. (primary keys are bold)None of the attributes is nullable. R contains 75 tuples and S contains 25 tuples. W...
2 votes
2 votes
1 answer
4