Database System Concept
Database System Concept
Management System:
It is a set of programs to Store, update and access the data.
External Level
How the data LOOK LIKE.
Conceptual Level
What type of data is
actually stored.
Internal Level
what data are stored and
how.
Sophisticated users:
◦ Sophisticated users interact with the system without writing programs. Instead, they
form their requests in a database query language.
◦ They submit each such query to a query processor, whose function is to break down
DML statements into instructions that the storage manager understands.
Specialized users :
◦ Specialized users are sophisticated users who write specialized database applications
that do not fit into the traditional data-processing framework.
◦ Among these applications are computer-aided design systems, knowledge base and
expert systems, systems that store data with complex data types (for example, graphics
data and audio data), and environment-modeling systems.
• DDL Interpreter : It interprets the DDL statements and records them in a set of
tables containing meta data or data dictionary.
• File Manager : It manages the allocation of space on disk storage and the data
structures used to represent information stored on disk.
• Buffer Manager : It is responsible for fetching data from disk storage into main
memory and deciding what data to cache in memory.
• Data Dictionary : It stores meta data (data about data) about the structure of
the database.
• Indices : Provide fast access to data items that hold particular values.
• Statistical Data : It stores statistical information about the data in the database.
This information is used by query processor to select efficient ways to execute
query.
2. Entity-relationship Model
Hierarchical Model:
This database model organizes data into a tree-like-structure, with a single root,
to which all the other data is linked.
The hierarchy starts from the Root data, and expands like a tree, adding child
nodes to the parent nodes.
Example: one department can have many courses, many professors and of-
course many students.
Entity Set:
An entity set is a set of entities of the same type that share the
same properties.
Example: set of all persons, companies, trees, holidays
2. One-to-many relationship
When only one instance of the entity on the left, and more than one
instance of an entity on the right associates with the relationship then
this is known as a one-to-many relationship.
Example:- Scientist can invent many inventions, but the invention is
done by the only specific scientist.
4. Many-to-many relationship-
When more than one instance of the entity on the left, and more than
one instance of an entity on the right associates with the relationship
then it is known as a many-to-many relationship.
Example:- Employee can assign by many projects and project can have
many employees.