Exercise Week 1
Exercise Week 1
Review Question
1.1. Define the following terms: data, database, DBMS, database system, database catalog, program-
data independence, user view, DBA, end user, canned transaction, deductive database system,
persistent object, meta-data, and transaction-processing application.
Data
Data is a known fact that can be recorded and have implicit meaning.
Database
m
er as
Database system
co
A database system includes the database management system software and the
eH w
stored data itself.
o.
Database catalog
rs e
ou urc
Database catalog is a function on a server that allows users to check information on
databases. Database catalog also holds meta-data on every database such as how
many rows and tables are being used in a particular database.
o
User view refers to viewing the content of a database according to a particular user
ar stu
or user.
DBA
sh is
This study source was downloaded by 100000813768022 from CourseHero.com on 09-07-2021 21:39:48 GMT -05:00
https://www.coursehero.com/file/48035686/Exercise-Week-1docx/
Deductive database system
Deductive database system makes conclusion about its data based on a set of well-
defined rules and facts.
Persistent object
A persistent object is an object that has been assigned to a storage location in a
database.
Meta-data
Meta-data summarizes basic information about data in a database, which can makes
finding and working with particular data easier.
Transaction-processing application
Transaction-processing application divides information into individual and
indivisible pieces called transaction. This system is designed to maintain the
database integrity and to optimise the performance of transaction processing.
m
er as
co
eH w
1.2. What four main types of actions involve databases? Briefly discuss each.
The first type of action is defining the database. Aspects such as the database
o.
structure and database type called the meta-data has to be defined in this first
rs e
action. Next, Constructing the database. Constructing base is the process of storing
ou urc
data into the database so that it can be maintained by the database management
system. Thirdly, manipulating database. Manipulating database is an action where
users can retrieve, insert, update and also delete data from the database using query.
o
Lastly, sharing database includes user sharing their information so that the data can
aC s
1.3. Describe the role of database management systems (DBMS) in the database approach. Discuss
why knowledge of DBMS is important for database administrators.
A database management system has many important roles to maintain a database.
ed d
management systems stores definitions of the data elements and their relationships
called meta-data. DBMS uses this function to search for the required data
component structures and relationships. Secondly, Security Management. The
DBMS sets rules that determine whether the particular user have access to the
sh is
database. Username and password are given to users for security measures. This
Th
function also sets restraints on what specific data any user can see or manipulate.
This is one of the most important features in the DBMS. Next, Backup and Recovery
Management. DBMS backup all the important data from the database automatically
to prevent the loss of data in case of power outage. Moreover, Data Integrity
Management. This function ensures the database has a minimal amount of data
redundancy. The DBMS returns the same answer each time when a same question is
asked even when the data is stored in more than one place. In conclusion,
Knowledge of DBMS crucial for database administrators so that they can fully
utilize all the tools within the database software to maintain and manage the data
stored in the database correctly.
1.4 What are the responsibilities of the DBA and the database designers?
This study source was downloaded by 100000813768022 from CourseHero.com on 09-07-2021 21:39:48 GMT -05:00
https://www.coursehero.com/file/48035686/Exercise-Week-1docx/
Starting with Database administrator (DBA), there are multiple responsibilities that
a DBA has to take care of including, Software Installation and Maintenance. A DBA
will carry out tasks such as the initial installation and configuration of a new SQL
server. Setting up hardware and deploying operating system for the database server
is also part of it. DBA will also handle the transfer of data from the existing system
to the new platform. Next, Data Extraction, Transformation, and Loading. A large
volume of data will be extracted from multiple systems into a data warehouse
environment by a DBA. Moreover, Database Backup and Recovery. DBA will create
backup and recovery plans to prevent any loss of major data. In case of a server
failure or other form of data loss, the DBA will use existing backups to restore
information to the system.
As for Database designers. They are responsible for defining the detailed database
design including tables, indexes, views, constraints, stored procedures, triggers and
other database-specific constructs needed to store, retrieve and delete data. As a
Database designer, skills such as data modelling, system architecture and an
understanding of implementing language and environment is required.
m
1.5 What are the different types of database end users? Discuss the main activities of each.
er as
Naïve Users. These users do not know how to operate a database management system
co
and also have no skills on making requests from database directly. Naïve users access
eH w
the database through given GUIs that has readable menu items to extract data from the
o.
database. rs e
Sophisticated Users. These users know about the structures defined in the database.
ou urc
They have knowledge to access the database directly and they make direct requests from
it from obtain data.
o
The capabilities of a DBMS must include all of these listed features. Firstly, Data
v i y re
Storage, Retrieval and Update. The DBMS software should allow reading, adding,
modifying and deleting data from the database. Next, Database Catalog. The DBMS
should have meta-data on every database such as how many rows and tables are being
used. Thirdly, Data Independence. Database administrator should have the ability to
ed d
alter the permission of different level of users so that not all users can view all of the
ar stu
data in the database. Query Language should also be included in a DBMS. Query
language allows user to write programs that access the data in the database. Moreover,
Transaction Support. All the changes and updates made in the database will be recorded
sh is
and tracked by the DBMS software. This is to ensure that the entire transaction is
completed successfully.
Th
1.7 Discuss the difference between database system and information retrieval system.
Information retrieval system refers to an overall system which is capable of searching
and providing useful information from large amounts of stored data. The functions of
information retrieval system include identifying the information relevant to the areas of
interest of the user.
Database System is the database management system software and also the stored data
itself.
This study source was downloaded by 100000813768022 from CourseHero.com on 09-07-2021 21:39:48 GMT -05:00
https://www.coursehero.com/file/48035686/Exercise-Week-1docx/
Exercise
1.8 Identify some informal queries and update operations that you would expect to apply to the
database shown in Figure 1.2
Informal queries are requests addressed to others, but they are overheard by us. For
example, what are the prerequisites for the database course.
Update operations are performed on the database to update any of the information in
the database. For example, update the name of the instructor name King to Chang for
the course_number = MATH2410, section_identifier=85, semester=fall, year=07
1.9 What is the difference between controlled and uncontrolled redundancy? Illustrate with examples.
Controlled redundancy. It is a technique to use redundant fields in a database. This
speed ups the database access and also improves the performance of queries. The DBMS
ensures the allocation of the data in the records. It has the capability to control this
redundancy in order to prohibit inconsistencies among the files.
Uncontrolled redundancy. The data is stored in multiple different places in the database.
With uncontrolled redundancy, many issues can occur including inconsistent of data. It
m
er as
is also a waste of storage space as it duplicates existing data.
co
1.10 Specify all the relationship among the records of the database shown in Figure 1.2.
eH w
PREREQUISITE table has a relationship with COURSE and SECTION table. The
o.
attribute of Course_number from PREREQUISITE table has a foreign key in COURSE
rs e
table and SECTION table.
ou urc
SECTION table has a relationship with GRADE_REPORT table. The attribute of
Section_identifier has a foreign key in GRADE_REPORT table which is primary key
from SECTION table.
o
1.11 Give some additional views that may be needed by other user groups for the database show in
Figure 1.2
ed d
The Student_number from STUDENT table should be unique for every student
The Course_number from COURSE table should be a primary key as it is unique for
ar stu
In STUDENT table, the attribute of Name will be the primary key and its data type will
Th
be CHAR. Other attribute such as Student_number and Class will have INT data type
as it only accepts numerical data.
In COURSE table, Course_number will have CHAR for its data type as that particular
row of data is a combination of numeric and alphabetic characters and will have at least
a range of 10 characters.
In SECTION table, Section_identifier will be the primary key in the table, and it is
stored as INT data type because that row of data will be all numerical.
This study source was downloaded by 100000813768022 from CourseHero.com on 09-07-2021 21:39:48 GMT -05:00
https://www.coursehero.com/file/48035686/Exercise-Week-1docx/
1.13 Give examples of systems in which it may make sense to use traditional file processing instead
of a database approach.
It is more appropriate to use traditional file instead of using database approach is when
the desired application is very simple. A well-defined database application that are not
expected to change at all. Next, systems with limited storage capacity will also not fit to
have a database management system. A DBMS will also not benefit a database
application with no multiple-user access to it.
m
that only one column will need to be updated?
er as
The attribute of majors from STUDENT table, attribute of Course_number and
co
Department from COURSE table and attribute of Course_number from SECTION
eH w
table will need to be updated
o.
Column of Course_number from COURSE table and SECTION table can be split into
rs e
two different columns which is CourseDept and CourseNum. Course_number from
ou urc
PREREQUISTE table can be split into two different columns which is CourseDept and
CourseNum. Other than that, Prerequisite_number from the PREREQUISTE table can
be divided into two different columns which is PrereqDept and PrereqNum.
o
aC s
v i y re
ed d
ar stu
sh is
Th
This study source was downloaded by 100000813768022 from CourseHero.com on 09-07-2021 21:39:48 GMT -05:00
https://www.coursehero.com/file/48035686/Exercise-Week-1docx/
Powered by TCPDF (www.tcpdf.org)