Database
Definition
A Database is a collection of related data files stored on
one or more computers. Databases prevent redundancies by allowing
information sharing.
Example:
Advantages
- Sharing - Information from one department can be shared with others.
- Security - Passwords can be used to prevent access to databases from
unauthorized users.
- Fewer Files - Less "data redundancy" when same data is used by many
departments.
- Data Integrity - Can retain accuracy since changes will be consisted
throughout all related files.
Database Management System
- Special application software that can be used to create,
modify and gain access
to a database file.
- Database management systems designed especially for microcomputers are
Dbase and Access.
- There are also database management system designed for minicomputers and
mainframes.
- Database management system software is made up of:
- Data Dictionary
-
Contains the structure of the data used in the database
-
Describes field names, size of the fields, type of data that will be
stored in each field.
-
Key field is also specified.
- Query Language
- An easy-to-use language understandable to most users.
- Provides inquiry access to most databases.
- The most widely used query language is Structured Query Language (SQL).
- Made up of commands.
- Directs the computer to search, display, update, or print records.
- Examples:
- Display all for Sales > Quota.
-
Assuming we have the
following enrollment records.
Enrollment Table
Section |
Student
ID |
Grade |
303 |
111 |
A |
303 |
222 |
B |
303 |
333 |
C |
303 |
444 |
D |
328 |
111 |
B |
328 |
222 |
A |
3161 |
333 |
C |
3161 |
444 |
B |
To find all sections that the student with ID 111
is enrolled in, we submit the following query to the database:
select
Section from
Enrollment where
Student_ID = 111
(page 206)
< Previous Page
Next Page >