Create a table using design view

Assignment Help Database Management System
Reference no: EM131428424

Independent Project 2-5

Life's Animal Shelter wants to expand the database created in the Independent Project 1-5 in Chapter 1. To ensure consistency, the starting file is provided for you. In this project, you use Design view to create a second table, edit field properties, integrate data integrity rules, and enter data. You also create a relationship between the two tables and enforce referential integrity constraints. Finally, you add data using the relationship between tables. This project has been modified for use in SIMnet.

Skills Covered in This Project

  • Create a table using Design view.
  • Add fields into a table.
  • Edit field properties in Design view.
  • Create an input mask.
  • Create a validation rule and validation text.
  • Save a table.
  • Enter records.
  • Create a foreign key.
  • Create a 1:M relationship between tables.
  • Enforce referential integrity.
  • View a table in Datasheet view and expand related records.

1. Open the LifesAnimalShelter-02 database start file.

2. The file will be renamed automatically to include your name. Change the project file name if directed to do so by your instructor.

3. Enable content in the security warning.

4. Create a new table using Table Design.

a. Add the following fields into the table and set field properties: 

j. Set OwnerID as the primary key.

k. Save the table as Owners.

5. Create an input mask for the Phone field.

a. Select the Phone field.

b. Use the Phone Number Input Mask.

c. Don't make any changes to the mask or placeholder character and select the Without the symbols in the mask, like this radio button.

d. Finish the Input Mask Wizard.

e. Save the table.

6. Create and test a field validation rule.

a. Select the OwnerID field.

b. Type Like "####" in the Validation Rule.

c. Type You must enter a 4-digit Owner ID as Validation Text.

d. Save the table and switch to Datasheet view.

e. Test the rule by typing 11 in the first row of the OwnerID column.

f. Move to the OwnerLastName field. The message box should display the validation text message (Figure 2-92) since the OwnerID is not four digits long. 

g. Delete the contents and type 1111 into the OwnerID field.

h. Verify that you successfully move to the OwnerLastName field since 1111 meets the validation rule criteria.

i. Delete this test data record.

7. Enter the following records into the Owners table. Life's Animal Shelter doesn't have any data about the owners stored electronically so you are unable to import any data.

8. Save and close the table.

9. Determine the foreign key field. Currently there is not a field in common across the Owners and Pets tables. There is a one-to-many relationship between the two tables since an owner could adopt many pets, but each pet is only adopted by one owner. The foreign key comes by taking the primary key field from the 1 table and adding it in as an additional field in the M table.

a. Open the Pets table in Design view.

b. Add the foreign key field below the Details field using the following information: 

10. Create a one-to-many relationship between the Owners and Pets tables.

a. Open the Relationships window and add the two tables.

b. Enlarge the table objects, if needed, to see all of the fields.

c. Drag the OwnerID field from the Owners table on top of the FKOwnerID field in the Pets table.

Release the pointer. The Edit Relationships dialog box displays.

d. Select the choices to Enforce Referential Integrity and Cascade Update Related Fields.

e. Leave the Cascade Delete Related Records check box not selected. The shelter does not want to delete pet records when it deletes information about an owner.

f. Create the relationship.

g. Save the changes and close the Relationships window.

11. Enter the following data into the specified records in the Pets table to reflect which pets have been adopted:

a. Open the Pets table in Datasheet view.

b. Type 0100 in the FKOwnerID field for PetID 1.

c. Type 0103 in the FKOwnerID field for PetID 3.

d. Type 0100 in the FKOwnerID field for PetID 12.

e. Type 0104 in the FKOwnerID field for PetID 14.

f. Close the Pets table.

12. View the related data records in the Owners table.

a. Open the Owners table in Datasheet view.

b. Click the plus sign to the left of the OwnerID field for Albert Smith, OwnerID 0100. You should see the two pets adopted by Albert.

c. Close the Owners table.

13. Close the database.

14. Upload and save your project file.

15. Submit project for grading.

Attachment:- Assignment File.rar

Reference no: EM131428424

Questions Cloud

Develop a concluding paragraph : Develop a concluding paragraph. Remember to restate your thesis statement in the conclusion - When preparing an informative or expository essay, it is important to identify multiple perspectives. Investigating all sides of a topic enables you to in..
Monsanto attempts to balance stakeholder interests : Read the case study "Monsanto Attempts to Balance Stakeholder Interests" found in your book. This case deals with the themes of management and marketing.  A major issue in the Monsanto case is whether genetically modified products (GM) are safe bo..
Managed fee-for-service plans : Briefly Compare and contrast each of the following; Managed fee-for-service plans, HMOs, POS plans, and PPOs.
Maximum insurance premium the person : In other words, with the $300,000 insurance, if the house is totally destroyed by fire, the person will suffer a loss in the net asset because the insurance covers only the mortgage not the full net equity of the house, and the maximum insurance p..
Create a table using design view : You also create a relationship between the two tables and enforce referential integrity constraints. Finally, you add data using the relationship between tables. This project has been modified for use in SIMnet
Design a 10-slide powerpoint presentation : Design a 10-slide PowerPoint presentation (not including title and reference slides) focusing on the Research Proposal: Project Paper (submitted last week).
Male versus female communication styles : Determine three (3) key differences in the ways that women and men negotiate. Next, give your opinion as to whether one gender is better at negotiating than the other
Companies to be global marketers : Is it feasible for all companies to be global marketers? Do certain industries seem better suited for global marketing than others? Why or why not?
How do you account for the successes and failures : Consider U.S. policies toward the Persian Gulf region from about 1967 to about 1992. What were America's overriding strategic and political objectives in this region during those years? What policies did the U.S. government design and implement to..

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd