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

  Develop a table mainmenu with at least three fields

Create a table MainMenu with at least 3 fields: ID, caption, and form or report to run. Your code (for the button) will dynamically read the caption from the table and assign it to the button.

  Effect of stunting growth later in life

Several male athletes have reported having growth spurts well into their college years. Why is this phenomenon more likely for males then females?

  Populate vehicles and customers table with at least ten rows

You can create your database on Nova or any other Oracle system you wish, but you must use the Oracle RDBMS. Populate the VEHICLES and CUSTOMERS tables with at least ten rows each. Populate your SALES table with at lease ten rows.

  Describe role of databases and database management system

Describe the role of databases and database management systems in managing organizational data and information.

  Identify a business rule in this description

Draw a ERD to represent what you have discovered. Identify a business rule in this description and explain how this business rule is modeled on the E-R diagram. Also draw a data model for this situation using the Vision

  Specify your physical design by identifying the attributes

List the names, ages, and salaries of managers of a user-speci?ed sex (male or female) working in a given department. You can assume that, while there are many departments, each department contains very few project managers.

  Question 1explain ten desirable features which may be

question 1explain ten desirable features which may be included in the design of a warehouse. question 2how have to a

  Write a create table statement for the department table

Write a CREATE TABLE statement for the EMPLOYEE TABLE.  Email is required and is an alternate key, and the default value of Department is Human Resources.  Cascade updates but not deletions from DEPARTMENT to EMPLOYEE.

  Our boss approached you to identify a solution for a

our boss approached you to identify a solution for a performance issue and system outages that have been experienced on

  Design tables in 3nf various codes for at least three fields

Create tables in 3NF. As you create the database, include different codes for at least three of the fields. Use sample data to populate fields for at least three records in each table.

  Write a reflective essay regarding the systems development

Write a reflective essay regarding the systems development environment and the sources of software. This assignment covers Course Objective 5.

  Develop a model to store questionnaires

Develop a model to store questionnaires and its underlying questions. A questionnaire records questionnaire name, primary contact name, start date and expected end date.

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