Purchase Solution

Detailed Examples of Various One-to-one Relationships

Not what you're looking for?

Ask Custom Question

Describe the different ways of implementing one-to-one relationships. Assume you are maintaining information on offices (office numbers, buildings, and phone numbers) and faculty (numbers and names). No office house more than one faculty member; no faculty member is assigned more than one office. Illustrate the ways of implementing one-to-one relationships using offices and faculty. Which option would be best in each of the following situations?

a. A faculty member must have an office, and each office must be occupied by a faculty member.
b. A faculty member must have an office, but some offices are not currently occupied. You must maintain information about the unoccupied offices in an Office relation.
c. Some faculty members do not have an office, but all offices are occupied.
d. Some faculty members do not have an office, but some offices are not occupied.

Purchase this Solution

Solution Summary

This solution demonstrates how four different one-to-one relationships can be represented using tables in a relational database.

Solution Preview

In this problem we see that there are two entities (faculty and office) and various relationships between them. Let's talk about these entities in terms of tables and the fields in those tables.

The first situation is that a faculty member must have an office, and each office must be occupied by a faculty member. This can be designed by using a single table called Faculty_Office that contains all of the information about the faculty and the office. No null values are allowed in the table.

Faculty_Office:
faculty_office_id (primary key)
faculty_name
faculty_number
office_number
office_building
office_phone

This table provides a ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Javscript Basics

Quiz on basics of javascript programming language.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.