Unit 1_ Database System Concept
Unit 1_ Database System Concept
Airlines and Railways: Online database for reservation, displaying the schedule information.
Banking: Customer inuiry, accounts, loans, and other transactions.
Education: Course registration, result, and other information.
Telecommunications: Communication network, telephone numbers, record of calls, for
generating monthly bills, etc.
E-commerce: Business activity such as online shopping, booking of holiday package, consulting
a doctor, etc.
Human resources: Organizations use database for storing information about their employees,
salaries, benefits,taxes, and for generating salary checks.
Database Communication Interfaces: The end-user's requests for database access are
transmitted to DBMS in the form of communication messages.
Authorization / Security Management: The DBMS protects the database against unauthorized
access, either international or accidental. It furnishes mechanism to ensure that only authorized
users an access the database.
Backup and Recovery Management: The DBMS provides mechanisms for backing up data
periodically and recovering from different types of failures. This prevents the loss of data.
Concurrency Control Service: Since DBMSs support sharing of data among multiple users,
they must provide a mechanism for managing concurrent access to the database. DBMSs ensure
that the database kept in consistent state and that integrity of the data is preserved.
Transaction Management: A transaction is a series of database operations, carried out by a
single user or application program, which accesses or changes the contents of the database.
Therefore, a DBMS must provide a mechanism to ensure either that all the updates
corresponding to a given transaction are made or that none of them is made.
Database Access and Application Programming Interfaces: All DBMS provide interface to
enable applications to use DBMS services. They provide data access via Structured Query
Language (SQL). The DBMS query language contains two components: (a) a Data Definition
Language (DDL) and (b) a Data Manipulation Language (DML).
Data integrity and consistency: To provide data integrity and data consistency, the dbms
uses sophisticated algorithms to ensure that multiple user can access the database concurrently
without compromising the integrity of the database.
Data Independence: It is the ability to modify a schema in one level without affecting schema
in another level.
There are two types of data independence:
1) Logical data independence
2) Physical data independence.
Logical data independence: It is the ability to change conceptual schema without affecting
external schema or application programs.
Physical data independence: It is the ability to change internal schema without affecting
conceptual or external schema.
9. Explain three levels of data abstraction with suitable diagram. What is data
abstraction? What are the levels of abstraction? What is data abstraction,
instances and schema?
Explain three levels of data abstraction with suitable diagram.
Data abstraction is a process in which developer hides the complexity from the user to
simplify the user interaction with the system. There are three levels of abstraction:-
Explanation:
1) Physical Level:
2) Logical Level:
The level next to physical level is called logical level.
This level defines what data stored in the database and what are the relationships among these
data.
3) View Level:
This level is used to show the part of database to user.
There are more complexity in physical as well as logical level so user should not interact with
complicated database.
So different view of database can be created for user to interact with database easily.
Schema: The overall design of the database is known as schema. The database schemas are
partitioned at different level of abstractions.
Instance: The collection of information stored in the databases at a particular moment is called
as an instance.
Relational Database
Hierarchical Model,
Network Model,
E-R Model
Hierarchical Model
In this model each entity has only one parent but can have several children . At the top of
hierarchy there is only one entity which is called Root.
Network Model
In the network model, entities are organised in a graph,in which some entities can be
accessed through sveral path
Relational Model
In this model, data is organised in two-dimesional tables called relations. The tables or relation
are related to each other.
The most popular data model in DBMS is the Relational Model. It is more scientific a model
than others. This model is based on first-order predicate logic and defines a table as an n-ary
relation.
The main highlights of this model are −
It is based on records and links. It is based on tree like structure with one root.
Network model is upgraded version of the The main application of hierarchical data model is
child relationship
Uses links to relate data Uses pointers to relate data
It uses client server architecture. It does not uses client server architecture.
Entity:An entity is a thing or object in the real world with an independent existence. An entity
may be an object with a physical existence.
Many-to-one − More than one entities from entity set A can be
associated with at most one entity of entity set B, however an entity from
entity set B can be associated with more than one entity from entity set
A.