Unit 1 Introduction To Database
Unit 1 Introduction To Database
1. Definition of a Database
Database: A collection of related data with implicit meaning, recordable
facts.
2. Properties of a Database
Represents Real World: Reflects changes in the miniworld (universe of
discourse).
Purposeful Design: Built for specific purposes, with intended users and
applications.
5. Functions of DBMS
Defining: Specify data types, structures, and constraints; stored as meta-
data in a database catalog/dictionary.
6. Database System
Components: Comprises both the database and the DBMS software.
1.2 An Example
Each record type has a specific structure. For example, a STUDENT record
might include:
Student_number: An integer.
The relationships between records are crucial. For example, a STUDENT record
for Smith relates to multiple GRADE_REPORT records specifying Smith's grades
in different sections. Similarly, PREREQUISITE records link course records by
specifying required prerequisites.
List names of students and their grades for the 'Database' course section in
Fall 2008.
Examples of updates:
Enter a grade of 'A' for Smith in the 'Database' section from last semester.
2. Conceptual Design: Representing the database using tools like the Entity-
Relationship (ER) model.
The catalog allows DBMS software to work with any database application
by referencing the database structure stored within it.
Views may represent subsets of the database or virtual data derived from it.
Users can access customized views tailored to their specific needs without
needing to understand the underlying database structure.
Tasks:
2. Database Designers
Responsibility: Designing the database structure and choosing appropriate
data storage structures.
Tasks:
3. End Users
Categories:
Learning Curve: End users' proficiency with the database depends on the
complexity of their tasks and the user interface provided.
Tasks:
Each of these actors plays a crucial role in ensuring the effective management,
utilization, and maintenance of the database within the organization.
Tasks:
2. Tool Developers
Role: Designing and developing software tools that aid in database
modeling, system design, and performance enhancement.
Tasks:
Tasks:
While these individuals work behind the scenes and are not directly involved in
utilizing the database contents for their own purposes, their contributions are
indispensable for the efficient functioning of the database system.
1. Controlling Redundancy
Issue: Traditional file processing systems lead to redundant storage of data
across different user groups.
Mobile Apps, Query Languages, GUIs: DBMS supports mobile apps, query
languages, graphical user interfaces (GUIs), and other interfaces for
seamless user interaction.
Efficient Retrieval and Updates: Allows for easy retrieval and updating of
related data, enhancing database functionality and usability.
XML: Became a standard for interchanging data among databases and web
pages, combining document system and database modeling concepts.
Computer-Aided Design (CAD) Tools: CAD tools often have proprietary file
and data management software tailored for handling drawings and 3D
objects efficiently.
2. Conceptual Level
Conceptual Schema: Describes the structure of the entire database for a
community of users.
Purpose: Hides irrelevant data from each user group, focuses on their
specific interests.
Data Retrieval: If a retrieval, data extracted from the stored database needs
reformatting to match the user's external view.
Data Independence
Usage:
Other Languages:
Integration:
Examples:
Types:
Query Language
Purpose: Used by casual end users to specify requests interactively.
Interfaces:
User-friendly interfaces for naive and parametric users who don't want
to learn high-level query language details.
Lower Part: Internal modules of DBMS responsible for data storage and
transaction processing.
Top Part:
1. DBA Staff: Defines and tunes the database using Data Definition Language
(DDL) and other privileged commands.
DDL Compiler:
Processes schema definitions specified in DDL.
Query Compiler:
Validates and parses queries for correctness.
Query Optimizer:
Rearranges and optimizes queries for efficient execution.
Precompiler:
Extracts Data Manipulation Language (DML) commands from host language
programs.
Sends DML commands to DML compiler for compilation into object code.
Handles data transfer between disk and main memory, manages buffers.
Client-Server Architecture:
Client program accesses DBMS running on a separate database server.
DBMS interacts with operating system, compilers, and network interface for
disk access, processing, and client-server communication.
Legacy Models: Hierarchical and network models still used in some legacy
applications.
4. Based on Cost:
Open source (free) DBMS products like MySQL and PostgreSQL.
Special Purpose: Designed and built for specific applications, e.g., airline
reservations, telephone directory systems.