ch-1
ch-1
DBMS- DATABASE
MANAGEMENT
SYSTEM
BY:- SHALU
UNIT 1 -INTRODUCTION TO
DATABASE SYSTEM
INTRODUCTION
(DATABASE--- An organized collection of related information.)
DEFINATION
“DATABASE MANAGMENT SYSTEM is a collection
of interrelated data and a set of programs to
access those data.”
PRIMARY GOAL OF DBMS
Is to provide way to store and retrieve database
information that is both convenient and efficient.
DBMS designed to manage large bodies of information.
The database system must ensure the safety of the
information stored.
DATABASE SYSTEM APPLICATIONS
• Input − In this step, the input data is prepared in some convenient form for
processing. The form will depend on the processing machine. For example, when
electronic computers are used, the input data can be recorded on any one of the
several types of input medium, such as magnetic disks, tapes, and so on.
• Processing − In this step, the input data is changed to produce data in a more
useful form. For example, pay-checks can be calculated from the time cards, or a
summary of sales for the month can be calculated from the sales orders.
• Output − At this stage, the result of the proceeding processing step is collected.
The particular form of the output data depends on the use of the data. For
example, output data may be pay-checks for employees.
DATA WAREHOUSE
A Data Warehouse is a group of data specific to the entire
organization, not only to a particular group of users.
It is not used for daily operations and transaction processing but
used for making decisions.
"Data Warehouse is a subject-oriented, integrated, and time-variant
store of information in support of management's decisions.“
Four unique characteristics allow data warehouses to deliver this
overarching benefit. According to this definition, data warehouses
are
• Subject-oriented. They can analyze data about a particular
subject or functional area (such as sales).
• Integrated. Data warehouses create consistency among different
data types from disparate sources.
• Nonvolatile. Once data is in a data warehouse, it’s stable and
doesn’t change.
• Time-variant. Data warehouse analysis looks at change over time.
METADATA
Metadata is simply defined as data about data. The data that is
used to represent other data is known as metadata. For example,
the index of a book serves as a metadata for the contents in the
book. In other words, we can say that metadata is the
summarized data that leads us to detailed data. In terms of data
warehouse, we can define metadata as follows.
• Metadata is the road-map to a data warehouse.
• Metadata in a data warehouse defines the warehouse objects.
• Metadata acts as a directory. This directory helps the decision
support system to locate the contents of a data warehouse.
SYSTEM CATALOG
The system catalog is a vital part of a database. Inside the database, there are
objects, which include tables, views and indexes. Basically, the system catalog
is a set of objects, which includes information that defines:
• Other objects included in the database
• The database structure itself
• Several other vital pieces of information
• The types of information that the system must store are these
Name of the relations (table)
Name of the attributes of each relation
Domain and lengths of attributes
Integrity constraints (for ex :- key constraints)
DATA ITEMS
FIELDS, ATTRIBUTES, COLUMNS
The characteristics of an entity are called fields or attributes or
columns.
Entity can have a number of characteristics like name, address,
phone no. etc.
Entity is a group of similar information or data.
RECORD ( ROW, TUPLE )
Multiple fields placed in a horizontal plane are called a record or
row or TUPLE.
An organization will deal with many clients and the same
information must be recorded for each client multiple fields placed
in a horizontal plane is called a record or row or TUPLE.
Files
Which store the database itself?
DATA DICTIONARY (DATA
DIRECTORY)
A data dictionary contains metadata i.e data about the database. The
data dictionary is very important as it contains information such as what
is in the database, who is allowed to access it, where is the database
physically stored etc. The users of the database normally don't interact
with the data dictionary, it is only handled by the database
administrators.
The data dictionary in general contains information about the following
−
• Names of all the database tables and their schemas.
• Details about all the tables in the database, such as their owners, their
security constraints, when they were created etc.
• Physical information about the tables such as where they are stored and
how.
• Table constraints such as primary key attributes, foreign key information
etc.
• Information about the database views that are visible.
DATA DICTIONARY (DATA
DIRECTORY)
Data dictionaries can also classified as Active or Passive