Topic 2 Flashcards
collection of data which is related by some aspect
Database
stores data, in such a way which is
easier to retrieve, manipulate and helps to produce information
database management system
CHARACTERISTICS
Real-world entity
Relation-based tables
Isolation of data and application
Less redundancy
Consistency
Query Language
ACID Properties
Multiuser and Concurrent Access
Multiple views
: DBMS allows entities and relations among them to form as tables. This eases the concept of data saving. A user can understand the architecture of database just by
looking at table names etc.
Relation-based tables:
Modern DBMS are more realistic and uses real world entities to design its
architecture. It uses the behavior and attributes too.
Real-world entity
: A database system is entirely different than its data. Where
database is said to active entity, data is said to be passive one on which the database works and
organizes. DBMS also stores metadata which is data about data, to ease its own process.
Isolation of data and application
DBMS follows rules of normalization, which splits a relation when any of its
attributes is having redundancy in values. Following normalization, which itself is a
mathematically rich and scientific process, make the entire database to contain as less
redundancy as possible.
Less redundancy
DBMS always enjoy the state on consistency where the previous form of data storing
applications while file processing does not guarantee this. Consistency is a state where every
relation in database remains consistent. There exist methods and techniques, which can detect
attempt of leaving database in inconsistent state.
Consistency
DBMS is equipped with query language, which makes it more efficient to
retrieve and manipulate data. A user can apply as many and different filtering options, as he or
she wants. Traditionally it was not possible where file-processing system was used.
Query Language
DBMS follows the concepts for __ ___, which stands for ____. These concepts are applied on transactions, which
manipulate data in database. A____ maintains database in healthy state in multi- transactional environment and in case of failure.
ACID Properties
ACID STANDS FOR
Atomicity,
Consistency, Isolation and Durability
DBMS support multi-user environment and allows them to
access and manipulate data in parallel. Though there are restrictions on transactions when they
attempt to handle same data item, but users are always unaware of them.
- Multiuser and Concurrent Access
: DBMS offers multiples views for different users. Security: Features like multiple
views offers security at some extent where users are unable to access data of other users and
departments. DBMS offers methods to impose constraints while entering data into database and
retrieving data at later stage. DBMS offers many different levels of security features, which
enables multiple users to have different view with different features.
Multiple views
DBMS architecture can be seen as
single tier or multi tier
or n-tier architecture.
DBMS is the only entity where user directly sits
on DBMS and uses it.
1 Tier Architecture
DBMS is ____ then must have some application,
which uses the DBMS. Programmers use ___
where they access DBMS by means of
application.
2-tier Architecture
Most widely used architecture ___. it separates it tier
from each other on basis of users.
3-tier
architecture
tells how the logical structure of a database is modeled.
Data model
represents the nature of data, and the business
logic to control the data. It is also organize the
database
Data Modelling
a class of real world objects having
common attributes (e.g., sites, variables,
methods).
Entity–
A characteristic or property of an
entity (site name, latitude, longitude)
- Attribute
an association between two or
more entities
- Relationship–
– the number of entities on either
end of a relationship (one-to-one, one-to many, many-to-many, etc.)
Cardinality–
is based on the notion of
real world entities and relationship among them
Entity-Relationship model
Every attribute is
defined by its set of values called
domain.
The logical association among entities is
called
Relationship
are represented by means of
rectangles. Rectangles are named with the
__ set they represent.
Entities
are the properties of entities. are represented by means of ellipses
Attributes
If the attributes are composite , they are further
divided in a tree like structure.
- ellipses that are connected
with an ellipse
composite attributes
are depicted by dashed
ellipse
Derived attributes
are depicted by double
ellipse.
Multivalued attributes
Types of Attributes
Simple attribute
Composite attribute
Derived attribute
Single-value attribute
Multi-value attribute