Foreign Keys and Referential Integrity
- 89Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
89 questions
- 1A group of attributes in one relation used to refer to tuples in another relation is called a_____.
Hint
It establishes a reference between relations.
Answer
foreign key
- 2The constraint requiring foreign-key references to identify existing tuples rather than nonexistent ones is called the_____constraint.
Hint
It prevents references from pointing to missing records.
Answer
referential integrity
- 3A foreign-key reference that does not correspond to an existing tuple is called a_____reference.
Hint
The reference points to something that is not present.
Answer
dangling
- 4In a relational scheme, an underlined attribute or group of attributes indicates a_____.
Hint
The notation identifies attributes that uniquely identify tuples.
Answer
key
- 5If a relational scheme has multiple keys, each key is represented by a separate underlined_____of attributes.
Hint
A key may consist of more than one attribute.
Answer
group
- 6The relational database example is designed to capture academic details about an institute containing departments, students, and various_____.
Hint
Students study in different academic programs.
Answer
degrees
- 7A relational schema diagram displays relation names, attribute names, underlined keys, and arrows showing_____keys and their referenced relations.
Hint
The arrows show references between relations.
Answer
foreign
- 8The attribute used to identify a particular student's academic advisor is the student's_____attribute.
Hint
It stores the identifier of the faculty member who advises the student.
Answer
advisor
- 9The value stored in a student's advisor attribute comes from the_____ID domain of a faculty member.
Hint
Faculty members are institute employees.
Answer
employee
- 10All students in the example database are required to have an_____.
Hint
The student relation includes this required faculty relationship.
Answer
advisor
- 11To find more information about a student's advisor, one must look up the appropriate_____relation.
Hint
The student's tuple stores an identifier, not all advisor details.
Answer
other
- 12The database schema is reused throughout the relational algebra and later_____modules.
Hint
This language is used for database queries.
Answer
SQL
- 13The student relation contains roll number, name, degree, years, sex, department number, and_____.
Hint
This attribute identifies the student's faculty advisor.
Answer
advisor
- 14The key of the student relation is the student's_____.
Hint
It uniquely identifies each student tuple.
Answer
roll number
- 15The student relation's degree attribute records the program in which the student is_____.
Hint
It identifies the academic program the student joined.
Answer
enrolled
- 16In the student relation, the years attribute records the student's year of_____.
Hint
It records when the student entered the institute.
Answer
admission
- 17The department relation contains department ID, name, HOD, and_____.
Hint
This attribute stores the department office contact number.
Answer
phone
- 18The HOD attribute identifies the faculty member who is academically responsible for running a_____.
Hint
HOD stands for head of department.
Answer
department
- 19The department ID is chosen as a numeric_____for the department relation.
Hint
It makes departments easily identifiable.
Answer
key
- 20The professor relation uses employee ID because professors are all_____of the institute.
Hint
The identifier is an employee identifier.
Answer
employees
- 21The professor relation contains employee ID, name, sex, start year, department number, and_____number.
Hint
This is the professor's contact attribute.
Answer
phone
- 22The start year in the professor relation records the year a faculty member joined the particular_____.
Hint
Faculty members work in departments.
Answer
department
- 23A course is described as a_____of study.
Hint
It is an academic area students can take.
Answer
subject
- 24The number of credits earned upon completing a course is stored in the course relation's_____attribute.
Hint
It measures the academic value of the course.
Answer
credits
- 25The attribute that identifies the department offering a course is the course relation's_____number.
Hint
It links the course to its offering department.
Answer
department
- 26The course relation uses course ID as its_____.
Hint
It identifies individual courses.
Answer
key
- 27The relation that records students enrolling in courses and receiving grades is the_____relation.
Hint
It captures the student-course registration relationship.
Answer
enrollment
- 28The enrollment relation has a composite key containing roll number, course ID, semester, and_____.
Hint
A course offering is distinguished by its academic year.
Answer
year
- 29Course ID alone cannot identify an enrollment because a student can take several courses in a particular_____.
Hint
Students usually enroll in multiple subjects during one academic period.
Answer
semester
- 30The same course can be offered repeatedly across different_____.
Hint
The offering in one calendar period must be distinguished from later offerings.
Answer
years
- 31In the example, the semester attribute has the value odd or even, representing the August semester and the_____semester, respectively.
Hint
It is the semester named after the beginning month of the year.
Answer
January
- 32The grade for a student's current semester is assumed to be_____until the semester ends.
Hint
The result has not yet been assigned.
Answer
null
- 33The relation that records which professor teaches which course in a particular semester and year is the_____relation.
Hint
It captures the faculty side of course offerings.
Answer
teaching
- 34All attributes in the teaching relation are needed in its key because no_____of those attributes uniquely identifies a row.
Hint
A smaller group of the attributes would not be sufficient.
Answer
subset
- 35The prerequisite relation contains the two attributes preReqCourse and_____.
Hint
The second attribute identifies the course requiring the prerequisite.
Answer
course ID
- 36If a prerequisite tuple contains courses C1 and C2, it means C1 must be successfully completed before enrolling in_____.
Hint
The second course is the one that has the prerequisite.
Answer
C2
- 37In the example, data structures is a prerequisite for_____systems.
Hint
It is the course concerned with organizing and querying relational data.
Answer
database
- 38The department number in the student relation is a foreign key referring to the department relation's department_____.
Hint
It references the department's identifying attribute.
Answer
ID
- 39The HOD in the department relation is a foreign key referring to the professor relation's_____ID.
Hint
The HOD is identified as a faculty employee.
Answer
employee
- 40Both preReqCourse and course ID in the prerequisite relation are foreign keys referring to the course relation's_____ID.
Hint
Both attributes identify courses.
Answer
course
- 41The employee ID in the teaching relation is a foreign key referring to the_____relation.
Hint
The referenced tuples describe faculty members.
Answer
professor
- 42The roll number in the enrollment relation is a foreign key referring to the_____relation.
Hint
It identifies the student taking the course.
Answer
student
- 43The department number in the professor relation is a foreign key referring to the_____relation.
Hint
It identifies where the professor works.
Answer
department
- 44The course ID in the enrollment relation is a foreign key referring to the_____relation.
Hint
It identifies the course in which the student is enrolled.
Answer
course
- 45The course ID in the teaching relation is a foreign key referring to the_____relation.
Hint
It identifies the course being taught.
Answer
course
- 46The advisor in the student relation is a foreign key referring to the professor relation's_____ID.
Hint
The advisor is a faculty member identified through an employee identifier.
Answer
employee
- 47The department number in the course relation is a foreign key referring to the department relation's department_____.
Hint
It identifies the department offering the course.
Answer
ID
- 48A foreign-key value may be either null or a value that already exists in the referenced relation's relevant_____.
Hint
The value must match an existing value in the referenced attribute.
Answer
column
- 49The attribute names department number and department ID may differ even though they represent the same kind of_____.
Hint
A foreign key and the key it references do not need identical names.
Answer
thing
- 50When the same attribute name appears in multiple relations, conventional_____notation identifies which relation's attribute is meant.
Hint
The relation name is written before a punctuation mark and the attribute name.
Answer
dot
- 51Relational algebra is a set of operators that take relation instances as arguments and return new_____instances.
Hint
The operators work on relations and produce relations.
Answer
relation
- 52The operators of relational algebra may be either unary or_____.
Hint
Unary operators use one relation, while the other type uses two.
Answer
binary
- 53A database query is basically a data_____request.
Hint
It asks the database to return desired information.
Answer
retrieval
- 54Relational algebra is a_____way of expressing what operations should be performed to obtain a result.
Hint
It describes a sequence of operations rather than only the desired result.
Answer
procedural
- 55An algebraic expression can be viewed as a tree in which information flows upward and the output appears at the_____.
Hint
It is the top node of a tree representation.
Answer
root
- 56Relational algebra forms the core component of the relational query_____.
Hint
This is the part of a database system that processes queries.
Answer
engine
- 57In the conceptual treatment, relational algebra operators are considered logical or mathematical operators rather than implementation_____.
Hint
The lesson postpones how programs realize the operators.
Answer
details
- 58SQL is described as a largely_____way of specifying queries.
Hint
It states what data is wanted rather than prescribing every operation.
Answer
declarative
- 59SQL queries are internally translated into_____algebraic expressions.
Hint
The expressions use operators that work on relations.
Answer
relational
- 60Translating SQL into relational algebra provides an opportunity to optimize how the query is actually_____.
Hint
Optimization improves the way the database carries out the request.
Answer
executed
- 61The two unary relational algebra operators introduced are select and_____.
Hint
One filters tuples and the other removes unwanted attributes.
Answer
project
- 62The relational algebra operators listed include cross product, union, intersection, difference, and_____.
Hint
This operation combines related tuples from relations.
Answer
join
- 63The relational algebra select operator chooses tuples that satisfy a specified_____.
Hint
It filters rows according to a Boolean requirement.
Answer
condition
- 64The select operator is a_____operator because it takes one relation as input.
Hint
The prefix means one.
Answer
unary
- 65The selection condition in relational algebra is commonly represented by the Greek letter_____.
Hint
It is the parameter that specifies which tuples qualify.
Answer
theta
- 66Selecting tuples does not change the input relation's scheme; the result has the same set, sequence, and order of_____.
Hint
Selection filters rows rather than columns.
Answer
attributes
- 67The selection operation is_____because applying condition C1 and then C2 gives the same tuples as applying C2 and then C1.
Hint
The order of the two selections does not matter.
Answer
commutative
- 68A basic selection condition can compare one attribute with another attribute or compare an attribute with a_____.
Hint
The second comparison value is not another attribute.
Answer
constant
- 69Attributes used in a selection condition must come from the_____on which the operator is applied.
Hint
The condition refers to attributes available in the input schema.
Answer
relation
- 70A constant compared with an attribute in a selection condition must have an appropriate_____.
Hint
Strings should be compared with strings, and integers with integers.
Answer
type
- 71Basic conditions can be combined with the logical operators and, or, and_____.
Hint
This operator reverses a Boolean condition.
Answer
not
- 72A condition formed by combining basic conditions with logical operators is called a_____condition.
Hint
It is more complex than an atomic condition.
Answer
composite
- 73The six comparison operators listed for selection are less than, less than or equal to, greater than, greater than or equal to, equal to, and_____equal.
Hint
This operator expresses inequality.
Answer
not
- 74Comparison operators are meaningful when the corresponding attribute domains are_____ordered sets.
Hint
The values must have an order relation.
Answer
linearly
- 75To obtain professors named Giridhar, the selection condition compares the professor relation's name attribute with the string_____.
Hint
The requested professor name is given directly in the query.
Answer
Giridhar
- 76If several professors are named Giridhar, the name-based selection returns_____matching tuples.
Hint
Selection does not assume that the name is unique.
Answer
all
- 77To find professors who joined between 1980 and 1985 inclusively, the selection condition constrains the start year to that_____.
Hint
Both endpoints are included.
Answer
range
- 78The relational algebra project operator is used to remove unwanted_____from a relation.
Hint
It focuses on selected attributes rather than selected tuples.
Answer
columns
- 79Unlike select, project chooses a subset of_____rather than a subset of tuples.
Hint
It determines which fields appear in the result.
Answer
attributes
- 80The symbol used for the project operator is the Greek letter_____.
Hint
It is commonly used before a list of desired attributes.
Answer
pi
- 81Every attribute in a projection list must be part of the input relation's_____.
Hint
The input must contain each requested attribute.
Answer
scheme
- 82The attributes in a projection list need not be_____in the original relation.
Hint
Projection can select attributes from different positions.
Answer
consecutive
- 83The scheme of a projection result is exactly the projection_____.
Hint
It contains the attributes selected by the operator.
Answer
list
- 84Because a relation is a set of tuples, a projection result contains no_____.
Hint
Repeated projected values collapse into one tuple.
Answer
duplicates
- 85If several input tuples have the same values for all projected attributes, projection keeps only_____resulting tuple.
Hint
Set semantics do not preserve repeated identical tuples.
Answer
one
- 86Projecting only the name attribute after selecting students whose degree is M.S. can merge two students named_____.
Hint
The example contains students with this same name in different departments.
Answer
Mahesh
- 87Projecting roll number and name from the student relation preserves one tuple per student because roll number is a_____.
Hint
A key uniquely identifies tuples.
Answer
key
- 88If the projection list contains the input relation's key, the number of tuples in the result is exactly the same as in the_____relation.
Hint
Including a key prevents duplicate projected tuples.
Answer
input
- 89If the projection list does not contain the input relation's key, the result may contain_____tuples than the input.
Hint
Different input tuples can collapse into identical projected tuples.
Answer
fewer

Ask anything
We've read this whole study set, so questions about it get the best answers.