Question

Consider the following tables R1 and R2: R1.A1 R1.B1 ------------ 1      1 NULL   2 3      NULL R2.A2 R2.B2...

Consider the following tables R1 and R2:

R1.A1 R1.B1
------------
1      1
NULL   2
3      NULL

R2.A2 R2.B2
------------
1      1
NULL   2
3      NULL


The tuple (3, NULL, 3, NULL) appears in the answer of which of the following SQL Statements? Check all that apply

A.

select * from R1,R2;

B.

select * from R1,R2 where R1.A1=R2.A2;

C.

select * from R1,R2 where R1.A1=R2.A2 and R1.B1=R2.B2;

Suppose relation R(A,B,C) has the following tuples
A B C
-----
2 3 4
5 3 4
5 6 7
3 6 4
2 3 7

and relation S(A,B,C) has the following tuples:

A B C
----
3 6 4
3 6 5
5 6 7
2 3 4

Compute the intersection of R and S. Which of the following tuples is in the result?

A.

(2,3,5)

B.

(3,6,4)

C.

(3,6,5)

D.

(3,3,7)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.The tuple (3, NULL, 3, NULL) appears in the answer of which of the following SQL Statements?

Answer:-

Option A and B are correct

output to A. select * from R1,R2;

NULL   2   1   1
3   NULL   1   1
1   1   NULL   2
NULL   2   NULL   2
3   NULL   NULL   2
1   1   3   NULL
NULL   2   3   NULL
3   NULL   3   NULL

Output to B. select * from R1,R2 where R1.A1=R2.A2;


1   1   1   1
3   NULL   3   NULL

2. Compute the intersection of R and S. Which of the following tuples is in the result?

Answer:-

Option B is correct

The output of the query will be:-

(2,3,7)

(5,6,7)

(3,6,4)

Add a comment
Know the answer?
Add Answer to:
Consider the following tables R1 and R2: R1.A1 R1.B1 ------------ 1      1 NULL   2 3      NULL R2.A2 R2.B2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Urgent!! Please label all the answers and find a1,a2,a3 and b1,b2,b3. (1 point) The second order...

    Urgent!! Please label all the answers and find a1,a2,a3 and b1,b2,b3. (1 point) The second order equation x2y" - (x – ķ) y = 0 has a regular singular point at x = 0, and therefore has a series solutio y(x) = Σ CnN+r n=0 The recurrence relation for the coefficients can be written in the form Cn =( DCn-1, n = 1,2, ..., (The answer is a function of n and r.) The general solution can be written in...

  • Urgent! Please mark all correct answers and find values of a1,a2,a3 and b1,b2,b3. (1 point) The...

    Urgent! Please mark all correct answers and find values of a1,a2,a3 and b1,b2,b3. (1 point) The second order equation 3x2y" + 5xy' +(-1x – 1)y = 0 has a regular singular point at x = 0, and therefore has a series solution DO (x) = ± x"+". N=0 The recurrence relation for the coefficients can be written in the form n=1,2,.... C =( ),-1) (The answer is a function of n and r.) The general solution can be written in...

  • GAME 3 Player B B1 B2 Player A A1 7,3 5, 10 A2 3,8 9,6 In...

    GAME 3 Player B B1 B2 Player A A1 7,3 5, 10 A2 3,8 9,6 In Game 3 above, if the players move sequentially with Player B choosing first, the Nash equilibrium will be a) Player A choosing A2 and Player B choosing B1 b) Player A choosing A2 and Player B choosing B2 c) Player A choosing A1 and Player B choosing B2 d) Player A choosing A1 and Player B choosing B1

  • Urgent!! Please show mark all correct answers and also find values of a1,a2,a3,a4,a5,a6 and b1,b2,b3,b4,b5,b6. Thank...

    Urgent!! Please show mark all correct answers and also find values of a1,a2,a3,a4,a5,a6 and b1,b2,b3,b4,b5,b6. Thank you! (1 point) The second order equation x?y" + xy' +(x2 - y = 0 has a regular singular point at x = 0, and therefore has a series solution y(x) = Σ CGxhtr P=0 The recurrence relation for the coefficients can be written in the form of n = 2, 3, ... C =( Jan-2 (The answer is a function of n and...

  • Consider the following expressions: A1: f = Fw A2: f = Fw sinθ B1: N =...

    Consider the following expressions: A1: f = Fw A2: f = Fw sinθ B1: N = W 2 B2: N = W C1: ℓFw sinθ = 2Fw cosθ C2: ℓFw sinθ = ℓ W cosθ C3: ℓFw sinθ = 1 2 ℓ W cosθ, where f: force of friction between the ladder and the ground, Fw: normal force on the ladder due to the wall, θ: anglebetween theladder and theground, N: normal force on the ladder due to the ground,...

  • 3. Consider the game illustrated by the payoff matrix below: Jeffrey B1 B2 -4,- 4 1...

    3. Consider the game illustrated by the payoff matrix below: Jeffrey B1 B2 -4,- 4 1 ,-6 Curtis A2 -6,1 0,0 b. Suppose that the game is repeated 10 times and assume a discount factor 8 (where 0< 8 < 1). i. [2] What does each player choose to do in the 10th round of play? ii. [2] Can Curtis and Jeffrey credibly commit to playing (A2, B2) in any of the rounds that they play? c. Suppose now that...

  • Urgent!!! Please show all the answers and clearly mark them and please show values of a1,a2,a3,a4,a5...

    Urgent!!! Please show all the answers and clearly mark them and please show values of a1,a2,a3,a4,a5 and b1-b6. Thank you! (1 point) The second order equation x2y" + xy + (x2 - y = 0 has a regular singular point at x = 0, and therefore has a series solution y(x) = Σ C+*+r N=0 The recurrence relation for the coefficients can be written in the form of C.-2, n = 2,3,.... Ch =( (The answer is a function of...

  • Consider the following binary relations R1, R2, and R3 below, each defined over the set of...

    Consider the following binary relations R1, R2, and R3 below, each defined over the set of integers between 0 and 4 inclusive and with each tuple (a,b) indicating that a is related to b. R1 = {(0,0), (0,3), (1, 1), (1, 2), (2,0), (2,3), (3, 1), (3,4), (4,0), (4,1)} R2 = {(1, 2), (2, 2), (3,0), (3,2), (4,0), (4,3)} R3 = {(0,0), (1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4,4)} Which of these three relations is an...

  • LWW is(t) = A1 . cos(1000t +90) + A2 cos(2000t -90) Assume the system is in...

    LWW is(t) = A1 . cos(1000t +90) + A2 cos(2000t -90) Assume the system is in steady state. Find the current ia at times t1 47 ms: ia (t1) = B1 t2= 5m ms: ia (t2) = B2 kia(t) + R2 Given Variables: A1:9A A2:3A L:2 mH C:500 uF R1:10 ohm R2:2 ohm k:3 V/A Determine the following

  • 1) for R2 Given the vectors b1,b2, C1, and cz. B = {b1,b2} is a basis...

    1) for R2 Given the vectors b1,b2, C1, and cz. B = {b1,b2} is a basis for R2C = {C1,C2} is a basis b = [i.bz = [33],4 = (-2) c2 = [4] (a) Find the change of coordinates matrix to convert from B to C. (b) Find the coordinate vectors [x]B, [x]c, lyle and [ylc given x = [11] y = [12]

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT