• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

ER and Relational Models

Question 21

Consider the join of a relation R with a relation S. If K has m tuples and S has n tuples, then the maximum and minimum sizes of the join respectively are:
  • m+n and 0
  • mn and 0
  • m+n and m-n
  • mn and m+n

Question 22

The relational algebra expression equivalent to the following tuple calculus expression

{ t | t ∈ r ∧ (t[A] = 10 ∧ t[B] = 20 }

is q5
  • a
  • b
  • c
  • d

Question 23

Given two union compatible relations R1(A,B) and R2(C,D). What is the result of the operation R1A=C∧ B=D R2    A. R∪ R2 B. R1 Χ R2 C. R1 - R2 D. R1 ∩ R2
  • a
  • b
  • c
  • d

Question 24

Which of the following query transformations (i.e., replacing the l.h.s. expression by the r.h.s. expression) is incorrect? R1 and R2 are relations. C1, C2 are selection conditions and A1, A2 are attributes of R1. a.  σC1( σC2R1)) → σC2(σC1(R1)) b.  σC1( πA1R1)) → πA1(σC1(R1)) c.  σC1( R1 ∪ R2 ) → σC1(R1) ∪ σC1(R2) d.  πA1(σC1(R1)) → σC1 (πA1 (R1))
  • a
  • b
  • c
  • d

Question 25

A library relational database system uses the following schema

USERS (User#, UserName, HomeTown)
BOOKS (Book#, BookTitle, AuthorName)
ISSUED (Book#, User#, Date)

Explain in one English sentence, what each of the following relational algebra queries is designed to determine  

[caption width="800"] [/caption]
  •  Show all the Book Title which have been issued by User# 6.

  •  The user who’s home town is Delhi and issued a book, Show all the name authors of the book he/she have issued.

Question 26

Consider the following tables T1 and T2: g2017_14 In table T1, P is the primary key, Q is the foreign key referencing R in table T2 with on-delete cascade and on-update cascade. In table T2, R is the primary key and S is the foreign key referencing P in the table T1 with on-delete set NULL and on-update cascade. In order to delete record (3,8) from table, numbers of additional record that need to be deleted from table T1 is ______. Note: This question appeared as Numerical Answer Type.
  • 0
  • 1
  • 2
  • 3

Question 27

In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in R and that the cardinality of E1 is greater that the cardinality of E2. Which one of the following is true about R?
  • Every entity in E1 is associated with exactly one entity in E2.
  • Some entity in E1 is associated with more than one entity in E2.
  • Every entity in E2 is associated with exactly one entity in E1.
  • Every entity in E2 is associated with at most one entity in E1.

Question 28

Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B. Consider the query
Q: r⋈(σB<5(s))
Let LOJ denote the natural left outer-join operation. Assume that r and s contain no null values. Which one of the following is NOT equivalent to Q?
  • σB<5(r ⋈ s)
  • σB<5(r LOJ s)
  • r LOJ (σB<5(s))
  • σB<5(r)LOJ s

Question 29

Match the following with respect to RDBMS : q18
  • (1)
  • (2)
  • (3)
  • (4)

Question 30

Consider the following schema :
Sailors (sid, sname, rating, age)
Boats (bid, bname, colour)
Reserves (sid, bid, day)
Two boats can have the same name but the colour differentiates them. The two relations
ρ (Tempsids, (Ⲡ  sid, bid  Reserves)/(Ⲡ bid ( σ bname =\'Ganga\' Boats))),
Ⲡ sname (Tempsids ⋈ Sailors)
If / is division operation, the above set of relations represents the query
  • Names of sailors who have reserved all boats called Ganga
  • Names of sailors who have not reserved any Gangaboat
  • Names of sailors who have reserved at least one Gangaboat
  • Names of sailors who have reserved at most one Ganga boat

There are 74 questions to complete.

Last Updated :
Take a part in the ongoing discussion