Lab1#1
Microsoft Access
Lab1#1
Introduction:
Introduction:
Introduction:
Introduction:
A database is a collection of information organized as to make it easy to view it, search it, retrieve the right detail, and collect the necessary facts in an easier, timely, and
and collect the necessary facts in an easier, timely, and effortless manner as possible.
3/7/2009 2 I.Reem Al-Otaibi / IT department
Relational Database:
Relational Database:
Relational Database:
Relational Database:
An organized database is composed of inter-related parts. Since you define these parts, you also organize them in a manner that helps some parts of your database to supply specific information to others.
others.
Example: In one part, you would cover one category of data, such as people's personal information (name, date of birth, salary, hobbies, etc), in another you would cover what they buy in a
store.
Database Management System (DBMS):
Database Management System (DBMS):
Database Management System (DBMS):
Database Management System (DBMS):
A database management system (DBMS) is computer software that manages databases.
To make your job easier, Microsoft Access provides in one package the database information and the tools you need to use your database.
3/7/2009 4 I.Reem Al-Otaibi / IT department
Microsoft Access:
Microsoft Access:
Microsoft Access:
Microsoft Access:
Microsoft Access is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software development tools.
Microsoft Access can be used for personal information management, in a small business to organize and manage all data, or in an enterprise to communicate with servers.
Components of a Microsoft Access Components of a Microsoft Access Components of a Microsoft Access Components of a Microsoft Access database:
database:
database:
database:
Within Access there are four major areas: Tables, Queries, Forms and Reports.
Tables store your data in your database
Queries ask questions about information stored in your tables
Forms allow you to view data stored in your tables
Reports allow you to print data based on queries/tables that you have created
3/7/2009 6 I.Reem Al-Otaibi / IT department
A Table
A table is a two-dimensional list of items so that the items are arranged by categories. A complete or incomplete series of items that represent each category is called a record.
Therefore, a table can be represented as follows:
ID Name Phone GPA
0700011 Amal Salem 02-6666666 4.3 0800025 Eman Omar 02-6222222 4.6
Fields
Records
Primary Key Primary Key Primary Key Primary Key
The Primary Key is a field or combination of fields that uniquely identify a record in a table, so that an individual record can be located without confusion.
3/7/2009 I.Reem Al-Otaibi / IT department
8
An example of a Primary Key would be ID No.
The Primary Key is:
o Unique and not be duplicated,
o Can’t be empty
Foreign Key
A Foreign key (sometimes called a referencing key) is a key used to link two tables together. Typically you take the primary key field from one table and insert it into the other table where it becomes a foreign key (it remains a primary key in the original table).
Relationship Types Relationship Types Relationship Types Relationship Types
• In a one-to-one relationship, each record in the primary table can be associated with only one record in the related table. the matching fields on both sides of the relationship must be set as
3/7/2009 I.Reem Al-Otaibi / IT department
10
a primary key .
Cont.
Cont.
Cont.
Cont.
• In a one-to-many relationship, the most common type of relationship, each record in the primary table can be associated with many records in the related table (each primary key value can appear many times in the related table).
can appear many times in the related table).
Cont.
In Many-to-many in addition to the two tables of data, we need another table to join the two tables of interest together.
3/7/2009 I.Reem Al-Otaibi / IT department
12
Practical Learning
Create Database,
Create Table , Data type ,Primary key,
Field’s properties,
Create Relationships between tables, Create Queries,
Create Queries,
Create Forms,
Create Reports