HAFH (Home Away from Home) Realty Company leases apartments to corporate clients. HAFH Realty Company Property...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
• HAFH ("Home Away from Home") Realty Company leases apartments to corporate clients. HAFH Realty Company Property Management Database will keep track of HAFH buildings, apartments, corporate clients, building managers, cleaning staff members, and building inspectors. The property management database for the realty company HAFH will capture data about the following: • For each building: BuildingID (unique) and BNoOfFloors (number of floors in the building); • For each apartment: AptNo (partially unique, i.e., unique within a building) and ANoOf Bedrooms (number of bedrooms in the apartment); • For each corporate client: CCID (unique), CCName (unique), CCLocation, and CCIndustry; • For each manager: ManagerID (unique), MFullName (composed of MFirstName and MLastName), multiple MPhone numbers, MBDate, MAge (derived from MBdate and current date), MSalary, and MBonus (not every manager will have a bonus); • For each staff member: SMemberID (unique) and SMemberName; • For each inspector: InsID (unique) and InsName; • Each building has one or more apartments. Each apartment is located in exactly one building. • Each apartment is either leased to one corporate client or to no one. Each corporate client leases between zero and many apartments. • Each corporate client refers between zero and many corporate clients. Each corporate client can be referred by one corporate client or is not referred by any. • Each apartment is cleaned by either one or two staff members. Each staff member cleans between five and ten apartments. • Each manager manages one or many buildings. Each building is managed by exactly one manager. • Each manager resides in exactly one building. Each building either has one manager residing in it or no managers residing in it. • Each inspector inspects one or many buildings. Each building is inspected by one or many inspectors. • For each building that a particular inspector inspects, the dates of the last inspection by the inspector and of the next future inspection by the inspector are recorded." BuildingID BNoOfFloors) ManagerID ResidesIn MPhone DateNext MAge Inspects BUILDING Manages MANAGER MBdate INSPECTOR DateLast LocatedIn MSalary MBonus (0) %% (MFullName) InsID MLastName InsName AptNo ANoOfBedrooms MFirstName APARTMENT O (5,10) Cleans (1,2) STAFFMEMBER Leases SMemberID SMemberName) CCName CCID CCIndustry CORPCLIENT Refers CCLocation Apply the ER-to-Relational Mapping Algorithm in Chapter 9 (pages 290-296) to the HAFH ("Home Away from Home") Realty Company ER diagram. Following the example in the document on Canvas named ER_to_Relational_Algorithm_applied_to_the_COMPANY_ER_diagram.docx list the outputs from each step of the algorithm in Chapter 9 (pages 290-296) using the template below. For foreign key attributes, please use the same names as their matching primary key attributes, except that in step 4 when mapping the Refers relationship please use the foreign key name CCIDreferred by. (A different foreign key name is necessary in that case because the foreign key attribute and its matching primary key attribute are in the same table.) Step 1. List only the tables (or "relations") that would be created in "Step 1: Mapping of Regular Entity Types" and all of those table's attributes that are created in step 1. Specify the primary key of each table you list. Specify any additional unique keys. If there are no Regular Entity Types, then write, "There are no Regular Entity Types." Your answer for Step 1 goes here. Step 2. List only the tables (or "relations") that would be created in "Step 2: Mapping of Weak Entity Types" and all of those table's attributes that are created in step 2. Specify the primary key of each table you list. If there are no Weak Entity Types, then write, "There are no Weak Entity Types.' "1 Your answer for Step 2 goes here. Step 3. List only the tables (or "relations") that would have attributes added to them in "Step 3: Mapping of Binary 1:1 Relationship Types" using the Foreign key approach. For each table you list, specify only the attributes added in step 3. Indicate which attributes are foreign keys. If there are no 1:1 Relationship Types, then write, "There are no 1:1 Relationship Types." Your answer for Step 3 goes here. Step 4. List only the tables (or "relations") that would have attributes added to them in "Step 4: Mapping of Binary 1:N Relationship Types" using the Foreign key approach. For each table you list, specify only the attributes added in step 4. Indicate which attributes are foreign keys. If there are no 1:N Relationship Types, then write, "There are no 1:N Relationship Types." Your answer for Step 4 goes here. Step 5. List only the tables (or "relations") that would be created in "Step 5: Mapping of Binary M:N Relationship Types" using the Foreign key approach. For each table you list, specify only the attributes created in step 5. Specify the primary key of each table you list. Indicate which attributes are foreign keys. If there are no M:N Relationship Types, then write, "There are no M:N Relationship Types." Your answer for Step 5 goes here. Step 6. List only the tables (or "relations") that would be created in "Step 6: Mapping of Multivalued Attributes." For each table you list, specify only the attributes created in step 6. Specify the primary key of each table you list. Indicate which attributes are foreign keys. If there are no Multivalued Attributes, then write, "There are no Multivalued Attributes." Your answer for Step 6 goes here. • HAFH ("Home Away from Home") Realty Company leases apartments to corporate clients. HAFH Realty Company Property Management Database will keep track of HAFH buildings, apartments, corporate clients, building managers, cleaning staff members, and building inspectors. The property management database for the realty company HAFH will capture data about the following: • For each building: BuildingID (unique) and BNoOfFloors (number of floors in the building); • For each apartment: AptNo (partially unique, i.e., unique within a building) and ANoOf Bedrooms (number of bedrooms in the apartment); • For each corporate client: CCID (unique), CCName (unique), CCLocation, and CCIndustry; • For each manager: ManagerID (unique), MFullName (composed of MFirstName and MLastName), multiple MPhone numbers, MBDate, MAge (derived from MBdate and current date), MSalary, and MBonus (not every manager will have a bonus); • For each staff member: SMemberID (unique) and SMemberName; • For each inspector: InsID (unique) and InsName; • Each building has one or more apartments. Each apartment is located in exactly one building. • Each apartment is either leased to one corporate client or to no one. Each corporate client leases between zero and many apartments. • Each corporate client refers between zero and many corporate clients. Each corporate client can be referred by one corporate client or is not referred by any. • Each apartment is cleaned by either one or two staff members. Each staff member cleans between five and ten apartments. • Each manager manages one or many buildings. Each building is managed by exactly one manager. • Each manager resides in exactly one building. Each building either has one manager residing in it or no managers residing in it. • Each inspector inspects one or many buildings. Each building is inspected by one or many inspectors. • For each building that a particular inspector inspects, the dates of the last inspection by the inspector and of the next future inspection by the inspector are recorded." BuildingID BNoOfFloors) ManagerID ResidesIn MPhone DateNext MAge Inspects BUILDING Manages MANAGER MBdate INSPECTOR DateLast LocatedIn MSalary MBonus (0) %% (MFullName) InsID MLastName InsName AptNo ANoOfBedrooms MFirstName APARTMENT O (5,10) Cleans (1,2) STAFFMEMBER Leases SMemberID SMemberName) CCName CCID CCIndustry CORPCLIENT Refers CCLocation Apply the ER-to-Relational Mapping Algorithm in Chapter 9 (pages 290-296) to the HAFH ("Home Away from Home") Realty Company ER diagram. Following the example in the document on Canvas named ER_to_Relational_Algorithm_applied_to_the_COMPANY_ER_diagram.docx list the outputs from each step of the algorithm in Chapter 9 (pages 290-296) using the template below. For foreign key attributes, please use the same names as their matching primary key attributes, except that in step 4 when mapping the Refers relationship please use the foreign key name CCIDreferred by. (A different foreign key name is necessary in that case because the foreign key attribute and its matching primary key attribute are in the same table.) Step 1. List only the tables (or "relations") that would be created in "Step 1: Mapping of Regular Entity Types" and all of those table's attributes that are created in step 1. Specify the primary key of each table you list. Specify any additional unique keys. If there are no Regular Entity Types, then write, "There are no Regular Entity Types." Your answer for Step 1 goes here. Step 2. List only the tables (or "relations") that would be created in "Step 2: Mapping of Weak Entity Types" and all of those table's attributes that are created in step 2. Specify the primary key of each table you list. If there are no Weak Entity Types, then write, "There are no Weak Entity Types.' "1 Your answer for Step 2 goes here. Step 3. List only the tables (or "relations") that would have attributes added to them in "Step 3: Mapping of Binary 1:1 Relationship Types" using the Foreign key approach. For each table you list, specify only the attributes added in step 3. Indicate which attributes are foreign keys. If there are no 1:1 Relationship Types, then write, "There are no 1:1 Relationship Types." Your answer for Step 3 goes here. Step 4. List only the tables (or "relations") that would have attributes added to them in "Step 4: Mapping of Binary 1:N Relationship Types" using the Foreign key approach. For each table you list, specify only the attributes added in step 4. Indicate which attributes are foreign keys. If there are no 1:N Relationship Types, then write, "There are no 1:N Relationship Types." Your answer for Step 4 goes here. Step 5. List only the tables (or "relations") that would be created in "Step 5: Mapping of Binary M:N Relationship Types" using the Foreign key approach. For each table you list, specify only the attributes created in step 5. Specify the primary key of each table you list. Indicate which attributes are foreign keys. If there are no M:N Relationship Types, then write, "There are no M:N Relationship Types." Your answer for Step 5 goes here. Step 6. List only the tables (or "relations") that would be created in "Step 6: Mapping of Multivalued Attributes." For each table you list, specify only the attributes created in step 6. Specify the primary key of each table you list. Indicate which attributes are foreign keys. If there are no Multivalued Attributes, then write, "There are no Multivalued Attributes." Your answer for Step 6 goes here.
Expert Answer:
Answer rating: 100% (QA)
Based on the instructions and the ER diagram provided we can list the tables relations that would be created for each step and specify the primary keys additional unique keys and foreign keys where applicable Step 1 Tables to be created BUILDING APARTMENT MANAGER STAFFMEMBER INSPECTOR CORPCLIENT and REFERS BUILDING BuildingID BNoOfFloors Primary key ... View the full answer
Related Book For
Database Systems Introduction to Databases and Data Warehouses
ISBN: 978-0132575676
1st edition
Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov
Posted Date:
Students also viewed these programming questions
-
P 2. 1 A student carries out a laboratory experiment to study the refraction of light. She uses two slabs of transparent material in perfect contact, slab A with refractive index n = 1.8 and slab B...
-
Snooty Fashions is an exclusive fashion designer business. Snooty Fashions collaborates with several fashion designers to design outfits. For every fashion designer, a unique ID, name, city of...
-
Write the SQL queries that accomplish the following tasks in the HAFH Realty Company Property Management Database: a. Display the SMemberID and SMemberName for all staff members. b. Display the CCID,...
-
Cost of goods available for sale consists of two elements: beginning inventory and: (a) ending inventory. (b) cost of goods purchased. (c) cost of goods sold. (d) All of the answer choices are...
-
A parallel-plate capacitor is constructed by filling the space between two square plates with blocks of three dielectric materials, as in Figure P26.61. You may assume that , d. (a) Find an...
-
Three point charges are fixed in place in a right triangle. What is the electric force on the 0.60- μ C charge due to the other two charges? +0.30 C 8.0 cm 10.0 cm -0.60 HC +1.0 C
-
Consider the problem of separation, by ordinary distillation, of propane, A; isobutane, B; \(n\)-butane, \(\mathrm{C}\); isopentane, \(\mathrm{D}\); and \(n\)-pentane, \(\mathrm{E}\). Using the...
-
Taussig Technologies Corporation (TTC) has been growing at a rate of 20% per year in recent years. This same supernormal growth rate is expected to last for an other 2 years (g1 = g2 20%) (a) If D0 =...
-
Johnson refused to file a federal income tax return, claiming that it was a violation of his right to privacy. He was arrested and charged with a violation of the Internal Revenue Code of the United...
-
Evergreen Corporation (calendar-year end) acquired the following assets during the current year: *The delivery truck is not a luxury automobile. a. What is the allowable MACRS depreciation on...
-
Your role as a highly paid consultant, you are given a list of potential threats and vulnerabilities of the current communication security protocols of an organization. You are asked to provide...
-
As a renowned Project Management Consultant, discuss the characteristics/attributes that define a project and highlight the factors that should be considered when choosing a project selection model...
-
List two micro-economic decisions that you have made in the last week. For each one of the decisions, provide reason why you think it relates to 'microeconomics'?
-
help with the question below. I need you to assist by answering briefly and precise. I will share a case study to go through below before attempting to help answer. So after reading the case study,...
-
River Community Hospital case study A summation of the financial status of the hospital. You will develop two dashboards to be used in the future as the hospital moves forward. (Each dashboard will...
-
You are asked to purchase equipment for a new series of light curtain safeguards for your moving production equipment. You have two alternatives. One is from the original manufacturer at a cost of...
-
Explain why does a rainbow contain a pure spread of spectral colors? Explain in detailed giving examples.
-
Suppose the government bond described in problem 1 above is held for five years and then the savings institution acquiring the bond decides to sell it at a price of $940. Can you figure out the...
-
Map the entity created in exercise E2.9 into a relation. Show several records in each of the mapped relation.
-
a. Using the source data from Figures 8.43 and 8.44, illustrate how the empty tables in Figure 8.46 would be populated. b. Create a dimensional model containing an aggregated fact table, where a fact...
-
What is the purpose of designer-added entities, tables, and keys?
-
List differences between the temptation pattern described here and the traditional pattern.
-
What are the capabilities required to achieve temptation? Describe each of them.
-
Draw and describe the class diagram for stable temptation pattern?
Study smarter with the SolutionInn App