Summative Assessment 2 Activity 1
Summative Assessment 2 Activity 1
Summative Assessment 2 Activity 1
Summative Assessment 2
1.) A relational database stores and organizes data points that are related to one another. Based on the
relational database model, a relational database presents data sets as a collection of tables and provides
relational operators to manipulate the data in tabular form.
2.a) Entity integrity: requires that every table have a primary key: neither the primary key nor any
2b.) Constraints: the rules that forces DBMSs to check that data satisfies the semantics
2c.) Referential integrity: requires that a foreign key must have a matching primary key or it must be null
2d.) Identifying relationship: where the primary contains the foreign key, indicated in an ERD by a solid
line.
3.)
DBMS Type Characteristics of DBMS Example
Data is organized into tables Microsoft SQL Server
Tables are related to each other Oracle
by means of keys MySQL
Each row in the table represents IBM DB2
a record, whilst each column in
Relational Database the database represents a
Management (RDBMS) unique attribute of the table.
Each individual field is an actual
data value. Each table can be
accessed by using a unique
column attribute
RDBMS’s use SQL to query the
tables. Various operations such
as insert, update and delete can
be performed on the database
tables.
1) Describe the different states that a transaction within a database can have.
Active - This is the initial state of a transaction. The transaction stays active while it is executing.
Partially completed - A transaction is partially committed when it has executed the final
statement.
Committed - A transaction is said to be committed once it has successfully executed and the
database has transformed from one consistent state to another consistent state. For example,
the successful effects of a write operation should persist or commit to the database. If it fails,
the entire transaction should be aborted. Once a transaction is committed, the changes can’t be
undone, unless a compensating transaction is executed.
Failed - a transaction is in a failed state if the normal execution of the transaction cannot
proceed.
Aborted - a transaction is said to be aborted when the transaction has rolled back and the database is
being restored to the consistent state prior to the start of the transaction.
DBMS use what is known as a transaction log which keeps track of all transactions that update the
database. The data is stored in a log which is used by DBMS for recovery (i.e. rollback).
Atomic - This means that all the parts of a transaction must be executed completely, or the
transaction should fail. A transaction can’t be divided into smaller parts similarly to how an atom can’t
be broken down.
Consistent - This means that the data on all systems should reflect the same state. When a
transaction is completed the database is said to be in a consistent state.
Durability - Once a transaction’s changes are done (committed), they can’t be undone, or lost,
even in the even event of a system failure.
4) Discuss the concept of “Concurrency Control” and why is concurrency control important in
Database Management Systems.
Concurrency control refers to the process of coordinating and managing the simultaneous transactions
in a shared database with multiple users. Essentially, concurrency control ensures that the outcomes of
transactions which are generated concurrently are correct and processed in the most efficient manner
with minimal impact on the performance of the database.
Concurrency control is an important task for the DBMS because it ensures that the simultaneous
execution of transactions doesn’t create problems that relate to data integrity and data consistency such
as:
• Lost Updates: This problem happens when one transaction has not yet committed when a
second transaction starts to execute. The value from the first transaction gets overwritten by the
value of the second transaction. This results in incorrect values in the database.
• Uncommitted Data: this occurs when two transactions are executed concurrently, and the first
transaction is rolled back after the second transaction has already accessed the uncommitted data
values, thus violating the isolation property of transactions.
• Inconsistent Retrievals: This issue occurs when a transaction accesses data before or after the
other transaction has updated successfully.
5) How can concurrency control impact on the performance of the Database Management
System?
1) Describe what is meant by a Distributed Database (DDB), and what is the rationale behind
implementing Distributed Database Management Systems.
A distributed database represents multiple interconnected databases spread out across several sites
connected by a network. Since the databases are all connected, they appear as a single database to the
users. Distributed databases utilize multiple nodes. They scale horizontally and develop a distributed
system.
https://www.google.com/search?q=Describe+what+is+meant+by+a+Distributed+Database+(DDB)
%2C&rlz=1C1GCEU_enZA982ZA982&oq=Describe+what+is+meant+by+a+Distributed+Database+(DDB)
%2C+&aqs=chrome...69i57j33i160l5.1993j0j15&sourceid=chrome&ie=UTF-8#imgrc=QsKP4RRCV6OPwM
https://www.semanticscholar.org/paper/Data-Integration-in-Distributed-Databases-Deen-Amin/
3580b0f60bca1730c4d308d4ffcd6894a1ffbafd
3) What are data access tools? Give examples of at least 2 data access tools and also describe the
basic features, limitations and ease of use of these tools.
Distributed Databases result in increased availability and reliability of organizational data as faults are
isolated to specific sites without affecting other databases on the network.
Reliability refers to the ability of the database to function according to specifications and produces the
desired set of results for a specified time.
Reliability is used to measure how successful a system is in producing the service it was intended to.
DBMS reliability address transaction atomicity and durability.
This means that the DBMS functions at a specific point in time in such a manner that it fulfils the “all-or-
nothing” property of transactions and that in the event of a failure, the effects of all transactions are
reflected in the database, or none of the effects at all.
Improved Performance –
We can achieve inter-query and intra-query parallelism by executing multiple queries at different sites
by breaking up a query into a number of subqueries that basically executes in parallel which basically
leads to improvement in performance.
https://www.geeksforgeeks.org/advantages-of-distributed-database/