Nptel Introduction to Database Systems Week 3 Assignment Answer

ABOUT THE COURSE :
Databases are the backbone of almost all the digital services and e-governance solutions. Modern businesses and financial systems heavily depend on databases systems and transaction processing for their successful operation. This course introduces the students to the various theoretical and practical principles involved in the design and use of databases systems with the help of database management systems (DBMS) and the SQL Standard
INTENDED AUDIENCE  : Any Interested Learners

PREREQUISITES  : Studying B Tech (computer science) 3rd year, Discrete Mathematics or Discrete Structures, Programming and Data Structures

Nptel Introduction to Database Systems Week 3 Assignment Answer

Course layout

Week 1   : Introduction and part of E/R Model Module
Week 2   : ER Model Module
Week 3   : Relational Model Module
Week 4   : Relational Model Module
Week 5   : TRC Module and part of SQL Module
Week 6   : SQL Module
Week 7   : Indexes Module
Week 8   : Indexes Module + Query Processing Module
Week 9   : Normal Forms Module
Week 10 : Normal Forms Module
Week 11 : Transaction Processing Module
Week 12 : Transaction Processing Module

Nptel Introduction to Database Systems Week 3 Assignment Answer

Week 3 : Assignment 3

Due date: 2025-02-12, 23:59 IST.
Assignment not submitted
1 point
Which of the following statements is TRUE?
 
 
 
State if the following statements are TRUE or FALSE:
1 point
In an instance of a relation, it is possible that the value of a key attribute is NULL in a certain row.
 
1 point
It is possible for a foreign key of a relation to refer to the primary key of the relation itself.
 
 
1 point
Every relation scheme can have at most one foreign key
 
 
1 point
If K is supposed to be a key for scheme R, any relation instance r on R should not have two tuples that have identical values for attributes in K.
 
 
1 point

Consider the following tables:

How many tuples exist in the query (AB)(A.id>20C.id< 10)C?(A∪B)⟗(A.id>20∨C.id< 10)C?

 
 
 
 
1 point

Consider the following relations A(X,Y,Z)A(X,Y,Z) and B(D,E,F)B(D,E,F):

What is the result of the following expression: Π(X,Y)(σ(X=1)(X=4)(A))Π(D,E)(σ(D3)(B))Π(X,Y)(σ(X=1)∨(X=4)(A))−Π(D,E)(σ(D≠3)(B))

 
 

1 point

Consider the following relations A(X,Y,Z) and B (D,E,F) and find out how many tuples will there be in the result of the following relational algebra expression?

A(A.X>=B.DA.Z< =B.F)BA⨝(A.X>=B.D∨A.Z< =B.F)B

 
 
 
 
1 point

Information about a collection of students is given by the relation studInfo(studId, name, sex, yearOfJoin). The relation enroll(studId, courseId) gives which student has enrolled for (or taken) that course(s). Assume that every course is taken by at least one male and at least one female student. What does the following relational algebra expression represent?

ΠcourseId((ΠstudId(σsex=”Female(studInfo))×ΠcourseId(enroll))enroll)ΠcourseId((ΠstudId(σsex=”Female”(studInfo))⨯ΠcourseId(enroll))−enroll)

 
 
 
 
1 point
Choose the correct statement(s):
 
 

 
1 point

Consider the following relations A(X,Y,Z) and B(X,Y) and the given instances. What is the result of the relational algebra expression?
A÷BA÷B

 
 
 
 
1 point

Given two union compatible relations X(A,B) and Y(C,D). What is the result of the operation?

X(A=C)(B=D)YX⋈(A=C)∧(B=D)Y

1 point

If X, Y and Z are as specified below, which of the following statements is TRUE wrt different keys of a relational DB?

X = set of all primary keys
Y = set of all candidate keys
Z = set of all super keys

Related Posts