access tutorial building a database and defining table relationship

36 283 0
access tutorial building a database and defining table relationship

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

® Microsoft Office 2010    XPXPXP  • Learn the guidelines for designing databases and seng eld properes • Modify the format of a eld in Datasheet view • Create a table in Design view • Dene elds and specify a table’s primary key • Modify the structure of a table  !"#"  XPXPXP  • Import data from an Excel worksheet • Create a table by imporng an exisng table structure • Add elds to a table with the Data Type gallery • Delete, rename, and move elds • Add data to a table by imporng a text le • Dene a relaonship between two tables  !"#" $ XPXPXP %&  !"#" ' XPXPXP () • Idenfy all the elds needed to produce the required informaon • Organize each piece of data into its smallest useful part • Group related elds into tables • Determine each table’s primary key • Include a common eld in related tables • Avoid data redundancy • Determine the properes of each eld  !"#" * XPXPXP ()+,-  • You must name each eld, table, and other object • Choose an appropriate data type  !"#" . XPXPXP ()+,- • The -+/0denes a eld value’s maximum storage size for Text, Number, and AutoNumber elds only – Byte – Integer – Long Integer – Single – Double – Replicaon ID – Decimal  !"#" 1 XPXPXP 2-3)- &  !"#" 4 XPXPXP 2& • Creang a table in Design view involves entering the eld names and dening the properes for the elds, specifying the primary key, and saving the table structure  !"#" 5 XPXPXP -& • In the Field Name box, type the name for the eld, and then press the Tab key • Accept the default Text data type, or click the arrow and select a di1erent data type for the eld. Press the Tab key • Enter an oponal descripon for the eld, if necessary • Use the Field Properes pane to type or select other eld properes, as appropriate  !"#" #" [...]... Microsoft Access 2010 32 Defining Table Relationships XP • Referential integrity is a set of rules that Access enforces to maintain consistency between related tables when you update data in a database • The Relationships window illustrates the relationships among a database s tables • Click the Database Tools tab on the Ribbon • In the Relationships group on the Database Tools tab, click the Relationships... Microsoft Access 2010 28 Adding Data to a Table by Importing a Text File New Perspectives on Microsoft Access 2010 XP 29 Defining Table Relationships XP • One of the most powerful features of a relational database management system is its ability to define relationships between tables • You use a common field to relate one table to another New Perspectives on Microsoft Access 2010 30 Defining Table Relationships... 23 XP Adding Fields to a Table Using the DataType gallery, available in the Add & Type Gallery • The Data Delete group on the Fields tab, allows you to add a group of related fields to a table at the same time, rather than adding each field to the table individually • The group of fields you add is called a Quick Start selection New Perspectives on Microsoft Access 2010 24 Adding Fields to a Table Using... on Microsoft Access 2010 XP 31 Defining Table Relationships XP • A one-to-many relationship exists between two tables when one record in the first table matches zero, one, or many records in the second table, and when one record in the second table matches at most one record in the first table – The Primary table is the “one” in a one-tomany relationship – The Related table is the “many” table New Perspectives... click the Access button • Click the Browse button • Navigate to the file • Make sure the Import tables, queries, forms, reports, macros, and modules into the current database option button is selected, and then click the OK button • Click the Options button New Perspectives on Microsoft Access 2010 22 Creating a Table by Importing an Existing Table Structure New Perspectives on Microsoft Access 2010... 2010 18 Importing Data from an Excel Worksheet New Perspectives on Microsoft Access 2010 XP 19 Importing Data from an Excel Worksheet New Perspectives on Microsoft Access 2010 XP 20 Importing Data from an Excel Worksheet New Perspectives on Microsoft Access 2010 XP 21 Creating a Table by Importing an Existing Table Structure XP • Make sure the External Data tab is the active tab on the Ribbon • In the... Microsoft Access 2010 26 XP Deleting a Field from a Table Structure New Perspectives on Microsoft Access 2010 27 Adding Data to a Table by Importing a Text File XP • Click the External Data tab on the Ribbon • In the Import & Link group, click the Text File button • Click the Browse button • Navigate to the file • Click the Append a copy of the records to the table option button • Select the table • Click... Microsoft Access 2010 XP 16 Table Relationship New Perspectives on Microsoft Access 2010 XP 17 Importing Data from an Excel Worksheet XP • The import process allows you to copy the data from a source without having to open the source file • Click External Data on the Ribbon • Click the Excel button in the Import & Link group to start the wizard New Perspectives on Microsoft Access 2010 18 Importing Data from... on the Database Tools tab, click the Relationships button New Perspectives on Microsoft Access 2010 33 Defining Table Relationships New Perspectives on Microsoft Access 2010 XP 34 Defining Table Relationships New Perspectives on Microsoft Access 2010 XP 35 Defining Table Relationships New Perspectives on Microsoft Access 2010 XP 36 ... for each additional primary key field • In the Tools group on the Design tab, click the Primary Key button New Perspectives on Microsoft Access 2010 12 Specifying the Primary Key in Design View New Perspectives on Microsoft Access 2010 XP 13 Moving a Field XP • To move a field, you use the mouse to drag it to a new location in the Table window in the Table Design grid New Perspectives on Microsoft Access . 2010    XPXPXP  • Learn the guidelines for designing databases and seng eld properes • Modify the format of a eld in Datasheet view • Create a table in Design view • Dene elds and specify a table s primary. each piece of data into its smallest useful part • Group related elds into tables • Determine each table s primary key • Include a common eld in related tables • Avoid data redundancy • Determine. structure • Add elds to a table with the Data Type gallery • Delete, rename, and move elds • Add data to a table by imporng a text le • Dene a relaonship between two tables  !"#"

Ngày đăng: 24/10/2014, 15:10

Mục lục

  • Access Tutorial 2 Building a Database and Defining Table Relationships

  • Objectives

  • Slide 3

  • Table Window in Design View

  • Guidelines for Designing Databases

  • Guidelines for Setting Field Properties

  • Slide 7

  • Changing the Format of a Field in Datasheet View

  • Creating a Table in Design View

  • Defining a Field in Design View

  • Slide 11

  • Specifying the Primary Key in Design View

  • Slide 13

  • Moving a Field

  • Adding a Field Between Two Existing Fields

  • Slide 16

  • Table Relationship

  • Importing Data from an Excel Worksheet

  • Slide 19

  • Slide 20

Tài liệu cùng người dùng

Tài liệu liên quan