Database Notes
Database Notes
The Database is an organized collection of data related to a particular topic or purpose. The database serves
as a base from which a desired information can be retrieved, many meaningful conclusions can be drawn. A
database stored electronically has distinct advantages over a manually organized system. A database can be
maintained in a computer by using a database management system(DBMS).
DBMS is an application that enables to maintain data in a database. Maintaining data involves storing,
organizing and retrieving data.
MS-Access is a Relational Database Management System (RDBMS) that is used to store and manipulate
large amount of information. The extension name of Ms.-Access file is .mdb.
Types of databases.
Hierarchical database- it is used to hold data records in a tree form.
Flat file- it is used to hold only one set of data within the database.
Network- helps to store records in the records and only the records can be accessed in links.
Relational database-it organizes data items in tables called relations and a relationship created
within the tables.
OLE (Object Linking and Embedding) – it creates database inform of images, pictures, images or
objects.
Functions of DBMS
a) Allows user to update/modify existing records
b) Allows user to add/delete records
c) Organizes data for easy access, retrieval and manipulation
d) Ensures security for data in a database
e) Keeps statistics of data items in a database
f) Acts as an interface between the database and other application programs.
To start MS-Access:
1. Start > Programs > MS office > Ms-Access > Enter
DATABASE TERMINOLOGIES
1. Database: An organized collection of related data that is commonly stored as a table in a file.
2. Field: This is a character or a logical combination of characters that represent a data item e.g. in a class list
the Admission Number is a field.
3. Record: This is a collection of related fields that represent a single entity e.g. student name, sex, age,
marks, etc.
4. Table: This is a database structure that is used to hold related records.
5. Query: This is a tool used to search for or question a database on specific records.
6. Form: This is a graphical interphase that resembles the ordinary paper form used to collect data. It enables
the user to view and enter data into a table.
7. Report: This is a tool that offers a way to view, format and summarize the information in your database.
8. Macro: This tool enables the user to automate frequently performed procedures or tasks.
9. Field Name: This is used to identify the data stored in a field. A field name should be descriptive of the
data to be entered.
10. Primary Key: It is a field that enforces uniqueness in a table so that one record is not entered twice.
Data should be checked for redundancy before it is stored in a database. Keys are used to maintain the
integrity of data. Keys contain unique values that help to filter redundant information from the input data.
Keys are of two types: primary & foreign.
Primary key: The field in a table that uniquely identifies each record is called the primary key.
Foreign key: When a primary key of one table appears as a field in another table, the field is called the
foreign key in the second table.
Creating a Database:
A Database can be created by using the database Wizard or by using the Blank Database command.
• The database Wizard is used to create tables, forms, queries and reports by following a series of
steps provided by the wizard.
• The Blank Database command is used to create a blank database. All database objects should be
created manually.
Click on File menu > New > Enter
2. under objects, click Tables and then click New on the database window toolbar.
Command Purpose
Create table by Used to create a table by entering values directly in a row and column format
entering data
Design view Used to assign fields for the new table and modify field properties
Table wizard Used to create a table through a guided sequence of steps
MACROS
It is possible to automate frequently performed procedures or tasks using a database component known as a
macro.
For example, if you frequently use a particular form when you start a database program, you need to create a
macro that automates the opening of the form
Forms:
• In a table, number of records are displayed at a time. But, if the table has many fields, then it
may not be possible for a user to view all of them. The screen may be too small to fit it. The user
may have to scroll horizontally or vertically to view the rest of the fields/ records.
• In forms, the data can be displayed as per the user’s requirement. The records are generally
displayed one at a time. The fields can be arranged as the user wants it. Pictures can be added to
a form. The display and contents of the form is controlled fully by the user.
• In forms there are 3 views,
• The datasheet view shows many records whereas form view displays single record. You can
toggle between these three views using the View Tool.
Report:
The data shown in a table, Query and forms are meant for displaying it on screen, but when you take
the printout or the Hard copy, it is known as Report. In the database window, the open button is
replaced by the preview button, when you click the report tab. Reports can be viewed either in print
preview mode or design mode. Data cannot be edited in the reports. The report preview shows how
the data will appear on taking out the printouts.
"import" means to bring a file from a different program into the one you're using, and "export" means to
save a file in a way that a different program can use it. Importing and exporting allow different computer
programs to read each others' files