logo

Crowdly

Browser

Add to Chrome

INTRO. TO DATABASE MGMT. SYST.

Looking for INTRO. TO DATABASE MGMT. SYST. test answers and solutions? Browse our comprehensive collection of verified answers for INTRO. TO DATABASE MGMT. SYST. at moodlenew.iitd.ac.in.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Given the following SQL query:

Film (FilmID, Title, Year, Genre, DirectorID)

Director (DirectorID, Name, BirthYear, Nationality)

Actor (ActorID, Name, BirthYear, Nationality)

Film_Actor (FilmID, ActorID, Role)

SELECT f.Title

FROM Film f

WHERE NOT EXISTS (

    SELECT 1 

    FROM Film_Actor fa

    JOIN Actor a ON fa.ActorID = a.ActorID

    WHERE fa.FilmID = f.FilmID AND a.Nationality <> 'American'

);

Which of the following Relational Algebra expressions correctly represents this query?

0%
0%
0%
0%
View this question

Consider a relation R(M, N, O, P, Q, R) with the following functional dependencies:  

1. MN → OP  

2. O → Q  

3. P → R  

4. Q → M  

The candidate key is MN.  

Which functional dependency (or dependencies) violate BCNF?  

0%
0%
0%
0%
View this question

Given the following SQL query:

Employee(eId, Name) 

Brand(bId, bName)

Own(eId, bId)

SELECT O1.eId  

FROM Own O1  

WHERE NOT EXISTS (  

    SELECT B.bId  

    FROM Brand B  

    WHERE NOT EXISTS (  

        SELECT *  

        FROM Own O2  

        WHERE O2.eId = O1.eId AND O2.bId = B.bId  

    )  

);

Which of the following Relational Algebra expressions correctly represents this query?

0%
0%
0%
0%
View this question

Consider a relation R(M, N, O, P, Q, R) with the following functional dependencies:  

1. M → N  

2. N → OP  

3. O → Q  

4. P → R  

Using the attribute closure method, is M → R derivable from the given FDs?  

View this question

Given the following SQL query:

SELECT DISTINCT E.Lname, E.Fname

FROM Employee E, Department D

WHERE E.Dno = D.Dnumber AND D.Dname = 'Research';

Which of the following Relational Algebra expressions correctly represents this query?

0%
0%
0%
0%
View this question

Consider a relation R(M, N, O, P, Q, R) with the following functional dependencies:  

1. MN → OP  

2. O → Q  

3. P → R  

Which of the following functional dependencies must also hold?

0%
0%
0%
0%
0%
View this question

Given the following SQL query:

Film (FilmID, Title, Year, Genre, DirectorID)

Director (DirectorID, Name, BirthYear, Nationality)

Actor (ActorID, Name, BirthYear, Nationality)

Film_Actor (FilmID, ActorID, Role)

SELECT f.Title

FROM Film f

JOIN Film_Actor fa1 ON f.FilmID = fa1.FilmID

JOIN Actor a1 ON fa1.ActorID = a1.ActorID

JOIN Film_Actor fa2 ON f.FilmID = fa2.FilmID

JOIN Actor a2 ON fa2.ActorID = a2.ActorID

WHERE a1.Name = 'Leonardo DiCaprio' AND a2.Name = 'Tom Hanks';

Which of the following Relational Algebra expressions correctly represents this query?

0%
0%
0%
0%
View this question

Given the following SQL query:

empAge(empNo​,age)

SELECT DISTINCT E1.empNo

FROM empAge E1

JOIN empAge E2

ON E1.age > E2.age;

Which of the following Relational Algebra expressions correctly represents this query?

0%
0%
0%
0%
View this question

Consider a relation R(P, Q, R, S, T) with the following functional dependencies:  

1. PQ → R  

2. R → S  

3. S → T  

4. T → P  

The candidate key is PQ.  

Which functional dependency (or dependencies) violate BCNF?  

0%
0%
0%
0%
View this question

Which of the following is true about BCNF decomposition?

0%
0%
View this question

Want instant access to all verified answers on moodlenew.iitd.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome