Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DE RAMOS
The difference between file processing system and database management system is as follow:
1. A file processing system is a collection of programs that store and manage files in
computer hard-disk. On the other hand, A database management system is collection of
programs that enables to create and maintain a database.
2. File processing system has more data redundancy, less data redundancy in dbms.
3. File processing system provides less flexibility in accessing data, whereas dbms has
more flexibility in accessing data.
LOVELITA D. DE RAMOS
4. File processing system does not provide data consistency, whereas dbms provides data
consistency through normalization.
5. File processing system is less complex, whereas dbms is more complex.
6. A database management system coordinates both the physical and the logical access to
the data, whereas a file-processing system coordinates only the physical access.
7. A database management system is designed to allow flexible access to data (i.e. queries),
whereas a file-processing system is designed to allow predetermined access to data (i.e.
compiled programs).
8. A database management system is designed to coordinate multiple users accessing the
same data at the same time. A file-processing system is usually designed to allow one or
more programs to access different data files at the same time. In a file-processing system,
a file can be accessed by two programs concurrently only if both programs have read-
only access to the file.
9. Redundancy is control in DBMS, but not in file system.
10. Unauthorized access is restricted in DBMS but not in the file system.
11. DBMS provide back up and recovery whereas data lost in file system can't be recovered.
12. DBMS provide multiple user interfaces. Data is isolated in file system.
Database Management System (also known as DBMS) is a software for storing and
retrieving users' data by considering appropriate security measures. It allows users to create their
own databases as per their requirement.
It consists of a group of programs which manipulate the database and provide an interface
between the database. It includes the user of the database and other application programs.
The DBMS accepts the request for data from an application and instructs the operating
system to provide the specific data. In large systems, a DBMS helps users and other third-party
software to store and retrieve data.
LOVELITA D. DE RAMOS
MySQL
SQL Server
Oracle
dBASE
FoxPro
A database management system receives instruction from a database administrator
(DBA) and accordingly instructs the system to make the necessary changes. These
commands can be to load, retrieve or modify existing data from the system.
A DBMS always provides data independence. Any change in storage mechanism and
formats are performed without modifying the entire application.
The database management system can be divided into five major components, they are:
Hardware
Software
Data
Procedures
Database Access Language
LOVELITA D. DE RAMOS
3. Describe a primary key, candidate key, secondary key, foreign key, and common field.
A DBMS key is an attribute or set of an attribute which helps you to identify a row(tuple)
in a relation(table). They allow you to find the relation between two tables. Keys help you
uniquely identify a row in a table by a combination of one or more columns in that table.
A column or group of columns in a table which helps us to uniquely identifies every row
in that table is called a primary key. This DBMS can't be a duplicate. The same value can't
appear more than once in the table.
Rules for defining Primary key:
The value in a primary key column can never be modified or updated if any foreign key
refers to that primary key.
The Primary key should be selected from the candidate keys. Every table must have at least a
single candidate key.
4. What are entity-relationship diagrams and how are they used? What symbol is used
to represent an entity in an ERD? What symbol is used for a relationship? What is
cardinality, and what symbols do you use in the crow’s foot notation method?
An entity relationship model, also called an entity-relationship (ER) diagram, is a graphical
representation of entities and their relationships to each other, typically used in computing in
regard to the organization of data within databases or information systems. An entity is a piece of
data-an object or concept about which data is stored.
LOVELITA D. DE RAMOS
In DBMS you may hear cardinality term at two different places and it has two different meanings
as well.
In Context of Data Models:
In terms of data models, cardinality refers to the relationship between two tables. Cardinality
refers to the maximum number of times an instance in one entity can be associated with instances
in the related entity
One to One – A single row of first table associates with single row of second table. For example,
a relationship between person and passport table is one to one because a person can have only
one passport and a passport can be assigned to only one person.
LOVELITA D. DE RAMOS
One to Many – A single row of first table associates with more than one rows of second table.
For example, relationship between customer and order table is one to many because a customer
can place many orders but a order can be placed by a single customer alone.
Many to One – Many rows of first table associate with a single row of second table. For
example, relationship between student and university is many to one because a university can
have many students but a student can only study only in single university at a time.
Many to Many – Many rows of first table associate with many rows of second table. For
example, relationship between student and course table is many to many because a student can
take many courses at a time and a course can be assigned to many students.
Cardinality
Cardinality refers to the maximum number of times an instance in one entity can relate to
instances of another entity.
5. What are data warehousing and data mining? Are the terms related?
A Data Warehouse is an environment where essential data from multiple sources is stored under
a single schema. It is then used for reporting and analysis. Data Warehouse is a relational
database that is designed for query and analysis rather than for transaction processing. It usually
LOVELITA D. DE RAMOS
contains historical data derived from transaction data. While a Data Warehouse is built to
support management functions.
Data Mining is used to extract useful information and patterns from data. The data mining can be
carried with any traditional database, but since a data warehouse contains quality data, it is good
to have data mining over the data warehouse system. Data Mining supports knowledge discovery
by finding hidden patterns and associations, constructing analytical models, performing
classification and prediction.
Let us understand the Difference between Data Warehousing and Data Mining in detailed
Key Features:
1. Data Warehouse:
The key features of a Data Warehouse are discussed below:
Data Mining:
The key features of Data mining are discussed below:
1. Direct marketing: The ability to predict who is most likely to be interested in what
products
2. Trend analysis: Understanding trends in the marketplace is a strategic advantage because
it helps reduce costs and timeliness to market.
3. Fraud detection: Data mining techniques can help discover which insurance claims,
cellular phone calls or credit card purchases are likely to be fraudulent.
4. Forecasting in financial markets: Data mining techniques are extensively used to help
model financial markets.
6. Are there ethical issues to consider when planning a database? For example, should
sensitive personal data (such as medical information) be stored in the same DBMS
that manages employee salary and benefits data? Why or why not?
Keep computers and devices physically inaccessible to unauthorized users. Apply strong
passwords and usernames.
Maintain strict business procedures, e.g., assign individuals specific roles that they should
be accountable for (e.g., backing up data, generating reports, verifying data integrity).
Implement proper authorization to allow individuals the ability to see only the data that
they are authorized to access.
Maintain a secure storage of sensitive data (e.g., use strong passwords, install firewalls,
intrusion prevention and intrusion detection systems).
LOVELITA D. DE RAMOS
Properly authenticate users (i.e., make sure that a person is who he/she claims to be and is
not an impostor).
Apply granular access control and determine how much data an authorized user should be
allowed to see. Isolate portions of the database to prevent “unlimited” access. For
example, while a user might be allowed access to his/her personal data, he/she must not
be allowed to view/access other user’s data.
Maintain regular backups or data movement onto disk, tape, or stored at third-party sites
which are also secured and tracked. Encrypt backups to prevent unauthorized viewing or
access.
Keep the backups current to enable recovery should the need arise.
Train the personnel and make sure that everyone understands and has a grasp of both
desktop and cloud database security.
Implement strict safety procedures for everyone to follow on a regular basis.
7. Suggest three typical business situations where referential integrity avoids data problems.
Referential integrity is a set of rules which maintain data consistency and quality. It helps in
validating the data and helps in avoiding any kind of input errors.
Three typical business situations where referential integrity avoids data problems would be
: Entering an order for a customer number that has yet to be entered into the system
Assigning a book number to a library customer when the book has yet to entered to the
system
Assigning an advisor to a student ID before the student has been entered into the system
Order is not place in the order table unless the customer already exist in the customer
table.
Assigning a customer to a salesperson when the salesperson doesn’t exist
Payments to an account, if the account number changes, updates on the payment on that
account should be done as well