Database-Management-System
December 7, 2023Database-Management-System
December 7, 2023Database-Management-System
|
Question 39
|
Which of the following is/are correct?
|
An SQL query automatically eliminates duplicates
|
|
|
An SQL query will not work if there are no indexes on the relations
|
|
|
SQL permits attribute names to be repeated in the same relation
|
|
|
None of the above
|
Question 39 Explanation:
→ SQL won’t remove duplicates like relational algebra projection, we have to remove it explicitly by distinct.
→ If there are no indexes on the relation SQL, then also it works.
→ SQL does not permit 2 attributes to have same name in a relation.
→ If there are no indexes on the relation SQL, then also it works.
→ SQL does not permit 2 attributes to have same name in a relation.
Correct Answer: D
Question 39 Explanation:
→ SQL won’t remove duplicates like relational algebra projection, we have to remove it explicitly by distinct.
→ If there are no indexes on the relation SQL, then also it works.
→ SQL does not permit 2 attributes to have same name in a relation.
→ If there are no indexes on the relation SQL, then also it works.
→ SQL does not permit 2 attributes to have same name in a relation.
