Consider the relations shown in the exhibit. Due to restructuring, the sales department has
been eliminated and the employees working in that department have been dismissed. All ID
information is stored as integers. Which SQL statement would be used to return a relation with all
information for the employees who have been dismissed?
Answer : C
Consider the following relation definition:
STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 NOT NULL)
Primary Key Student_Number
HOUSING(
Housing_ID: integer NOT NULL
Student_Number: integer NOT NULL
Building: variable length character string length 25 NOT NULL)
Primary Key Housing_ID
Foreign Key Student_Number References
STUDENT(Student_Number)
ON DELETE NO CHECK
ON UPDATE
Which integrity constraint is violated in this relation definition?
Answer : C
Consider the following relation definitions:
STUDENT(
Student_Number: integer NOT NULL
Name: variable length character string length 20 )
Primary Key Student_Number
HOUSING(
Housing_ID: integer NOT NULL
Student_Number: integer NOT NULL
Building: variable length character string length 25 )
Primary Key Housing_ID
Foreign Key Student_Number References STUDENT(Student_Number)
ON DELETE NO ACTION
ON UPDATE CASCADE
What are the referential constraints for the relations defined in these relation definitions?
Answer : D
Consider the following SQL statement and the Orders relation shown in the exhibit:
What is the output of this SQL statement?
Answer : C
Which process is used to prevent the current database operation from reading or writing a data
item while that data item is being accessed by another operation?
Answer : A
Consider the following SQL statement and the Orders relation shown in the exhibit:
What is the output of this SQL statement?
Answer : D
Your enterprise must decide whether to use a database management system. Which of the
following best describes the overall functionality of a DBMS?
Answer : D