21
Microsoft Access Database software

Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Embed Size (px)

Citation preview

Page 1: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Microsoft Access Database software

Page 2: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

What is a database?

…a database is an organized collection of data.

A collection of data of similar information compiled in a

table of records consisting of individual fields.

Page 3: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Examples…..A Telephone book

State and IRS files

A file box with cards

Your telephone bill

Your electric bill

Computerized databases Microsoft Access is the

database we will study in this class.

Page 4: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Database Management Software…provides users with “software tools needed to organize data into a flexible manner….

…It includes facilities to add, modify, or delete data from the database, ask questions (or queries) about the data stored in the database and produce reports summarizing selected contents….

Microsoft Access provides users with one of the simplest and most flexible DBMS solutions…

Some other examples of DBMS would be…. MySQL FileMaker Oracle

Page 5: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

How do databases differ from Excel?

•Excel is for heavy “number crunching”.

•Output in Access is easier to understand and “digest”.

•Data entry is normally by a form.

•More Flexible.

Page 6: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

MS Access •Is known as a relational database.

•This means information is joined through common fields in tables.

•EXAMPLE: The IRS has a database with every taxpayers information. Each state government also has a database with each taxpayers information. The IRS and the state link up through your Social Security Number to share financial information on citizens.

Page 7: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

What can Access do?

Store Data for easy access.

Sort, present, and manipulate data for a specific purpose.

Databases perform Mathematical computations on individual records.

Page 8: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

3 Main Components of Access

1.) Tables

2.) Queries

3.) Forms

Page 9: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Microsoft Access Tables

•Tables comprise the fundamental building blocks of any database. If you are familiar with spreadsheets (which you all should be) you’ll find database tables extremely similar.

Page 10: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Queries…

A database that only stored information would be useless– we need methods to retrieve information as well.

Queries – complex request to sort, filter and organize information.

Access queries provide the capability to combine data from multiple tables and place specific conditions on the data retrieved.

Page 11: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Microsoft Access Forms-User friendly interfaces that allow users to enter information in a graphical form and have that information transparently passed to the database.

Page 12: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Why Should I learn MS Access?•More computer skills

•Greater understanding of computer applications as applied to existing skills.

•Databases provide a tremendous flexibility in storing, accessing, using, and manipulating data.

Page 13: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Query•A database object

•Lets you ask the database questions about the data it contains.

•The condition of the query is a way of telling the query which data you are interested in seeing.

•When a condition has 2 parts is called criteria.

•Queries are based upon tables.

Page 14: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Creating a Query in Design View•Using the query design view window you build and change the query using the query design grid.

•Databases often contain more than one table, you can select the table in the Show Table Dialog box that contains the data you wnt to see in the query datasheet.

•The query window is divided into 2 parts. The top part if of the window shows the field list, the bottom is the design grid.

•You can add fields to the query design grid by double clicking the field name.

Page 15: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Moving and Sorting in Design View•You can sort information by using the sort boxes in the design grid .

•To sort 2 or more fields, the field you want to sort by first must be to the left of the field you want to sort next. Sorts on more than one field are applied in a left to right order.

Page 16: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Adding a condition

•To add conditions you must click in the criteria box in the query design field.

•Access will automatically place quotations around the data type Text or Memo

•Before running a query it is a good idea to save it.

Page 17: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Relating Tables•When a database contains more than one table, you can connect data in the separate tables in by creating a relationship.

•To create a relationship, you must have tables that contain a matching field.

•A matching filed appears in both tables, has the same data type, and contains the same values.

•The matching field is also called the common field.

•When tables are related in a database, we can create queries and other objects that display information from several tables at once.

Page 18: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Common Relationships

•One to Many- one record in the first table can match many records in the second table.

•First table is the primary table.

•Second table is the related table.

•Common field in the related table is called the foreign key when used in a relationship.

Page 19: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Referential Inegrity

•Protects data in the tables to make sure that data is not accidently deleted or changed resulting in inconsistent data.

•Choose the Enforce Referential Integrity option when creating relationships

Page 20: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled

Multi table QueriesAfter defining relationships in a database, we can create a query that is based on more than one table.

To create a query from more than one table, you must add another table’s field list to the query design.

When you add two related tables, a join line shoes the relationship between the tables.

Page 21: Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled