...
Question 14210 – Database-Management-System
December 7, 2023
Question 17109 – NTA UGC NET JUNE-2023 Paper-2
December 7, 2023
Question 14210 – Database-Management-System
December 7, 2023
Question 17109 – NTA UGC NET JUNE-2023 Paper-2
December 7, 2023

Question 8670 – Database-Management-System

SQL allows tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives the same answer as the nested query shown below:

    select * from R where a in (select S.a from S)

Correct Answer: C

Question 48 Explanation: 
Multiplicity of duplicate tuples will be distributed when there is a match between R.a and S.a; and for that match, S.a’s value is repeated in each cases except the third case. So, the output of query given in the question matches with the output of (C).
A
select R.* from R,S where R.a=S.a
B
select distinct R.* from R,S where R.a=S.a
C
select R.* from R,(select distinct a from S) as S1 where R.a=S1.a
D
select R.* from R,S where R.a=S.a and is unique R
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!