edited by
1,178 views
1 votes
1 votes

$\pi _{A_{1}}\left ( \pi _{A_{2}}\left ( \sigma _{C_{1}}\left ( \sigma _{C_{2}} \left ( R_{1} \right )\right ) \right ) \right )\rightarrow \pi _{A_{1}}\left ( \sigma _{C_{2}}\left ( \sigma _{C_{1}} \left ( R_{1} \right )\right ) \right )$ where $A_{1}\subset A_{2}$


How this implication holds true?? Selection operation is commutative. But is two project operation can be merge in one project operation? Can project operation removes duplicates too??

edited by

3 Answers

1 votes
1 votes
As attribute list A1 is subset of A2 the ultimate project operation result will be atrributes in A1.
0 votes
0 votes

Let A1 be 

1
2
3
4
5

 

and A2 be

1
2
3
4
5
6
7
8
9
10

 

$\text{In the question it is given that A1 ⊆ A2}$

$πA1(πA2(σC1(σC2(R1))))→πA1(σC2(σC1(R1))$

$\text{It is the implication given to you, let LHS be A and RHS be B}$

$\text{This clearly means A→B which means ¬A V B}$

$\text{Which clearly says this is gonna be true in each case except for if A is true and B is false}$

So As A1 ⊆A2 this is always a true statement. Hence true

 

 

Related questions

3 votes
3 votes
1 answer
1
Hirak asked May 25, 2019
2,137 views
In a relational algebra ∩ is not a basic operator, to make it basic only relational operator we should have areX, – X, UU, –
–1 votes
–1 votes
0 answers
2
Himanshu Kashyap asked Jan 12, 2019
676 views
PLEASE EXPLAIN WHEATHER IT WOULD BE SOME EC DEPARMENT OR ALL EC DEPARTMENT I THINK ALL BECOZ IT IS SELECTION EID OF STUDENT WHO HAVE NOT ENROLLED IN ANY COURSE OF EC
1 votes
1 votes
1 answer
4
nikkey123 asked Jan 29, 2018
1,659 views
Consider the following database tableSupplier (Sid, Sname, rating)Parts (Pid, Pname, color)Catalog (Sid Pid, cost)Which of the following SQL query correct representation ...