Module 1
Module 1
Module 1
INTRODUCTION TO DATABASES
Module 1 – Introduction to databases 1.1
Learning objectives
On successful completion of this module, you should be able to:
Introduction
The material in Chapter 1 of the textbook covers a wide area, and introduces many basic concepts.
Note that a computer file system stores data in independent, unrelated files on disk. The sharing,
security and integrity of the data can’t be enforced efficiently because of the following problems:
● Separation and isolation of data:
Each program maintains its own set of data. Users of one program may be unaware of
potentially useful data held by other programs.
● Data dependence:
File structure is defined in the program code.
● Duplication of data:
The same data is held by different programs. There is wasted space and potentially different
values and/or different formats for the same item.
● Incompatible file formats:
Programs are written in different languages, and so cannot easily access each others files.
● Fixed Queries/Proliferation of application programs:
Programs are written to satisfy particular functions. Any new requirement needs a new program.
1.2 CSC3400 – Database systems
1.2.1 What are the DBMS functions, and why are they important?
Read section 1.3.2 of the text, on how the DBMS provides the facilities for database management.
Disadvantages of DBMS are the complexity, size and cost of DBMS etc.
Read the Chapter Summary at the end of the textbook to review the topics covered in the chapter.
1.4 CSC3400 – Database systems
1.1 List four examples of database systems other than those listed in Section 1.1.
1.3 Describe the approach taken to the handling of data in the early file-based systems. Discuss
the disadvantages of this approach.
1.4 Describe the main characteristics of the database approach and contrast it with the file-based
approach.
1.5 Describe the five components of the DBMS environment and discuss how they relate to each
other.
1.6 Discuss the roles of the following personnel in the database environment:
● Data Administrator See Section 1.4.1
● Database Administrator See Section 1.4.1
● Logical Database Designer See Section 1.4.2
● Physical Database Designer See Section 1.4.2
● Application Programmer See Section 1.4.3
Module 1 – Introduction to databases 1.5
Activity 1.1
Attempt the following exercises from page 31 of the textbook:
Exercise 1.8
Interview some users of database systems. Which DBMS facilities do they find most useful and
why? Which DBMS facilities do they find least useful and why? What do these users perceive to
be the advantages and disadvantages of the DBMS?
Note
Select a variety of users for a particular DBMS. If the users are using different DBMSs,
group the answers for the different systems, which will give an overall picture of specific
systems.
Additional Activities
Exercise 1.9
Write a small program that allows entry and display of renter details including a renter number,
name, address, telephone number, preferred number of rooms and maximum rent. The details
should be stored in a file. Enter a few records and display the details. Now repeat this process but
rather than writing a special program, use any DBMS that you have access to. What can you
conclude from these two approaches?
Note
The program can be written in any appropriate programming language, such as Pascal,
FORTRAN or C. It should adhere to basic software engineering principles including
being well structured, modular, and suitably commented. It is important to appreciate
the process involved even in developing a small program such as this. The DBMS
facilities to structure, store, and retrieve data are used to the same effect. The differences
in the approaches, such as the effort involved, potential for extension, and ability to
share the data should be noted.
Exercise 1.10
Study the DreamHome case study presented in Section 10.4. In what ways would a DBMS help
this organization? What data can you identify that needs to be represented in the database? What
relationships exist between the data? What queries do you think are required?
Note
It may be useful to review the file-based approach and the database approach here
before tackling the first part of the exercise. Careful reading and thinking about how
people might use the applications should help in carrying out the rest of the exercise.
Module 1 – Introduction to databases 1.7
1.8 CSC3400 – Database systems