2.3 Database Management Systems
2.3 Database Management Systems
INFORMATION SYSTEMS
DATABASE MANAGEMENT SYSTEMS
Assignment
Enrolment number: MBISMCT13727119
Self Declaration
I declare that the assignment submitted by me is not a verbatim/photo static
copy from the website/books/journals/manuscripts.
Q.1 Mention the pros and cons of relational model. Bring out the
reasons, why relational model became more popular.
Answer:
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
May 2015
Page 2 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Page 3 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
data
manipulation,
constraints,
and
transaction
management.
Views must be updatable by the system.
The DBMS must support insert, update, and delete operations on sets.
The DBMS must support logical data independence.
The DBMS must support physical data independence.
Integrity constraints must be stored within the catalogue, separate
from the application.
May 2015
Page 4 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
The existing
Page 5 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Page 6 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Referential and entity integrity are not the two names for the same
thing.
The practical significance of taking the logical view of a database is
that it serves as a reminder of the simple file concept of data storage.
Tables must have the same attribute characteristics (the columns and
domains must be compatible) to be used in a UNION.
Only a single attribute can define functional dependence.
There is a good reason to use null values in a database.
The SELECT operator wont yield a vertical subset of a table.
A data dictionary contains metadatadata about data.
Each table in a relational database must have a primary key.
PROS of RDBMS:
Flexible and well-established.
Sound theoretical foundation and use over many years has resulted in
stable, standardized products available.
Standard data access language through SQL.
Costs and risks associated with large development efforts and with
large databases are well understood.
The fundamental structure, i.e., a table, is easily understood and the
design and normalization process is well defined.
Data entry, updates and deletions will be efficient.
May 2015
Page 7 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
CONS of RDBMS:
Performance problems associated with re-assembling simple data
structures into their more complicated real-world representations.
Lack of support for complex base types, e.g., drawings.
SQL is limited when accessing complex data.
Knowledge of the database structure is required to create ad hoc
queries.
Locking mechanisms defined by RDBMSs do not allow design
transactions to be supported, e.g., the "check in" and "check out" type
of feature that would allow an engineer to modify a drawing over the
course of several working days.
Why relational model became more popular?
May 2015
Page 8 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
The reasons why relational database model became more popular than other
database models can be summarised as below.
Portability: Relational model uses SQL which is well standardized and is
largely the same across different database vendors
Ease of data access in Relational model: SQL allows to build very
sophisticated queries understood by any DB professional who knows
SQL
Relational model was based on strong mathematical background.
Basic structure of the relation is simple, easy to understand and
implement.
Relational model is the easiest to store and retrieve data, primarily
because SQL has been designed around it.
May 2015
Page 9 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
May 2015
Page 10 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
forms each more rigorous than the previous and each containing the rules of
the previous form. Currently there are five levels of normal form.
Redundancy of data is many times beneficial:
The redundancy of data in a database is primarily referred to in a negative
sense, as it pertains to the unnecessary duplication of data in a database.
However, there are certain times when redundant data is required, or
desirable - based upon specific and unique conditions.
Reasons and types of certain necessary duplicate data:
Ensure "static" data for required situations (government-compliant
accounting, banking, and financial record-keeping systems, Capella
assignment attachments, etc.)
Information that is "locked" into historical records of quotations, orders,
invoices, and receipts after initial lookups via character keys.
Client memory constraints
Improve the ease and speed of access to data, with the risk that changes
may cause conflicting values
Example:
We have a table, which displays item, item no, item cost etc. which is denormalized. To avoid redundancy, we normalize it and add some more fields
like
sub-item,
sub
item
no,
sub
item
cost
etc.
Now, if we write a query to retrieve data from this normalized table (which
dont have redundant data), it will take a long time for the query to get
executed as the number of fields increased. Hence, redundancy of data is
beneficial, that is query processing time will be minimal.
Situation when redundancy will mess up the current database
status:
Any good MS Access Database Developer or Consultant would know that
database redundancy is a big problem for any database, large or small.
May 2015
Page 11 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Arguably the worst part of data redundancy is the fact that the database are
unnecessarily larger this might not seem like such a problem these days with
our 2TB HDD, but it was a huge problem not too long ago when space was an
important commodity. But hand in hand with larger file sizes is slower speeds
and that is still a concern for people these days, particularly clients who
wouldnt be too happy knowing that a poor database developer or consultant
allowed a easily fixable problem that affects profits get past them.
Change requires reconciling data in multiple locations or fields in the
database
Wastes physical storage space
Can decrease performance, accuracy, reliability, and stability
Introduces maintenance issues
Increases difficulty of troubleshooting database problems
Data redundancy results in data inconsistency, or a lack of data integrity.
- Different and conflicting versions of the same data appear in different
places
Errors more likely to occur when complex entries are made in several
different files and/or recur frequently in one or more files
Data anomalies develop when required reconciliations in redundant data
are not made successfully
There is also the issue that the database has to be updated in more than one
place; just a simple mistake could have two different values for the same
record, which could cause catastrophic failures in the database, and
depending on the use of the database could cause thousands of dollars of
damage or even worse, could put lives at risk through something easily
avoided with through planning.
May 2015
Page 12 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Redundant data is great if it is a backup and directly linked to the source, but
the evil element of redundant data surfaces when an organization has
duplicate data in two or more unlinked files or applications.
The occurrence of data redundancy can lead to the following problems:
(a) Redundant storage: Some information is stored repeatedly.
(b) Update anomalies: If one copy of such repeated data is updated, an
inconsistency is created unless all copies are similarly updated.
(c) Insertion anomalies: It may not be possible to store some information
unless some other information is stored as well.
(d) Deletion anomalies: It may not be possible to delete some information
without losing some other information as well.
Example:
We
have
centralized
database
that
includes
basic
membership
Page 13 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Page 14 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Prioritize the critical project tasks based on "must have" and "nice-tohave" features
Develop master/ centralized database and allow the individual
department to extract that data for their special project or needs
Develop an automated interface where ever applicable with batch
control
Develop a web page along with an interface to update the database
either through batch control or real time.
The normalization theory of a relational database is said to be in normal form
if it satisfies certain constraints. Codd's original work defined three such
forms but there are now five generally accepted steps of normalization.
First Normal Form eliminates repeating groups by putting each value of
a multi-valued attribute into a new row.
Second Normal Form eliminates functional dependencies on a partial
key by putting the fields in a separate table from those that are
dependent on the whole key.
Third Normal Form eliminates functional dependencies on non-key
fields by putting them in a separate table. At this stage, all non-key
fields are dependent on the key, the whole key and nothing but the
key.
Fourth Normal Form separates independent multi-valued facts stored in
one table into separate tables.
Fifth Normal Form breaks out data redundancy that is not covered by
any of the previous normal forms.
May 2015
Page 15 of 16
MBA
INFORMATION SYSTEMS
DATABASE MANAGEMENT
SYSTEMS
Enrolment number:
MBISMCT13727119
Conclusion:
Thus it can be concluded that, redundancy of data is many times
beneficial", But many a times it will mess up the current database status
and hence action of data normalization is required in order to avoid any data
anomaly.
May 2015
Page 16 of 16