FIRST PUBLISH OCTOBER 2024
CS430 Midterm 2 Exam Practice
Questions and Answers
One key difference between a natural join and an inner join is: - Ans:✔✔-the number of columns
returned
We define a view in SQL by using the create view command. - Ans:✔✔-True
To remove an authorization, we use the ________________command. - Ans:✔✔-revoke
Views are considered updatable if which of the following conditions are satisfied: - Ans:✔✔-The from
clause only had one database relation
The select clause contains only attribute names of the relation and does not have an expressions,
aggregates or distinct specification.
Any attribute not listed in the select clause can be set to null.
A transaction is a single operation that performs multiple logical functions within a database. - Ans:✔✔-
False
Page 1/12
, ©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED
FIRST PUBLISH OCTOBER 2024
____________________ are a scheme that allows authorizations to be assigned to a set of
responsibilities, and people to be assigned to those responsibilities. - Ans:✔✔-Roles
Outer join query operations can be implemented by a simple extension of join algorithms. - Ans:✔✔-
True
Indices are created by using the "GRANT index {index-name} on {relation-name} using {field-name}"
command. - Ans:✔✔-False
What are the two possible SQL statements that must end a transaction? - Ans:✔✔-Commit work
Rollback work
What is the concept of referential integrity? - Ans:✔✔-That a foreign key entry in one table must point to
a valid record in the table associated with the foreign key.
Which of the following is true about SQL? - Ans:✔✔-SQL is both a Data Manipulation Language (DML)
and a Data Definition Language (DDL).
SQL specifies strings by enclosing them in double quotes. - Ans:✔✔-False
The _________________ command is used to insert data into a relation. - Ans:✔✔-insert
Match the domain type to its description.
Page 2/12