Database-Management-System
August 29, 2024
Database-Management-System
August 29, 2024
Database-Management-System
August 29, 2024
Database-Management-System
August 29, 2024

Database-Management-System

Question 283
Given relations R(w, x) and S(y,z), the result of select distinct w, x from R, S is guaranteed to be same as R, Provided
A
R and S have no duplicates
B
S has no duplicates and R is non-empty
C
R and S have the same number of tuples
D
R has no duplicates and S is non-empty
Question 283 Explanation: 
A)Lets assume that S is empty(no duplicates) and R is not empty then RXS will be empty which will not be equal to R.Hence false.
B)Same reason as (A) .Hence false.
C)Lets assume R has duplicates,in this case,due to distinct keyword those duplicates will get eliminated in final result and the output will not be same as R.Hence false.
D)True.From above all options explaination we can conclude this as the answer.
Correct Answer: D
Question 283 Explanation: 
A)Lets assume that S is empty(no duplicates) and R is not empty then RXS will be empty which will not be equal to R.Hence false.
B)Same reason as (A) .Hence false.
C)Lets assume R has duplicates,in this case,due to distinct keyword those duplicates will get eliminated in final result and the output will not be same as R.Hence false.
D)True.From above all options explaination we can conclude this as the answer.
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!!