SELECT a , c FROM R, S WHERE R.b = S.b; |
Answer:
Expr ::= Term | Expr + Term | Expr - Term Term ::= Factor | Term * Factor | Term / Factor Factor ::= number | identifier |
Show the parse tree for the following expression: (15 pts)
a - 3 * b + 7 |
Answer:
SELECT a , c FROM R, S WHERE R.b = S.b; |
Answer:
SELECT a FROM R WHERE b IN (SELECT a FROM R, S WHERE R.b = S.b) |
Answer:
Answer:
W(a, b) X(b, c) Y(c,d) Z(d,e) =============================================================== T(W) = 100 T( X ) = 200 T(Y) = 300 T(Z) = 400 V(W,a) = 20 V(X,b) = 50 V(Y,c) = 50 V(Z,d) = 40 V(W,b) = 60 V(X,c) = 100 V(Y,d) = 50 V(Z,e) = 100 |
Give an estimate for the size of the following results:
|
Solutions: