Exam with Questions and Verified Answers
2025/2026 Graded A+
1. San Francisco, CA 94110US
E E E E
A
How many attributes are present in the address fragment?
E E E E E E E E
-1
E
-2
E
-3
E
- 4: 4
E E
2. The Package table has the following columns:Weig
E E E E E E E
ht—decimal
Description—
optional variable length stringLastChangedDate
E E E E
—date TrackingNumber—integer
E
Which column should be designated the primary key for the Package table?
E E E E E E E E E E E
- Weight
1E/E20
,- Description
- LastChangedDate
- TrackingNumber: Tracking Number E E
3. Which data type will store "2022-01-
E E E E E
10 14:22:12" as a temporal value withoutloss of information?
E E E E E E E E E
- DATE
- DATETIME
- DECIMAL
- BIGINT: DATETIME
E
4. Which SQL command is an example of data definition language (DDL)?
E E E E E E E E E E
- UPDATE
- ALTER
- SELECT
- DELETE: CREATE, ALTER, OR DROP
E E E E
5. How would a database engine process an update that violates a RESTRICTreferentia
E E E E E E E E E E E E
l integrity constraint?
E E
- The offending value would be set to the database default.
E E E E E E E E E
- The update would be rejected by the database.
E E E E E E E
- The offending value would be changed to NULL.
E E E E E E E
2E/E20
,-
The updated value would flow to the primary key.: The update would be rejectedby the data
E E E E E E E E E E E E E E E E E
base.
6. Which restriction applies when using a materialized view?
E E E E E E E
- The users of the view must provide search terms.
E E E E E E E E
- The underlying data must be periodically refreshed.
E E E E E E
- The tables referenced in the view must be indexed.
E E E E E E E E
- The rows in the table must be compressed.: The underlying data must beperiodica
E E E E E E E E E E E E E
lly refreshed.
E
7. Which query illustrates performing an outer join of the Movie table with adifferent
E E E E E E E E E E E E E E
table?
- SELECT M.Title, A.Actor FROM Movie M, Actor AWHER
E E E E E E E E
E M.ActorID = A.ID
E E E
- SELECT M.Title, A.Actor FROM Movie MLEFT
E E E E E E E
JOIN Movie MB ON M.ID, Actor A
E E E E E E
- SELECT M.Title, A.Actor FROM Movie MRIGH
E E E E E E
T JOIN Actor A ON M.ActorID = A.Id
E E E E E E E
- SELECT M.Title, A.Actor FROM Movie M
E E E E E
INNER JOIN Actor A ON M.ActorID = A.ID: SELECT M.Title, A.Actor FROM MovieM
E E E E E E E E E E E E E
3E/E20
, LEFT JOIN Movie MB ON M.ID Actor A
E E E E E E E
8. Assume there are two tables, A and B. E E E E E E E
Which rows will always be included in the result set if Table A is inner joinedwith Tabl
E E E E E E E E E E E E E E E E E
e B? E
- Only rows in Tables A and B that share the join condition
E E E E E E E E E E E
- all rows in Table B
E E E E
- All rows in Table A
E E E E
- Only rows in Tables A and B that do not share the join condition: Only rowsin Table A
E E E E E E E E E E E E E E E E E E E
and B that share the join condition
E E E E E E
9. 1. Portland, OR 97212
E E E
How many attributes are present in the address fragment?
E E E E E E E E
-1 E
-2 E
4E/E20