S307 Final Exam Study Guide with Complete Solutions
S307 Final Exam Study Guide with Complete Solutions join - Correct Answer - relational operation that causes two or more tables with a common domain to be combined into a single table or view - can use "JOIN" or "INNER JOIN"..."ON" - common columns appear redundantly in the result table - can use "=", "","" ,"" equi-join - Correct Answer - join in which the joining condition is based on equality between values in the common columns natural join - Correct Answer - equi-join in which one of the duplicate columns is eliminated in the result table outer join - Correct Answer join in which rows that do not have matching values in common columns are nonetheless included in the result table union - Correct Answer combines the result of two or more SELECT statements inner join - Correct Answer - only return rows from each table that have matching rows in the other What do you have to do in joins to ensure referential integrity? - Correct Answer each pair of tables requires an equality-check condition in the WHERE clause, matching primary keys against foreign keys self-join - Correct Answer - add table twice using aliases - SELECT E.EmployeeID, E.EmployeeName, M.EmployeeName AS Manager FROM Employee_T E, Employee_T M WHERE E.EmployeeSupervisor = M.EmployeeID subquery - Correct Answer placing an inner query (SELECT statement) inside an outer query
Document information
- Uploaded on
- July 22, 2024
- Number of pages
- 9
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers