



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































RIGHT OUTER JOIN would preserve departments, and FULL OUTER JOIN would include unmatched rows from both sides.
B) Eliminates duplicate rows from the result set C) Restricts the number of rows returned D) Groups rows by a specified column Correct Answer: B Rationale: DISTINCT eliminates duplicate rows from the output. It applies to all columns in the SELECT list, not just the first column.
Correct Answer: B Rationale: UNION ALL combines result sets and retains all duplicate rows. UNION removes duplicates, INTERSECT returns common rows, and MINUS returns rows from the first query not in the second.
Correct Answer: C Rationale: INNER JOIN returns only rows where the join condition is satisfied in both tables. Outer joins include unmatched rows from one or both tables.
D) To create a view Correct Answer: B Rationale: A sequence generates sequential numeric values, commonly used for primary key generation. It is independent of any table.
Correct Answer: B Rationale: ROUND rounds a number to the specified number of decimal places. ROUND(15.193, 1) rounds to one decimal place, giving 15.2.
Rationale: A view is a virtual table defined by a query. It does not store data physically (unless materialized) and can be queried like a regular table.
D) It cannot use subqueries Correct Answer: B Rationale: MERGE performs conditional inserts, updates, and deletes in a single statement by comparing a source and target table.
Rationale: A foreign key references a primary or unique key in another table, enforcing referential integrity between the two tables.