edited by
1,805 views
0 votes
0 votes

The Project operation $(\prod)$ in relational algebra:

(i) Is used for eliminating duplicate rows automatically from the output.

(ii). Is used to filter columns.

(iii). Is a unary operator.

(iv). has degree of output relation same as input relation.

(A). (i). and (iii)

(B). (ii) and (v)

(C). (i) and (ii)

(D). (iv) only

edited by

2 Answers

0 votes
0 votes

The Project operation in relational algebra : 
a. 
Is used to filter columns : True
b. Is a unary operator : True
c. 
has degree of output relation same as input relation : False
d.  
Is used for eliminating duplicate rows automatically from the output : True

0 votes
0 votes
project operation corresponds to select operation in sql except the fact that in sql select doesnt remove duplicates cause it is expensive but project does remove duplicate so Option A is true..

It also filter out columns ..example ->consider a realtion with attribute A ,B,C ..project can be used to o/p the  column A..so Option B is also true

Unary operator are those that takes only one realtion as i/p ..project,select and rename are unary operator  so option C is true

Degree of a relation means no of attributes but project can be used to o/p less number of columns as well .. so D is false

Related questions