Introduction To Database Systems - Unit 5 - Week 3
Introduction To Database Systems - Unit 5 - Week 3
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
Systems (course)
Course
outline Week 3: Assignment 3
The due date for submitting this assignment has passed.
Introduction Due on 2023-02-15, 23:59 IST.
to As per our records you have not submitted this assignment.
Database
Systems () 1) Which of the following statements about the relational model is/are 1 point
incorrect ?
Week 0 ()
A key can not be determined from any particular instance data.
Lecture
X is a subset of Y
Slides (unit?
unit=31&lesson=36) X is a proper subset of Y
Y is a subset of X
Practice:
Week 3: X need not be a subset of Y and Y need not be a subset of X
Assignment No, the answer is incorrect.
3 (Non Score: 0
Graded) Accepted Answers:
(assessment? X is a subset of Y
name=115)
Quiz: Week 4) The join operation on two relations can be equivalently realised by doing 1 point
3:
Assignment A cartesian product of the two relations followed by a selection
3 A cartesian product of the two relations
(assessment?
A union of the two relations followed by a selection
name=128)
A union of two relations
Week 3
Feedback
No, the answer is incorrect.
Score: 0
form :
Accepted Answers:
Introduction
A cartesian product of the two relations followed by a selection
to Database
Systems
(unit? 5) Consider the following relations S1( A, B, C, D ) and S2( E, F, G, H ) and 1 point
unit=31&lesson=38) the given instances. What is the result of the relational algebra expression :
Week 4 ()
Week 5 ()
Week 6 ()
Week 7 ()
Week 8 ()
Week 9 ()
Week 10 ()
Week 11 ()
Week 12 ()
Download
Videos ()
Lecture
Notes ()
Live
Sessions
()
Problem
ΠA,B ( σ(C = 3)⋁(D = 1) (S1) ) − ΠE,F ( σ(G ≠ 2)⋁( H ≠ 3)
Solving
(S2) )
Session ()
Empty relation
{ (1,2), (3,6) }
A relation with scheme (A,B) and tuples { (1,2) }
A relation with scheme (A,B) and tuples { (1,2), (2,5), (3,6) }
6) Using the relations in Question 5. Find out how many tuples will be there 1 point
in the result of the following relational algebra expression.
S1 ⋈ (S1.B>S2.H ) S2
2
7
8
10
Which of the following relational algebra expressions return the set of eids of
employees who own all the brands?
Π{eId} ( (Own) / Π{bId}(Brand) )
Π{eId} (Own) – Π{eId}( (Π{eId}(Own) ✕ Π{bId}(Brand)) – Own )
Π{eId} ( (Own) / Π{bId}(Own) )
Π{eId} ( (Π{eId}(Own) ✕ Π{bId}(Own) ) / Π{bId}(Brand))
Which of the following queries cannot be expressed using the basic relational algebra
operations ( σ, Π, ✕, ⋈, ⋃, ⋂, 一 ) ?
9) The following relation records the age of 500 employees of a company 1 point
empAge(empNo, age)
10) Consider the join of a relation R with a relation S. If R has m tuples and S 1 point
has n tuples then the maximum and minimum sizes of the result of a join, respectively,
are:
m + n and 0
mn and 0
m + n and |m − n|
mn and m + n