1 in the context of databases, refers to all the single items that are stored in a database,
either individually or as a set.
Data
2is an organized collection of structured information, or data, typically stored
electronically in a computer system.
database
3data is organized strictly in row and column format.
database
4rows are called
Tuple or Record
5columns are often called
Domain or Attribute
6Example of a Database
1. Oracle database
2. MongoDB
3. SQL Database
4. Apache Cassandra
5. Apache CouchDB
7 is a collection of interrelated data and a set of
programs to access those data.
database-management system (DBMS)
8Major areas of application of database
1. Banking
2. Airlines
3. Universities
4. Manufacturing and selling
5. Human resources
6. Healthcare
9 a database is a storage record that holds information regarding the
customers and offset transactions, including Personal Identifiable Information, deposits,
withdrawals, and transfers.
Banking
10 is a large-scale project which includes a database of more than
a single Airport. This airline management system contains the details about: Airplane Type,
Route, Flight, Airfare, Passengers, Employees, Transactions, Countries and Airport.
Airlines or airport management system
11is required to manage the records of the
students. Managing student information, generating enrollment numbers, admit cards
generation are some of the modules of the University Management Software.
Universities or university management system
12The retail industry has greatly benefited from the use of DBMS. Retail organizations use
DBMS to store customer information, sales data, and product details. This enables retailers
to make informed decisions, improve customer satisfaction, and increase sales.
Manufacturing and selling
13Human resource departments use DBMS to store and manage vast amounts of employee
data, including personal information, job history, and performance data. This data is then used
to make informed decisions about employee hiring, training, and development.
Human resources
14The healthcare industry has greatly benefited from the use of DBMS. Electronic Health
Records (EHRs) are a prime example of how DBMS is used in healthcare. EHRs use DBMS
to store patient information, medical history, laboratory results, and other crucial data. This
has improved the accuracy and efficiency of patient care as healthcare providers can access
patient information from any location.
Healthcare
15PURPOSE OF DATABASE SYSTEMS
• Data redundancy and inconsistency
• Difficulty in accessing data.
• Data isolation
• Integrity problems
• Atomicity problems
• Concurrent-access anomalies
• Security problems
16Different programmers create the files and
application programs over a long period, the various files are likely to have different
structures and the programs may be written in several programming languages.
Moreover, the same information may be duplicated in several places (files).
Data redundancy and inconsistency
17Conventional file-processing environments do not allow
needed data to be retrieved conveniently and efficiently. More responsive dataretrieval systems are required for general use.
Difficulty in accessing data
18Data are scattered in various files, and files may be in different formats,
writing new application programs to retrieve the appropriate data is difficult.
Data isolation
19 The data values stored in the database must satisfy certain types
of consistency constraints
Integrity problems
20 A computer system, like any other device, is subject to failure. In
many applications, it is crucial that, if a failure occurs, the data be restored to the
consistent state that existed prior to the failure
Atomicity problems
21For the sake of the overall performance of the system
and faster response, many systems allow multiple users to update the data
simultaneously.
Concurrent-access anomalies
22Enforcing a security constraint is difficult since application
programs are added to the file-processing system in an ad hoc manner.
Security problems
23Advantages of DBMS
• Controlling of Redundancy
• Improved Data Sharing
• Data Integrity
• Security
• Data Consistency
• Efficient Data Access
• Enforcement of Standards
• Data Independence
• Reduced Application Development and Maintenance Time
24In a database system, by having a centralized database and centralized control of data
by the DBA the unnecessary duplication of data is avoided.
Controlling of Redundancy
25DBMS allows a user to share the data in any number of application programs.
Improved Data Sharing
26Integrity means that the data in the database is accurate. Centralized control of the
data helps in permitting the administrator to define integrity constraints to the data in
the database.
Data Integrity
27Having complete authority over the operational data enables the DBA to ensure that
the only means of access to the database is through proper channels. The DBA can
define authorization checks to be carried out whenever access to sensitive data is
attempted.
Security
28By eliminating data redundancy, we greatly reduce the opportunities for inconsistency.
Data Consistency
29In a database system, the data is managed by the DBMS and all access to the data is
through the DBMS providing a key to effective data processing.
Efficient Data Access
30With the centralized data, DBA can establish and enforce the data standards which
may include the naming conventions, data quality standards, etc.
Enforcement of Standards
31When changes are made to the data representation, the metadata obtained by the
DBMS is changed but the DBMS continues to provide the data to the application
program in the previously used way.
Data Independence
32DBMS supports many important functions that are common to many applications,
accessing data stored in the DBMS, which facilitates the quick development of
applications.
Reduced Application Development and Maintenance Time
33Disadvantages of DBMS
•Complexity
• Scalability
• Database Failure
• Performance
34DBMS systems can be difficult to use, requiring special training and a steep learning
curve for new users. New users or people not from a technical background will find
navigating the system and using its various features and functions easier.
Because of this, you would be required to provide specialized training to your
employees, or else there will be a steep learning curve before they can use the system
to its full potential. And, because of the increased complexity, the system can be more
prone to errors. It will result in incorrect data being stored in the database.
Complexity
35The DBMS system may need help to handle increasing database size. Because of this
increase in database size, complexity will increase. And to decrease the complexity,
you might require additional resources, such as buying new faster processors, etc., to
overcome those problems. This can be a costly and time-consuming process.
Scalability
36
is one of the biggest disadvantages of a database management
system. it requires a lot of maintenance and constant power. Data stored on DBMS is
centralized in nature, if the database server fails, the whole system will fail and the
organization will be affected
Database Failure
37Performance issues are among the major disadvantages of DBMS because as a
database grows and complexity, it can slow down query speed and increase downtime.
This can result in decreased productivity and reduced efficiency, as users may have to
wait longer for their queries to be completed
Performance
38 is a collection of interrelated data and a set of programs that allow users
to access and modify these data
database system
39For the system to be usable, it must retrieve data efficiently. The need for efficiency has led
designers to use complex data structures to represent data in the database.
Data Abstraction
40The lowest level of abstraction describes
how the data are actually stored. The physical level describes complex low-level data
structures in detail
Physical level (or Internal View / Schema)
41The next-higher level of abstraction
describes what data are stored in the database, and what relationships exist among
those data. The logical level thus describes the entire database in terms of a small
number of relatively simple structures
Logical level (or Conceptual View / Schema)
42The highest level of abstraction describes
only part of the entire database. Even though the logical level uses simpler structures,
complexity remains because of the variety of information stored in a large database.
View level (or External View / Schema)
43The collection of
information stored in the database at a particular moment is called an
instance of the
database
44 The overall design of the database is called the database
schema
45describes the database design at the physical level. A
Physical schema defines, how the data or information is stored physically in the
storage systems in the form of files & indices. The physical schema is hidden
beneath the logical schema and can usually be changed easily without affecting
application programs.
Physical Database Schema
46The logical schema describes the database design at the logical level. Of all
the types of schemas, the logical schema is by far the most important, in terms
of its effect on application programs, since programmers construct applications
by using the logical schema
Logical Database Schema
47A database may also have several schemas at the view level, sometimes called
subschemas, which describe different views of the database. It is a view level
design which is able to define the interaction between end-user and database.
User is able to interact with the database with the help of the interface without
knowing much about the stored mechanism of data in database.
View Database Schema
48A collection of conceptual tools for describing data, data relationships, data semantics, and
consistency constraints. A data model provides a way to describe the design of a database at
the physical, logical, and view levels.
DATA MODELS
49Four different categories of Data Models
1. Relational Model
2. Entity-Relationship Model
3. Object-Based Data Model
4. Semi-structured Data Model
50uses a collection of tables to represent both data and the
relationships among those data.
. Relational Model
51Tables
are also known as
relations.
52are so named because the database is structured in
fixed-format records of several types
Record-based models
53uses a collection of basic objects, called entities,
and relationships among these objects
Entity-Relationship Model
54is a “thing” or “object” in the real world that is distinguishable from other
objects. The entity relationship model is widely used in database design.
entity
55combines features of the object-oriented data model and
relational data model.
Object-Based Data Model
56permits the specification of data where individual data
items of the same type may have different sets of attributes.
Semi-structured Data Model
57 is widely used to represent semi structured data
The Extensible Markup Language (XML)