• retagged by
13,431 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
61 61 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

89 89 votes
5 answers 5 answers
15.2k
15.2k views
Kathleen asked Sep 14, 2014
15,193 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.6k
7.6k views
Kathleen asked Sep 14, 2014
7,594 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.7k
20.7k views
Kathleen asked Sep 14, 2014
20,711 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...
13 13 votes
4 answers 4 answers
4.3k
4.3k views
go_editor asked Feb 8, 2018
4,331 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...