Chapter 18 (MS Access)
Chapter 18 (MS Access)
The database structure and the queries are the fundamental building blocks of the
database.
A relational Database management system is a type of DBMS where the data is stored in
multiple tables that are related/linked to each other.
MZT
Chapter 18 (DATABASES)
Table: It is a collection of rows and columns forming cells which are used to store data
in a structured / organized manner in a database.
Record: It is a collection of related fields. Each row in the table corresponds to one
record.
Field: They are different categories within a table. Each column index is the field name
in the table.
Query: It is used to filter data from the table based on some conditions.
Form: It is a user-friendly way of entering, displaying and editing data stored in the
table.
Macros: They allow you to automate common tasks. A macro is a sequence of instruction
that can be carried out with a single click of mouse button.
Primary key: It is a field which uniquely identifies each record in a database table.
Foreign Key: A foreign key is a set of attributes in a table that refers to the primary key
of another table. The foreign key links two tables. The property that relates an entity to
a primary key in another entity.
Q8. What is meant by data integrity? What are two types of data integrity?
A. Data integrity refers to correctness and consistency of data. It indicates data accuracy
and consistence. It is a form of data protection. There are two types of integrity rules.
These are entity integrity and referential integrity
It is the process of converting complex data structure into simple and stable data
structure.
MZT
Chapter 18 (DATABASES)
It is preventing the orphan records to be left behind. It allows to show the relationship
type between different fields from different tables above the bar.
Such records that reference records in other tables that no longer exists.
A form with the help of which data can be input into a particular table.
one-to-one
one-to-many
many-to-many
An online tool that takes a user through the steps of designing something e.g. a form or
a report.
A form that displays one record at a time A form that displays multiple records at the
same time
A. It is a list of all the settings for all of the items, e.g. field, label, heading on a form etc.
Controls are parts of a form or report used to display and manipulate data.
Q19. Using an example give one reason why flat-file databases are used in
certain applications rather than relational databases
Reason:
The data is in a list. There is only a small amount of data and a single table is used.
Example:
A list having Student names, DOB, Grade, section and addresses in a CSV file
MZT
Chapter 18 (DATABASES)
Q20. Compare and contrast Relational database with flat-file databases? Your
answer must include similarities and differences.
Q21.
Complete the following table filling in the field names and most appropriate
datatypes to create the database using information given above. For any
numeric field specify the type of number.
MZT
Chapter 18 (DATABASES)
Text / alphanumeric
Boolean
Service_Interval
Number: Currency
Model
Date / time
Q22. A school library has a file for storing details of the books it has and a file
for storing details of its borrowers. The files are linked using a common field.
Book file
Number
Code Title Author Published Cost
in stock
Simon
1857028898 Air wolf 1999 10 £20
Simpson
Bermuda
0992323667 Smith gold 1998 100 £100
triangle
MZT
Chapter 18 (DATABASES)
Borrower file
Muhammad
0102 10 GED 1857028898 10/06/2015
Hussam Tohan
Muhammad
1092 10 GED 3253265588 12/05/2010
Rawas
Ghaniya Talib
1097 10 IGCSE 0992323667 06/0/2010
Al Harthy
1) How many records and fields are there in the book file? Records: 5 Fields: 6
3) Give two reasons why this type of database system is used rather than having two
flat files.
Reduced redundancy
Quick retrieval of records
5) What data type would be most appropriate for the Due back field? Date
6) How many records and fields are there in the borrower file? Records: 4 Fields: 5
9) Name the most appropriate validation check for the number in stock field.
MZT
Chapter 18 (DATABASES)
CSV stands for comma separated values file. It is a file format which is considered as
text file format. This file format can be used on data saved in a table structure format,
such as a spreadsheet or database, where each value is separated by a comma. This
type of file occupies very small space and can be easily imported in different
applications.
Wildcards are characters that can stand for unknown characters. Some of the most
commonly used wildcard characters and their meanings are described in the table
below.
Functions are build in formula in MS Access, MS Excel. It is block of reusable code that
can be used to perform an action like addition, average, number of values etc.
Example:
=sum(a10:a20)
=average(a10:a20)
=count(c10:c100)
Arithmetical operations carried out on the contents of the cells. Like addition,
subtraction, multiplication, division etc.
MZT
Chapter 18 (DATABASES)
Such operators which help to find a specific record based on a criteria. The table below
shows some search operators which can be used in MS Access database.
MZT