In some large organizations where there are several buildings and floors we see room numbers that encode information about the building, floor, and room number. For example in case the room 3C13 stands for room 13 on the third floor of the Centennial building. Suppose we need to include Room in an ERD. How would you represent the room number given that you must include atomic attributes only?

Short Answer

Expert verified
The atomic attributes for the 'Room' entity in the ERD would be 'Building', 'Floor', and 'Room Number'. Each room can be uniquely identified by these three attributes.

Step by step solution

01

Understand Atomicity

Atomicity in database terms means that data cannot be further divided. Now consider the room number attribute '3C13'. It's made up of three separate pieces of information, the room number '13', the floor number '3', and the building 'C'. To maintain atomicity, these should be split into three separate attributes.
02

Break Down the Room Number

Separate the room number '3C13' to 'Building C', 'Floor 3', and 'Room 13'. Each of these is now an atomic attribute.
03

Create Entity and Attributes

Create an entity called 'Room' with three attributes. These attributes are 'Building', 'Floor', and 'Room Number'.
04

Diagram the ERD

Each room should be uniquely identified by its floor, building, and room number. 'Room Number' can be the primary key including 'Building' and 'Floor'.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

A birthdate attribute would appear for many entity types – for example students, employees, children. What is a birthdate likely to be: key or non- key?

Develop an ERD to be used by a company to manage the orders it receives from its customers. Each customer is identified uniquely by a customer id; include the first name, last name, and address for each customer. The company has several products that it stocks and for which customers place orders. Each product has a unique id, unique name, unit price, and a quantity on hand. At any time a customer may place an order which will involve possibly many products. For each product ordered the database must know the quantity ordered and the unit price at that point in time. If the customer does this through a phone call then an employee is involved in the call and will be responsible for the order from the company side. Some orders are placed via the internet. For each order an order number is generated. For each order the database must keep track of the order number, the date the order was placed and the date by which the customer needs to receive the goods.

Consider a requirement having to do with benefits that may be given to employees of a company. Suppose employees work in a department and that each employee may have several dependents (spouse, child). Draw an ERD that includes Department, Employee, and Dependent in your design. Include attributes for your entity types.

Suppose a company that sells products has a product entity type with the following attributes: prodNum, prodDesc, prodPrice. Suppose all three attributes are single-valued and that prodNum is a key attribute - each product has a different product number. Illustrate this information in an ERD.

A college or university will keep track of several addresses for a student, but each of these can be named differently: for example, consider that a student has a mailing address and a home address. Create an ERD for a student entity type with two composite attributes for student addresses where each comprises several single-valued attributes.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free