retagged by
526 views
1 votes
1 votes

Which of the following statements are TRUE?

  1.    An SQL query automatically eliminates duplicates.
  2.    An SQL query will not work if there are no indexes on the relations.
  3.    SQL permits attribute names not to be repeated in the same relation.
  1. I and III  
  2. II only
  3. III only
  4. I and II only
retagged by

1 Answer

Best answer
1 votes
1 votes
1. False , SQL wont remove duplicates like relational algebra projection, we have to remove it explicilty by distinct.

2. False , If there are no indexes on the relation SQL will either chose one/more on its own or simply work without any index. No index would just slow the query but it will surely work.

3. True , SQL does not permit 2 attributes to have same name in a relation.

Hence option C is correct.
Answer:

Related questions

0 votes
0 votes
1 answer
4
Bikram asked Feb 9, 2017
280 views
Consider these relations :$R = ABCDE$$A\rightarrow BC$$B\rightarrow E$$D\rightarrow E$What is the candidate key for the above relations?CAABBDAD