Purchase Solution

Primary and Foreign Keys

Not what you're looking for?

Ask Custom Question

Please tell me which one is primary key and which one is foreign key in each situation (1-1, 1-many, many-1). In () are keys but I need to know which one is primary and foreign keys. If there's no foreign keys, pls. give one foreign key each for the situation. Thank you in advance.

1. One-to-One:
Man (man_name, man_age, man_race, man_height, man_weight)
Woman (woman_name, woman_age, woman_race, woman_height, woman_weight)
Man (1) - marries - woman(1)

2. One-to-Many:
Child (child_name, child_gender, child_age, child_weight)
Mother (mother_name, mother_age, mother_weight)
Mother (1) - has - child (Many)

3. Many-to-Many:
Teacher (teacher_name, empl_id, teacher_gender, salary_bracket)
Student (student_name, student_id, student_gender, student_grade)
Teacher (Many) - teaches/learns - Student (Many)

Purchase this Solution

Solution Summary

Primary and Foreign Keys are identified.

Purchase this Solution


Free BrainMass Quizzes
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.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

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.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C++ Operators

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