Introduction to Databases
Introduction to Databases
Databases
What is a database?
• A database is a collection of data that is stored in a computer system.
Databases allow their users to enter, access, and analyze their data
quickly and easily.
Components of a database
• Databases in Access are composed of four objects: tables, queries,
forms, and reports. Together, these objects allow you to enter, store,
analyze, and compile data however you want.
Tables
• All data in a database are stored in tables.
• Tables are organized into vertical columns (fields) and horizontal rows
(records).
• A field is more than just a column; it’s a way of organizing information
by the type of data it is. Every piece of information within a field is of
the same type.
• Likewise, a record is more than just a row; it's a unit of information.
Every cell in a given row is part of that row’s record.
Example of a table
STUDENT
StudentNumber LastName FirstName EmailAddress
1 Cooke Sam [email protected]
2 Lau Marcia [email protected]
3 Harris Lou [email protected]
4 Greene Grace [email protected]
5 Davis Bruce [email protected]
6 Kelly Mary [email protected]
7 Taylor Larry [email protected]
Forms
• Forms are used for entering, modifying, and viewing records.
• When you enter information into a form in Access, the data goes
exactly where the database designer wants it to go: in one or more
related tables.
• Forms make entering data easier.
Example of a form
Queries
• Queries are a way of searching for and compiling data from one or
more tables.
• Running a query is like asking a detailed question of your database.
• When you build a query in Access, you are defining specific search
conditions to find exactly the data you want.
Example of a Query
Reports
• Reports offer you the ability to present your data in print.
• A report can be built or generated from any table or query.