题目
题目

ECON3310001.1251 Quiz 8: Database Design

单项选择题

Now consider a revised version of the previous database. Assume that the first attribute in each table is always the primary key, except for Assigned, where the primary key is a composite key consisting of (ssn, number). Schema: Employee (ssn, name, title, home-dept) home-dept FOREIGN KEY REFERENCES Department(code) Department (code, name, manager) manager FOREIGN KEY REFERENCES Employee(ssn) manager NOT NULL Project (number, name, start-date, end-date, budget, sponsor) sponsor FOREIGN KEY REFERENCES Department(code) sponsor NOT NULL Assigned (ssn, number) ssn FOREIGN KEY REFERENCES Employee(ssn) number FOREIGN KEY REFERENCES Project(number) Which of the following statements is true?

选项
A.There may be an employee with no department.
B.All projects are assigned to employees.
C.Not every department needs a manager.
D.Not every manager is an employee.
E.There are some unsponsored projects.
查看解析

查看解析

标准答案
Please login to view
思路分析
To tackle this question, I will first restate the scenario and list all answer choices, then evaluate each option one by one. Question restated: We have a revised database schema where the first attribute in each table is the primary key, except for Assigned which uses a composite key (ssn, number). The schema is: Employee(ssn, name, title, home-dept) with home-dept as a foreign key to Department(code); Department(code, name, manager) where manager is a foreign key to Employee(ssn) and cannot be NULL; Project(number, name, start-date, end-date, budget, sponsor) where sponsor is a foreign key to Department(code) and cann......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

Part 1The BusyB Company wants to store data about its employee skills. Each employee may possess one or more specific​ skills, and several employees may have the same skill. Include the following facts in the​ database: View the database facts. LOADING... Read the requirements. LOADING... Part 1Design a set of relational tables to store this data. Select a table​ name, primary​ key(s), foreign​ key(s) and other​ attributes(s) for each table. ​(If an input field is not used in the table leave the input field​ empty; do not select a​ label.) [table] | Save Accounting Table... | | + | Copy to Clipboard... | | + [/table] [table] Table Name | Primary Key | Foreign Key | Other Attributes | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [/table] Save Accounting Table...+Copy to Clipboard...+Table NamePrimary KeyForeign KeyOther Attributes[Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account][Account] [IMPORTANT INSTRUCTION] When returning answers, provide an array for [Fill in the blank] positions ONLY. Skip [Account] cells (these are dropdowns). If a [Fill in the blank] should be empty, return an empty string "" as a placeholder. The array length should equal the number of [Fill in the blank] cells, not total cells.

In a consumer society, many adults channel creativity into buying things

Economic stress and unpredictable times have resulted in a booming industry for self-help products

People born without creativity never can develop it

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!