retagged by
13,215 views
70 70 votes

Let r and s be two relations over the relation schemes R and S respectively, and let A be an attribute in R.  The relational algebra expression $\sigma_{A=a}(r \bowtie s)$ is always equal to

  1. $\sigma_{A=a}(r)$
  2. $r$
  3. $\sigma_{A=a}(r) \bowtie s$
  4. None of the above

3 Answers

Best answer
60 60 votes

Answer is C.

C is just the better form of query, more execution friendly because requires less memory while joining. query, given in question takes more time and memory while joining.

edited by
34 34 votes

 option c

9 9 votes
Answer is (C).

It is an efficient way to write the query to select first the tuples then cross with other relation.
Answer:
Position:
Show:

Related questions

86 86 votes
5 answers 5 answers
14.9k
14.9k views
Kathleen asked Sep 14, 2014
14,949 views
Suppose the adjacency relation of vertices in a graph is represented in a table Adj $(X,Y).$ Which of the following queries cannot be expressed by a relational algebra ex...
22 22 votes
2 answers 2 answers
7.4k
7.4k views
Kathleen asked Sep 14, 2014
7,379 views
Consider a relation examinee (regno, name, score), where regno is the primary key to score is a real number.Write a relational algebra using $( \Pi, \sigma, \rho, \times)...
85 85 votes
9 answers 9 answers
20.2k
20.2k views
Kathleen asked Sep 14, 2014
20,182 views
Consider a relation geq which represents "greater than or equal to", that is, $(x,y) \in $ geq only if $y \geq x$.create table geq ( ib integer not null, ub integer not n...
12 12 votes
4 answers 4 answers
4.2k
4.2k views
go_editor asked Feb 8, 2018
4,247 views
Consider a relation examinee (regno, name, score), where regno is the primary key to score is a real number.Write an SQL query to list the regno of examinees who have a s...