Question 21
EasyWhich relational algebra operation combines all the rows of two relations with the same attributes?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
Which relational algebra operation combines all the rows of two relations with the same attributes?
Difference (−)
Union (∪)
Projection (π)
Selection (σ)
Sign up free to see the answer and a step-by-step explanation.
Which relational algebra operation gives the tuples that are in R but not in S?
Set difference (R − S)
Union
Cartesian product
Intersection
Sign up free to see the answer and a step-by-step explanation.
Which relational algebra operation pairs every tuple of one relation with every tuple of another?
Natural join
Cartesian product (×)
Union
Projection
Sign up free to see the answer and a step-by-step explanation.
Which relational algebra operation changes the name of a relation or an attribute?
Divide (÷)
Project (π)
Rename (ρ)
Select (σ)
Sign up free to see the answer and a step-by-step explanation.
Relational algebra is best described as:
A programming language for web pages
A language for drawing ER diagrams
A procedural query language that says how to compute the result
A way to store files
Sign up free to see the answer and a step-by-step explanation.
Which column would best serve as the primary key of a Student table?
City
Roll number
Name
Age
Sign up free to see the answer and a step-by-step explanation.
Who proposed the relational model of data?
Dennis Ritchie
E. F. Codd
Peter Chen
Tim Berners-Lee
Sign up free to see the answer and a step-by-step explanation.
What is a super key?
Any set of attributes that uniquely identifies a row, not necessarily minimal
The largest column
A key used only by the DBA
A foreign key in many tables
Sign up free to see the answer and a step-by-step explanation.
A relation R(A, B, C) has the candidate key A. How many super keys does it have?
1
4
7
3
Sign up free to see the answer and a step-by-step explanation.
What does referential integrity require?
Every foreign-key value must match an existing primary-key value (or be NULL)
Every table has a primary key
Every column is unique
Every value is positive
Sign up free to see the answer and a step-by-step explanation.