The document provides an introduction to database management systems. It discusses the key components of a DBMS including data models like the hierarchical, network, relational, and entity-relationship models. It also summarizes some of the advantages of using a DBMS like data independence, efficient data access, data integrity and security, data administration, concurrent access and crash recovery, and reduced application development time. Textbooks and references on the topic are also listed.
The document provides an introduction to database management systems (DBMS). It discusses that a DBMS is a collection of data and programs used to access the data, which is stored in a database. The primary goal of a DBMS is to store and retrieve database information conveniently and efficiently. Issues with traditional file-based systems like data redundancy, inconsistent data access, and lack of integrity/security are discussed. A DBMS addresses these issues through features like data independence, efficient retrieval, centralized administration and crash recovery.
1) Database management systems were created to address issues with storing information in file processing systems, such as data redundancy, difficulty accessing data, data isolation, and integrity and security problems.
2) A DBMS allows for centralized control of data, consistent definitions and storage, reduced data redundancy, data independence from programs and applications, and support for multiple user access.
3) Some key applications of database systems include banking, airlines, universities, manufacturing, online retailers, and telecommunications.
The document discusses databases and database management systems. It provides examples of common database applications like banking, universities, sales, and airlines. It defines what a database is, the role of a database management system, and examples of DBMS software. It also compares the advantages and disadvantages of using a database system versus a traditional file system to store data. Key benefits of a DBMS include supporting complex queries, controlling redundancy and consistency, handling concurrent access from multiple users, and providing security and data recovery.
This document provides an overview of database management systems and the entity relationship model. It discusses:
1) The components and purpose of a DBMS including data storage and management, data independence, and concurrent access.
2) Database users including administrators, designers, end users, and application developers.
3) The three schema architecture including the internal, conceptual, and external levels and mappings between them.
4) Entity relationship modeling concepts such as entities, attributes, relationships and constraints which allow conceptualization of data.
The document discusses different database concepts:
1) A database is a collection of organized data that can be easily retrieved, inserted, and deleted. Database management systems (DBMS) like MySQL and Oracle are software used to manage databases.
2) The two main data models are the relational model, which organizes data into tables and relations, and the object-oriented model, which represents data as objects with properties and methods.
3) DBMS provide advantages like data sharing, backup/recovery, security, and independence between data and applications. However, they also have disadvantages such as higher costs and complexity.
The document provides an introduction to relational database management systems (RDBMS). It discusses key concepts including:
1) The purpose of database systems is to provide a centralized, organized collection of data to address issues with file-based data storage like redundancy, inconsistency, and difficulty accessing data.
2) A database includes the data itself as well as metadata that describes the data. Database systems provide logical views of the data at different levels of abstraction to make the complexity manageable.
3) Database systems aim to achieve data independence so the logical design can change without impacting applications or users.
This document discusses database management systems (DBMS) and their components. It describes DBMS as a set of programs that allow for the storage and retrieval of data. It then discusses the key components of a DBMS including the physical, logical, and view levels of abstraction, data models, data independence, data definition and manipulation languages like SQL, and the roles of database administrators and users. The document provides an overview of the architecture and design of database systems.
1. The document discusses database management systems (DBMS) and provides examples of common database applications like banking, airlines, universities, and more.
2. It then gives examples of university database applications like adding students/courses, registering for classes, assigning grades, and more.
3. Early database applications were built directly on file systems, but DBMS provides advantages like data integrity, security, transaction control, concurrent access, and independence from physical storage.
The document provides an introduction to database management systems (DBMS). It discusses that a DBMS is a collection of data and programs used to access the data, which is stored in a database. The primary goal of a DBMS is to store and retrieve database information conveniently and efficiently. Issues with traditional file-based systems like data redundancy, inconsistent data access, and lack of integrity/security are discussed. A DBMS addresses these issues through features like data independence, efficient retrieval, centralized administration and crash recovery.
1) Database management systems were created to address issues with storing information in file processing systems, such as data redundancy, difficulty accessing data, data isolation, and integrity and security problems.
2) A DBMS allows for centralized control of data, consistent definitions and storage, reduced data redundancy, data independence from programs and applications, and support for multiple user access.
3) Some key applications of database systems include banking, airlines, universities, manufacturing, online retailers, and telecommunications.
The document discusses databases and database management systems. It provides examples of common database applications like banking, universities, sales, and airlines. It defines what a database is, the role of a database management system, and examples of DBMS software. It also compares the advantages and disadvantages of using a database system versus a traditional file system to store data. Key benefits of a DBMS include supporting complex queries, controlling redundancy and consistency, handling concurrent access from multiple users, and providing security and data recovery.
This document provides an overview of database management systems and the entity relationship model. It discusses:
1) The components and purpose of a DBMS including data storage and management, data independence, and concurrent access.
2) Database users including administrators, designers, end users, and application developers.
3) The three schema architecture including the internal, conceptual, and external levels and mappings between them.
4) Entity relationship modeling concepts such as entities, attributes, relationships and constraints which allow conceptualization of data.
The document discusses different database concepts:
1) A database is a collection of organized data that can be easily retrieved, inserted, and deleted. Database management systems (DBMS) like MySQL and Oracle are software used to manage databases.
2) The two main data models are the relational model, which organizes data into tables and relations, and the object-oriented model, which represents data as objects with properties and methods.
3) DBMS provide advantages like data sharing, backup/recovery, security, and independence between data and applications. However, they also have disadvantages such as higher costs and complexity.
The document provides an introduction to relational database management systems (RDBMS). It discusses key concepts including:
1) The purpose of database systems is to provide a centralized, organized collection of data to address issues with file-based data storage like redundancy, inconsistency, and difficulty accessing data.
2) A database includes the data itself as well as metadata that describes the data. Database systems provide logical views of the data at different levels of abstraction to make the complexity manageable.
3) Database systems aim to achieve data independence so the logical design can change without impacting applications or users.
This document discusses database management systems (DBMS) and their components. It describes DBMS as a set of programs that allow for the storage and retrieval of data. It then discusses the key components of a DBMS including the physical, logical, and view levels of abstraction, data models, data independence, data definition and manipulation languages like SQL, and the roles of database administrators and users. The document provides an overview of the architecture and design of database systems.
1. The document discusses database management systems (DBMS) and provides examples of common database applications like banking, airlines, universities, and more.
2. It then gives examples of university database applications like adding students/courses, registering for classes, assigning grades, and more.
3. Early database applications were built directly on file systems, but DBMS provides advantages like data integrity, security, transaction control, concurrent access, and independence from physical storage.
dbms Unit 1.pdf arey bhai teri maa chodungaVaradKadtan1
This document provides an introduction and overview of database management systems (DBMS). It discusses that a DBMS allows for the storage and retrieval of data in a database. It notes some key advantages of DBMS like managing large amounts of data, ensuring data integrity, and allowing multiple users to access shared data. The document also describes database applications, levels of data abstraction, instances and schemas, common data models, and database languages.
Unit 1: Introduction to DBMS Unit 1 CompleteRaj vardhan
This document discusses database management systems (DBMS) and their advantages over traditional file-based data storage. It describes the key components of a DBMS, including the hardware, software, data, procedures, and users. It also explains the three levels of abstraction in a DBMS - the physical level, logical level, and view level - and how they provide data independence. Finally, it provides an overview of different data models like hierarchical, network, and relational models.
The document discusses key concepts related to databases including:
1) It defines data as representations of facts, concepts or instructions that are suitable for communication, interpretation or processing.
2) A database is defined as a structured set of non-redundant information organized based on a data model, consisting of files, records and fields.
3) A database management system (DBMS) provides an interface between users and the database, allowing for data definition, manipulation and control.
The document discusses database essentials including database management systems, database applications, the purpose of database systems, data models, database languages, database architecture, and the relational data model. Specifically, it defines what a DBMS is, provides examples of common database applications, describes why databases were developed to address limitations of file processing systems, outlines several data models including the relational model, discusses database languages for defining and manipulating data, presents the client-server architecture of database systems, and explains key concepts of the relational model including tables, tuples, attributes, relations, and domains.
The document provides an introduction to database management systems (DBMS). It discusses what a database is and the key components of a DBMS, including data, information, and the database management system itself. It also summarizes common database types and characteristics, as well as the purpose and advantages of using a database system compared to traditional file processing.
Organizing Data in a Traditional File Environment
File organization Term and Concepts
Computer system organizes data in a hierarchy
Bit: Smallest unit of data; binary digit (0,1)
Byte: Group of bits that represents a single character
Field: Group of characters as word(s) or number
Record: Group of related fields
File: Group of records of same type
This document provides an outline for a course on databases and database users. It introduces key concepts about databases including what a database is, database properties, database management systems, actors involved with databases like administrators and designers, advantages of databases over file systems, and common database applications. The outline covers topics that will be taught like introduction to PHP and MySQL, how to code applications with databases, and how to perform common tasks with databases.
*What is DBMS
*Database System Applications
*The Evolution of a Database
*Drawbacks of File Management System / Purpose of Database Systems
*Advantages of DBMS
*Disadvantages of DBMS
*DBMS Architecture
*types of modules
*Three-Tier and n-Tier Architectures for Web Applications
*different level and types
*Data Abstraction
*Data Independence
*Database State or Snapshot
*Database Schema vs. Database State
*Categories of data models
*Different Users
*Database Languages
*Relational Model
*ER Model
*Object-based model
*Semi-structured data model
Database :Introduction to Database SystemZakriyaMalik2
This document provides an introduction to a database systems course. It outlines the course details such as credits, textbook, and grading policy. It also covers plagiarism, attendance, quiz policies. Key topics in database systems like database types, DBMS functionality, database design phases, transaction processing are summarized. Example database for a university environment is provided to illustrate concepts.
The document discusses key concepts related to databases and database management systems (DBMS). It defines what a database is - a collection of interrelated data organized for efficient retrieval, insertion and deletion. It describes characteristics of the database approach like self-describing nature, insulation between programs and data, support of multiple views, and sharing of data. The document also discusses database management systems, advantages and disadvantages of DBMS, types of DBMS like hierarchical, network, relational and object-oriented, database architectures, types of databases like centralized and distributed, data models, and defines what a database schema is.
Overview of Data Base Systems Concepts and ArchitectureRubal Sagwal
Data
Data Hierarchy
Introduction of Database
DBMS
Characteristics of database approach
Advantages of DBMS
Data models
Schemas, Three schema architecture:
-The external level
-The conceptual level and
-The internal level.
Data Independence
Database languages and Interfaces
Roles of Database Administrator
01-Database Administration and Management.pdfTOUSEEQHAIDER14
This document provides an introduction and overview of database systems. It discusses the purpose of database systems in addressing issues with file-based data storage like data redundancy, inconsistent data, and difficulty of data access. It also describes database applications, data models, database languages like SQL, database design, database architecture, and the major components of a database system including the storage manager, query processor, and transaction manager.
A DBMS is a software package that controls the creation, organization, storage, retrieval, sharing, and security of data in a database. It allows for multi-user access and uses query languages to search, sort, and retrieve data. There are several data models including hierarchical, network, relational, multidimensional, and object models. A DBMS is used in many applications such as banking, airlines, universities, sales, manufacturing, and more. It provides advantages like representing complex relationships, controlling redundancy, and sharing data across applications but also has disadvantages such as complex design, high costs, and required training.
This document provides an introduction to database management systems. It discusses the types of information needed for businesses, including operational, tactical, and strategic information. It also describes the limitations of traditional file-based systems, such as data redundancy and inconsistencies. The document then introduces database systems and their components, including the database itself and the database management system software. It explains the three levels of the database system architecture - the internal/physical level, conceptual/logical level, and external/view level - and the mappings between them.
The document provides an overview of databases and database management systems. It defines what a database is and provides examples. It discusses the objectives and purpose of databases, including controlling redundancy, ease of use, data independence, accuracy, recovery from failure, privacy and security. Key terms related to database design and structure are explained, such as tables, rows, indexes, primary keys and foreign keys. The document also covers data definition language, data manipulation language, SQL, users and types of databases. Factors to consider when selecting a database management system are outlined.
The document discusses database management systems (DBMS). It defines key terms like database, DBMS, metadata, system catalog, data, and information. It explains the characteristics of the database approach, advantages of using a DBMS over traditional file systems, and implications of the database approach. It also outlines the roles of database administrators and other actors involved with databases. Finally, it discusses some disadvantages of DBMS and circumstances when a DBMS may not be necessary.
The document provides an introduction to database principles. It discusses the limitations of file-based data management systems and how database management systems were developed to overcome these limitations. The key components of a database system are described, including the database, database management system, and application programs. Roles in a database environment like database administrators and end users are defined. Advantages of relational database management systems like controlling redundancy and improving data integrity are outlined. Some disadvantages of database systems like complexity and increased hardware costs are also noted.
The document discusses key concepts related to databases including data, information, database management systems (DBMS), database design, and entity relationship modeling. It defines data as raw unorganized facts and information as organized, meaningful data. A database is a collection of organized data that can be easily accessed, managed and updated. Effective database design involves conceptual, logical and physical data modeling to structure data and relationships. The entity relationship model uses entities, attributes, and relationships to graphically represent data structures and relationships.
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra
This document provides an overview of database design and management. It discusses what a database management system (DBMS) is and its primary goals of storing and retrieving data. It also describes some common database applications and compares file systems to DBMSs. The document outlines different views of data including data abstraction, instances, and schemas. It introduces several data models including the entity-relationship model and relational model. Finally, it discusses database languages, users, and the role of the database administrator.
dbms Unit 1.pdf arey bhai teri maa chodungaVaradKadtan1
This document provides an introduction and overview of database management systems (DBMS). It discusses that a DBMS allows for the storage and retrieval of data in a database. It notes some key advantages of DBMS like managing large amounts of data, ensuring data integrity, and allowing multiple users to access shared data. The document also describes database applications, levels of data abstraction, instances and schemas, common data models, and database languages.
Unit 1: Introduction to DBMS Unit 1 CompleteRaj vardhan
This document discusses database management systems (DBMS) and their advantages over traditional file-based data storage. It describes the key components of a DBMS, including the hardware, software, data, procedures, and users. It also explains the three levels of abstraction in a DBMS - the physical level, logical level, and view level - and how they provide data independence. Finally, it provides an overview of different data models like hierarchical, network, and relational models.
The document discusses key concepts related to databases including:
1) It defines data as representations of facts, concepts or instructions that are suitable for communication, interpretation or processing.
2) A database is defined as a structured set of non-redundant information organized based on a data model, consisting of files, records and fields.
3) A database management system (DBMS) provides an interface between users and the database, allowing for data definition, manipulation and control.
The document discusses database essentials including database management systems, database applications, the purpose of database systems, data models, database languages, database architecture, and the relational data model. Specifically, it defines what a DBMS is, provides examples of common database applications, describes why databases were developed to address limitations of file processing systems, outlines several data models including the relational model, discusses database languages for defining and manipulating data, presents the client-server architecture of database systems, and explains key concepts of the relational model including tables, tuples, attributes, relations, and domains.
The document provides an introduction to database management systems (DBMS). It discusses what a database is and the key components of a DBMS, including data, information, and the database management system itself. It also summarizes common database types and characteristics, as well as the purpose and advantages of using a database system compared to traditional file processing.
Organizing Data in a Traditional File Environment
File organization Term and Concepts
Computer system organizes data in a hierarchy
Bit: Smallest unit of data; binary digit (0,1)
Byte: Group of bits that represents a single character
Field: Group of characters as word(s) or number
Record: Group of related fields
File: Group of records of same type
This document provides an outline for a course on databases and database users. It introduces key concepts about databases including what a database is, database properties, database management systems, actors involved with databases like administrators and designers, advantages of databases over file systems, and common database applications. The outline covers topics that will be taught like introduction to PHP and MySQL, how to code applications with databases, and how to perform common tasks with databases.
*What is DBMS
*Database System Applications
*The Evolution of a Database
*Drawbacks of File Management System / Purpose of Database Systems
*Advantages of DBMS
*Disadvantages of DBMS
*DBMS Architecture
*types of modules
*Three-Tier and n-Tier Architectures for Web Applications
*different level and types
*Data Abstraction
*Data Independence
*Database State or Snapshot
*Database Schema vs. Database State
*Categories of data models
*Different Users
*Database Languages
*Relational Model
*ER Model
*Object-based model
*Semi-structured data model
Database :Introduction to Database SystemZakriyaMalik2
This document provides an introduction to a database systems course. It outlines the course details such as credits, textbook, and grading policy. It also covers plagiarism, attendance, quiz policies. Key topics in database systems like database types, DBMS functionality, database design phases, transaction processing are summarized. Example database for a university environment is provided to illustrate concepts.
The document discusses key concepts related to databases and database management systems (DBMS). It defines what a database is - a collection of interrelated data organized for efficient retrieval, insertion and deletion. It describes characteristics of the database approach like self-describing nature, insulation between programs and data, support of multiple views, and sharing of data. The document also discusses database management systems, advantages and disadvantages of DBMS, types of DBMS like hierarchical, network, relational and object-oriented, database architectures, types of databases like centralized and distributed, data models, and defines what a database schema is.
Overview of Data Base Systems Concepts and ArchitectureRubal Sagwal
Data
Data Hierarchy
Introduction of Database
DBMS
Characteristics of database approach
Advantages of DBMS
Data models
Schemas, Three schema architecture:
-The external level
-The conceptual level and
-The internal level.
Data Independence
Database languages and Interfaces
Roles of Database Administrator
01-Database Administration and Management.pdfTOUSEEQHAIDER14
This document provides an introduction and overview of database systems. It discusses the purpose of database systems in addressing issues with file-based data storage like data redundancy, inconsistent data, and difficulty of data access. It also describes database applications, data models, database languages like SQL, database design, database architecture, and the major components of a database system including the storage manager, query processor, and transaction manager.
A DBMS is a software package that controls the creation, organization, storage, retrieval, sharing, and security of data in a database. It allows for multi-user access and uses query languages to search, sort, and retrieve data. There are several data models including hierarchical, network, relational, multidimensional, and object models. A DBMS is used in many applications such as banking, airlines, universities, sales, manufacturing, and more. It provides advantages like representing complex relationships, controlling redundancy, and sharing data across applications but also has disadvantages such as complex design, high costs, and required training.
This document provides an introduction to database management systems. It discusses the types of information needed for businesses, including operational, tactical, and strategic information. It also describes the limitations of traditional file-based systems, such as data redundancy and inconsistencies. The document then introduces database systems and their components, including the database itself and the database management system software. It explains the three levels of the database system architecture - the internal/physical level, conceptual/logical level, and external/view level - and the mappings between them.
The document provides an overview of databases and database management systems. It defines what a database is and provides examples. It discusses the objectives and purpose of databases, including controlling redundancy, ease of use, data independence, accuracy, recovery from failure, privacy and security. Key terms related to database design and structure are explained, such as tables, rows, indexes, primary keys and foreign keys. The document also covers data definition language, data manipulation language, SQL, users and types of databases. Factors to consider when selecting a database management system are outlined.
The document discusses database management systems (DBMS). It defines key terms like database, DBMS, metadata, system catalog, data, and information. It explains the characteristics of the database approach, advantages of using a DBMS over traditional file systems, and implications of the database approach. It also outlines the roles of database administrators and other actors involved with databases. Finally, it discusses some disadvantages of DBMS and circumstances when a DBMS may not be necessary.
The document provides an introduction to database principles. It discusses the limitations of file-based data management systems and how database management systems were developed to overcome these limitations. The key components of a database system are described, including the database, database management system, and application programs. Roles in a database environment like database administrators and end users are defined. Advantages of relational database management systems like controlling redundancy and improving data integrity are outlined. Some disadvantages of database systems like complexity and increased hardware costs are also noted.
The document discusses key concepts related to databases including data, information, database management systems (DBMS), database design, and entity relationship modeling. It defines data as raw unorganized facts and information as organized, meaningful data. A database is a collection of organized data that can be easily accessed, managed and updated. Effective database design involves conceptual, logical and physical data modeling to structure data and relationships. The entity relationship model uses entities, attributes, and relationships to graphically represent data structures and relationships.
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra
This document provides an overview of database design and management. It discusses what a database management system (DBMS) is and its primary goals of storing and retrieving data. It also describes some common database applications and compares file systems to DBMSs. The document outlines different views of data including data abstraction, instances, and schemas. It introduces several data models including the entity-relationship model and relational model. Finally, it discusses database languages, users, and the role of the database administrator.
Advanced control scheme of doubly fed induction generator for wind turbine us...IJECEIAES
This paper describes a speed control device for generating electrical energy on an electricity network based on the doubly fed induction generator (DFIG) used for wind power conversion systems. At first, a double-fed induction generator model was constructed. A control law is formulated to govern the flow of energy between the stator of a DFIG and the energy network using three types of controllers: proportional integral (PI), sliding mode controller (SMC) and second order sliding mode controller (SOSMC). Their different results in terms of power reference tracking, reaction to unexpected speed fluctuations, sensitivity to perturbations, and resilience against machine parameter alterations are compared. MATLAB/Simulink was used to conduct the simulations for the preceding study. Multiple simulations have shown very satisfying results, and the investigations demonstrate the efficacy and power-enhancing capabilities of the suggested control system.
artificial intelligence and data science contents.pptxGauravCar
What is artificial intelligence? Artificial intelligence is the ability of a computer or computer-controlled robot to perform tasks that are commonly associated with the intellectual processes characteristic of humans, such as the ability to reason.
› ...
Artificial intelligence (AI) | Definitio
Embedded machine learning-based road conditions and driving behavior monitoringIJECEIAES
Car accident rates have increased in recent years, resulting in losses in human lives, properties, and other financial costs. An embedded machine learning-based system is developed to address this critical issue. The system can monitor road conditions, detect driving patterns, and identify aggressive driving behaviors. The system is based on neural networks trained on a comprehensive dataset of driving events, driving styles, and road conditions. The system effectively detects potential risks and helps mitigate the frequency and impact of accidents. The primary goal is to ensure the safety of drivers and vehicles. Collecting data involved gathering information on three key road events: normal street and normal drive, speed bumps, circular yellow speed bumps, and three aggressive driving actions: sudden start, sudden stop, and sudden entry. The gathered data is processed and analyzed using a machine learning system designed for limited power and memory devices. The developed system resulted in 91.9% accuracy, 93.6% precision, and 92% recall. The achieved inference time on an Arduino Nano 33 BLE Sense with a 32-bit CPU running at 64 MHz is 34 ms and requires 2.6 kB peak RAM and 139.9 kB program flash memory, making it suitable for resource-constrained embedded systems.
Comparative analysis between traditional aquaponics and reconstructed aquapon...bijceesjournal
The aquaponic system of planting is a method that does not require soil usage. It is a method that only needs water, fish, lava rocks (a substitute for soil), and plants. Aquaponic systems are sustainable and environmentally friendly. Its use not only helps to plant in small spaces but also helps reduce artificial chemical use and minimizes excess water use, as aquaponics consumes 90% less water than soil-based gardening. The study applied a descriptive and experimental design to assess and compare conventional and reconstructed aquaponic methods for reproducing tomatoes. The researchers created an observation checklist to determine the significant factors of the study. The study aims to determine the significant difference between traditional aquaponics and reconstructed aquaponics systems propagating tomatoes in terms of height, weight, girth, and number of fruits. The reconstructed aquaponics system’s higher growth yield results in a much more nourished crop than the traditional aquaponics system. It is superior in its number of fruits, height, weight, and girth measurement. Moreover, the reconstructed aquaponics system is proven to eliminate all the hindrances present in the traditional aquaponics system, which are overcrowding of fish, algae growth, pest problems, contaminated water, and dead fish.
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...shadow0702a
This document serves as a comprehensive step-by-step guide on how to effectively use PyCharm for remote debugging of the Windows Subsystem for Linux (WSL) on a local Windows machine. It meticulously outlines several critical steps in the process, starting with the crucial task of enabling permissions, followed by the installation and configuration of WSL.
The guide then proceeds to explain how to set up the SSH service within the WSL environment, an integral part of the process. Alongside this, it also provides detailed instructions on how to modify the inbound rules of the Windows firewall to facilitate the process, ensuring that there are no connectivity issues that could potentially hinder the debugging process.
The document further emphasizes on the importance of checking the connection between the Windows and WSL environments, providing instructions on how to ensure that the connection is optimal and ready for remote debugging.
It also offers an in-depth guide on how to configure the WSL interpreter and files within the PyCharm environment. This is essential for ensuring that the debugging process is set up correctly and that the program can be run effectively within the WSL terminal.
Additionally, the document provides guidance on how to set up breakpoints for debugging, a fundamental aspect of the debugging process which allows the developer to stop the execution of their code at certain points and inspect their program at those stages.
Finally, the document concludes by providing a link to a reference blog. This blog offers additional information and guidance on configuring the remote Python interpreter in PyCharm, providing the reader with a well-rounded understanding of the process.
Software Engineering and Project Management - Introduction, Modeling Concepts...Prakhyath Rai
Introduction, Modeling Concepts and Class Modeling: What is Object orientation? What is OO development? OO Themes; Evidence for usefulness of OO development; OO modeling history. Modeling
as Design technique: Modeling, abstraction, The Three models. Class Modeling: Object and Class Concept, Link and associations concepts, Generalization and Inheritance, A sample class model, Navigation of class models, and UML diagrams
Building the Analysis Models: Requirement Analysis, Analysis Model Approaches, Data modeling Concepts, Object Oriented Analysis, Scenario-Based Modeling, Flow-Oriented Modeling, class Based Modeling, Creating a Behavioral Model.
2. UNIT-I
Introduction to Database. Hierarchical, Network and
Relational Models. Three-Schema Architecture and
Data Independence– The Database System
Environment– Data models: Entity-relationship
model, network model, relational and object oriented
data models, SQL Fundamentals – Advanced SQL
features – Triggers – Embedded SQL.
3. TEXT BOOKS
1. Abraham Silberschatz, Henry F. Korth, S. Sudharshan, “Database System Concepts”,
7th Edition, Tata McGraw Hill, March 2019. ( 1,2,3 and 5 Units)
2. R. Elmasri and S. Navathe ,”Fundamentals of Database Systems”, Pearson 7th
Edition,2017. (4thUnit)
REFERENCES:
1. J. D. Ullman,”Principles of Database and Knowledge – Base Systems”, Vol 1,
Computer Science Press ,Inc. New York, 1998.
1. Gupta G K, “Database Management Systems”, Tata McGraw Hill Education
Private Limited, New Delhi, 2011
1. Serge Abiteboul, Richard Hull, VictorVianu ,”Foundations of Databases”,
Addison-Wesley Publishing Company, 1995.
6. 1.Introduction to Database Management System
• The database is a collection of inter-related data which is
used to retrieve, insert and delete the data efficiently. It is also
used to organize the data in the form of a table, schema, views,
and reports, etc.
• A database-management system (DBMS) is a collection of interrelated
data and a set of programs to access those data.
• The collection of data referred to as the database which contains
information relevant to an enterprise.
• The primary goal of a DBMS is to provide a way to store and retrieve
database information that is both convenient and efficient
7. 1.Introduction to Database Management System
• Database Management System (DBMS): A software package/
system to facilitate the creation and maintenance of a
computerized database.
• It defines (data types, structures, constraints), construct
(storing data on some storage medium controlled by DBMS)
and manipulate (querying, update, report generation)
databases for various applications.
.
8. 1.Introduction to Database Management System
• A Database Management System (DBMS) is a software
package designed to store and manage databases:
1. Manages very large amounts of data.
2. Supports efficient access to very large amounts of data.
3. Supports concurrent access to very large amounts of data.
• Example: bank and its ATM machines.
4. Supports secure, atomic access to very large amounts of
data.
11. 1.Introduction to Database Management System
• Database systems are designed to manage large
bodies of information.
• Management of data involves both defining
structures for storage of information and
providing mechanisms for the manipulation of
information.
12. 1.Introduction to Database Management System
• The database system must ensure the safety of the information
stored, despite system crashes or attempts at unauthorized
access.
• If data are to be shared among several users, the system must
avoid possible anomalous results.
• Because information is so important in most organizations,
computer scientists have developed a large body of concepts and
techniques for managing data.
13. Advantages of DBMS
• Data independence
• Data independence refers characteristic of being
able to modify the schema at one level of the
database system without altering the schema at the
next higher level.
• Application programs should not be exposed to details of
data representation and storage, The DBMS provides an
abstract view of the data that hides such details.
14. Efficient Data Access
• A DBMS utilizes a variety of sophisticated
techniques to store and retrieve data
efficiently.
15. Data Integrity and Security
• If data is always accessed through the DBMS, the
DBMS can enforce integrity constraints.
• For example, before inserting salary information for an
employee, the DBMS can check that the department
budget is not exceeded.
• The DBMS can enforce access controls that govern
what data is visible to different classes of users.
16. Data Administration
• When several users share the data, centralizing
the administration of data can offer retrieval
efficient.
• DBA(Data base Administrator) responsible for
organizing the data representation to minimize
redundancy and for fine-tuning the storage of the
data to make retrieval efficient.
17. Concurrent Access and Crash Recovery
• A DBMS schedules concurrent accesses to the
data in such a manner that users can think of
the data as being accessed by only one user at
a time.
• The DBMS protects users from the effects of
system failures.
18. Reduced Application Development
Time
• The DBMS supports important functions that are
common to many applications accessing data in the
DBMS.
• DBMS applications are also likely to be more robust
than similar stand-alone applications because many
important tasks are handled by the DBMS
19. 2.Database System Applications
• Databases are widely used
• Banking: For customer information, accounts, and
loans, and banking transactions.
• Airlines: For reservations and schedule information.
• Universities: For student information, course
registrations, and grades.
20. 2.Database System Applications
• Credit card transactions: For purchases on credit cards and
generation of monthly statements.
• Telecommunication: For keeping records of calls made,
generating monthly bills, maintaining balances on prepaid
calling cards, and storing information about the
communication networks.
• Finance: For storing information about holdings, sales, and
purchases of financial instruments such as stocks and
bonds.
21. 2.Database System Applications
• Sales: For customer, product, and purchase information.
• Manufacturing: For management of supply chain and for
tracking production of items in factories, inventories of
items in warehouses/stores, and orders for items.
• Human resources: For information about employees,
salaries, payroll taxes and benefits, and for generation of
paychecks.
22. Database Systems versus File Systems
• Consider part of a savings-bank enterprise that keeps
information about all customers and savings accounts.
• One way to keep the information on a computer is to
store it in operating system files.
• To allow users to manipulate the information, the
system has a number of application programs that
manipulate the files
23. Database Systems versus File Systems
• System programmers wrote these application
programs to meet the needs of the bank.
• New application programs are added to the
system as the need arises.
• Thus, as time goes by, the system acquires
more files and more application programs.
24. Database Systems versus File Systems
• This typical file-processing system is supported by a
conventional operating system.
• The system stores permanent records in various files,
and it needs different application programs to extract
records from, and add records to, the appropriate files.
• Before database management systems (DBMSs) came
along, organizations usually stored information in file
systems.
25. Keeping organizational information in a file-processing system
has a number of major disadvantages
• Data redundancy and inconsistency.
• Since different programmers create the files and
application programs over a long period, the various
files are likely to have different formats and the
programs may be written in several programming
languages.
• The same information may be duplicated in several
places (files).
26. example
• The address and telephone number of a particular customer
may appear in a file that consists of savings-account records
and in a file that consists of checking-account records.
• This redundancy leads to higher storage and access cost.
• It may lead to data inconsistency.
• That is, the various copies of the same data may no longer
agree.
• For example, a changed customer address may be reflected in
savings-account records but not elsewhere in the system.
27. Difficulty in accessing data
• Suppose that one of the bank officers needs
to find out the names of all customers who
live within a particular postal-code area.
• The officer asks the data-processing
department to generate such a list.
28. Difficulty in accessing data
• conventional file-processing environments do
not allow needed data to be retrieved in a
convenient and efficient manner.
• More responsive data-retrieval systems are
required for general use.
29. Data isolation
• Because data are scattered in various files,
and files may be in different formats, writing
new application programs to retrieve the
appropriate data is difficult.
30. Integrity problems
• The data values stored in the database must satisfy certain types of
consistency constraints.
• For example, the balance of a bank account may never fall below a
prescribed amount (say, $100).
• Developers enforce these constraints in the system by adding
appropriate code in the various application programs.
• when new constraints are added, it is difficult to change the
programs to enforce them.
• The problem is compounded when constraints involve several data
items from different files.
31. Atomicity problems
• A computer system, like any other mechanical or electrical 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.
• Consider a program to transfer $50 from account A to account B.
• If a system failure occurs during the execution of the program, it is possible that
the $50 was removed from account A but was not credited to account B, resulting
in an inconsistent database state.
• Clearly, it is essential to database consistency that either both the credit and debit
occur, or that neither occur.
32. Atomicity problems
• That is, the funds transfer must be atomic—it
must happen in its entirety or not at all.
• It is difficult to ensure atomicity in a
conventional file-processing system.
33. Concurrent-access anomalies
• For the sake of overall performance of the system and faster
response, many systems allow multiple users to update the data
simultaneously.
• In this environment, interaction of concurrent updates may result in
inconsistent data.
• Consider bank account A, containing $500.
• If two customers withdraw funds (say $50 and $100 respectively)
from account A at about the same time, the result of the concurrent
executions may leave the account in an incorrect (or inconsistent)
state.
34. Concurrent-access anomalies
• Suppose that the programs executing on behalf of each withdrawal read the old
balance, reduce that value by the amount being withdrawn, and write the result
back.
• If the two programs run concurrently, they may both read the value $500, and write
back $450 and $400, respectively.
• Depending on which one writes the value last, the account may contain either $450
or $400, rather than the correct value of $350.
• Therefore, the system must maintain some form of supervision.
• In file systems supervision is difficult to provide because data may be accessed by
many different application programs that have not been coordinated previously.
35. Security problems
• Not every user of the database system should be able to access all
the data.
• For example, in a banking system, payroll personnel need to see
only that part of the database that has information about the various
bank employees.
• They do not need access to information about customer accounts.
• But, since application programs are added to the system in an ad hoc
manner, enforcing such security constraints is difficult.
36.
37. Data models
• A data model is a collection of conceptual tools for describing data, data
relationships, data semantics, and consistency constraints.
• The entity–relationship (E-R) model is a high-level data model. It is based
on a perception of a real world that consists of a collection of basic objects,
called entities, and of relationships among these objects.
• The relational model is a lower-level model. It uses a collection of tables to
represent both data and the relationships among those data.
• Today a vast majority of database products are based on the relational
model.
• Designers often formulate database schema design by first modeling data
at a high level, using the E-R model, and then translating it into the
relational model.
38. DBMS Database Models
• A Database model defines the logical design and structure of a
database and defines how data will be stored, accessed and
updated in a database management system.
• While the Relational Model is the most widely used database
model, there are other models too:
• Hierarchical Model
• Network Model
• Entity-relationship Model
• Relational Model
39. Data Models
• The structure of a database is the data model:
a collection of conceptual Tools for describing
data, data relationships, data semantics, and
consistency constraints.
• Data models provide a way to describe the
design of a database at the logical level.
40. 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.
• In this model, a child node will only have a single parent node.
• This model efficiently describes many real-world relationships like index of
a book, recipes etc.
• In hierarchical model, data is organized into tree-like structure with one
one-to-many relationship between two different types of data, for example,
one department can have many courses, many professors and of-course
many students.
42. Network Model
• This is an extension of the Hierarchical model. In this model data is
organized more like a graph, and are allowed to have more than one parent
node.
• In this database model data is more related as more relationships are
established in this database model. Also, as the data is more related, hence
accessing the data is also easier and fast.
• This database model was used to map many-to-many data relationships.
• This was the most widely used database model, before Relational Model
was introduced.
44. The Entity-Relationship Model
• The entity-relationship (E-R) data model is based on a
perception of a real world that consists of a collection of
basic objects, called entities, and of relationships among
these objects.
• An entity is a “thing” or “object” in the real world that is
distinguishable from other objects.
• For example, each person is an entity, and bank accounts
can be considered as entities.
45. The Entity-Relationship Model
• Entities are described in a database by a set of
attributes.
• For example, the attributes account-number and
balance may describe one particular account in a bank,
and they form attributes of the account entity set.
• Similarly, attributes customer-name, customer-street
address and customer-city may describe a customer
entity.
46. The Entity-Relationship Model
• A relationship is an association among several
entities.
• For example, a depositor relationship
associates a customer with each account.
47. Entity-relationship Model
• In this database model, relationships are created by
dividing object of interest into entity and its
characteristics into attributes.
• Different entities are related using relationships.
• E-R Models are defined to represent the relationships
into pictorial form to make it easier for different
stakeholders to understand.
• This model is good to design a database, which can
then be turned into tables in relational model.
48. Entity-relationship Model
• The overall logical structure (schema) of a database can be
expressed graphically by an E-R diagram, which is built up
from the following components
• Rectangles, which represent entity
• Ellipses, which represent attributes
• Diamonds, which represent relationships among entity sets
• Lines, which link attributes to entity sets and entity sets to
relationships
49. Entity-relationship Model
• Each component is labeled with the entity or
relationship that it represents
• consider part of a database banking system
consisting of customers and of the accounts
that these customers have
50. Entity-relationship Model
• The E-R diagram indicates that there are two
entity sets, customer and account, with
attributes.
• The diagram also shows a relationship
depositor between customer and account
52. Relational Model
• The relational model uses a collection of
tables to represent both data and the
relationships among those data.
• Each table has multiple columns, and each
column has a unique name.
53. Relational Model
• In this model, data is organised in two-dimensional tables and the
relationship is maintained by storing a common field.
• This model was introduced by E.F Codd in 1970, and since then it has been
the most widely used database model, infact, we can say the only database
model used around the world.
• The basic structure of data in the relational model is tables. All the
information related to a particular type is stored in rows of that table.
• Hence, tables are also known as relations in relational model.
54. Relational Model
• presents a sample relational database comprising three tables:
• One shows details of bank customers, the second shows accounts,
and the third shows which accounts belong to which customers.
• Each table contains records of a particular type.
• Each record type defines a fixed number of fields, or attributes.
• The columns of the table correspond to the attributes of the record
type
55. Relational Model
• a special character (such as a comma) may be used to
delimit the different attributes of a record, and another
special character (such as a newline character) may be
used to delimit records.
• The relational model hides such low-level
implementation details from database developers and
users.
56. Relational Model
• The relational model is at a lower level of
abstraction than the E-R model.
• Database designs are often carried out in the
E-R model, and then translated to the
relational model.
58. View of Data
• A database system is a collection of interrelated
files and a set of programs that allow users to
access and modify these files.
• A major purpose of a database system is to
provide users with an abstract view of the data.
• That is, the system hides certain details of how
the data are stored and maintained.
60. Data Abstraction
• For 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.
• Since many database-systems users are not computer
trained, developers hide the complexity from users through
several levels of abstraction, to simplify users’ interactions
with the system
61. Physical level
• The lowest level of abstraction describes how
the data are actually stored.
• The physical level describes complex low-level
data structures in detail.
62. Logical level
• The 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.
• Although implementation of the simple structures at the logical
level may involve complex physical-level structures, the user of the
logical level does not need to be aware of this complexity.
• Database administrators, who must decide what information to
keep in the database, use the logical level of abstraction.
63. View level
• The 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.
• Many users of the database system do not need all this information.
• They need to access only a part of the database.
• The view level of abstraction exists to simplify their interaction with the
system.
• The system may provide many views for the same database.
64.
65. View level
• account, with fields account-number and
balance
• employee, with fields employee-name and
salary
66. Example: view of data
• At the physical level, a customer, account, or
employee record can be described as a block
of consecutive storage locations (for example,
words or bytes).
• The language compiler hides this level of
detail from programmers.
67. Example: view of data
• Similarly, the database system hides many of
the lowest-level storage details from database
programmers.
• Database administrators may be aware of
certain details of the physical organization of
the data.
68. Example: view of data
• At the logical level, each record is described by
a type definition.
• Programmers using a programming language
work at this level of abstraction.
• Similarly, database administrators usually
work at this level of abstraction
69. Example: view of data
• at the view level, computer users see a set of application programs that hide
details of the data types.
• Similarly, at the view level, several views of the database are defined, and
database users see these views.
• In addition to hiding details of the logical level of the database, the views
also provide a security mechanism to prevent users from accessing certain
parts of the database.
• For example, tellers in a bank see only that part of the database that has
information on customer accounts.
• They cannot access information about salaries of employees.
70. Instances and Schemas
• Databases change over time as information is inserted
and deleted.
• The collection of information stored in the database at
a particular moment is called an instance of the
database.
• The overall design of the database is called the
database schema.
• Schemas are changed infrequently.
71.
72. Instances and Schemas
• A database schema corresponds to the variable
declarations (along with associated type definitions) in
a program.
• Each variable has a particular value at a given instant.
• The values of the variables in a program at a point in
time correspond to an instance of a database schema
73. Instances and Schemas
• Database systems have several schemas, partitioned according to
the levels of abstraction.
• The physical schema describes the database design at the physical
level.
• the logical schema describes the database design at the logical
level.
• A database may also have several schemas at the view level,
sometimes called subschemas, that describe different views of the
database
74. Instances and Schemas
• programmers construct applications by using the logical
schema.
• The physical schema is hidden beneath the logical schema, and
can usually be changed easily without affecting application
programs.
• Application programs are said to exhibit physical data
independence if they do not depend on the physical schema,
and thus need not be rewritten if the physical schema changes
75.
76.
77.
78.
79. Data Independence
• Applications insulated from how data is
structured and stored.
• Logical data independence: Protection from
changes in logical structure of data.
• Physical data independence: Protection from
changes in physical structure of data.
79
80. Levels of Abstraction
• Many views, single
conceptual (logical) schema
and physical schema.
– Views describe how users see
the data.
– Conceptual schema defines
logical structure
– Physical schema describes the
files and indexes used.
80
Physical Schema
Conceptual Schema
View 1 View 2 View 3
81. Database Languages
• A database system provides a data definition language
to specify the database schema and a data
manipulation language to express database queries
and updates.
• The data definition and data manipulation languages
are not two separate languages.
• instead they simply form parts of a single database
language, such as the widely used SQL language
82. Data-Definition Language
• Specify a database schema by a set of definitions
expressed by a special language called a data-
definition language (DDL).
• the following statement in the SQL language
defines the account table:
• Create table account(account-number
char(10),balance integer).
83. DDL
• DDL statement creates the account table.
• it updates a special set of tables called the
data dictionary or data directory.
84.
85. Database Languages
• A data dictionary contains metadata—that is,
data about data.
• The schema of a table is an example of metadata.
• A database system consults the data dictionary
before reading or modifying actual data.
86. Database Languages
• specify the storage structure and access methods
used by the database system by a set of
statements in a special type of DDL called a data
storage and definition language.
• These statements define the implementation
details of the database schemas, which are
usually hidden from the users
87. Database Languages
• The data values stored in the database must
satisfy certain consistency constraints.
• For example, suppose the balance on an
account should not fall below $100.
• The DDL provides facilities to specify such
constraints.
• The database systems check these constraints
every time the database is updated
88.
89. Data-Manipulation Language
• Data manipulation is
• The retrieval of information stored in the
database
• The insertion of new information into the
database
• The deletion of information from the database
• The modification of information stored in the
database
90. DML
• A data-manipulation language (DML) is a
language that enables users to access or
manipulate data as organized by the
appropriate data model.
• There are basically two types:
91. DML
• Procedural DMLs require a user to specify
what data are needed and how to get those
data.
• Declarative DMLs (also referred to as
nonprocedural DMLs) require a user to specify
what data are needed without specifying how
to get those data.
92. DML..
• Declarative DMLs are usually easier to learn
and use than are procedural DMLs.
• since a user does not have to specify how to
get the data, the database system has to
figure out an efficient means of accessing
data.
• The DML component of the SQL language is
nonprocedural
93. QUERY
• A query is a statement requesting the retrieval of information.
• The portion of a DML that involves information retrieval is
called a query language
• This query in the SQL language finds the name of the
customer whose customer-id is 192-83-7465:
• select customer.customer-name
• from customer
• where customer.customer-id = 192-83-7465
94. Database Users and Administrators
• A primary goal of a database system is to
retrieve information from and store new
information in the database.
• People who work with a database can be
categorized as database users or database
administrators
95.
96. Database Users and User Interfaces
• There are four different types of database-
system users, differentiated by the way they
expect to interact with the system.
• Different types of user interfaces have been
designed for the different types of users.
97. Naive users
• Naive users are unsophisticated users who interact with the
system by invoking one of the application programs that
have been written previously.
• For example, a bank teller who needs to transfer $50 from
account A to account B invokes a program called transfer.
• This program asks the teller for the amount of money to be
transferred, the account from which the money is to be
transferred, and the account to which the money is to be
transferred.
98. Naive users
• As another example, consider a user who wishes to find her
account balance over the World Wide Web. Such a user may access
a form, where she enters her account number.
• An application program at the Web server then retrieves the
account balance, using the given account number, and passes this
information back to the user.
• The typical user interface for naive users is a forms interface, where
the user can fill in appropriate fields of the form
99. Application programmers
• Application programmers are computer professionals who write application
programs.
• Application programmers can choose from many tools to develop user interfaces.
• Rapid application development (RAD) tools are tools that enable an application
programmer to construct forms and reports without writing a program.
• There are also special types of programming languages that combine imperative
control structures (for example, for loops, while loops and if-then-else statements)
with statements of the data manipulation language.
• These languages, sometimes called fourth-generation languages, include special
features to facilitate the generation of forms and the display of data on the screen.
• Most major commercial database systems include a fourth generation language.
100. 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.
• Analysts who submit queries to explore data in the database
fall in this category.
101. Sophisticated users
• Online analytical processing (OLAP) tools simplify analysts’ tasks by
letting them view summaries of data in different ways.
• For instance, an analyst can see total sales by region (for example, North,
South, East, and West), or by product, or by a combination of region and
product (that is, total sales of each product in each region).
• The tools also permit the analyst to select specific regions, look at data in
more detail (for example, sales by city within a region) or look at the data
in less detail (for example, aggregate products together by category).
• Another tools for analysts is data mining tools, which help them find
certain kinds of patterns in data
102. Specialized users
• Specialized users are sophisticated users who write
specialized database applications that do not fit into the
traditional data-processing framework.
• computer-aided design systems, knowledgebase and
expert systems, systems that store data with complex
data types (for example, graphics data and audio data),
and environment-modeling systems.
103. Database Administrator
• One of the main reasons for using DBMSs is
to have central control of both the data and the
programs that access those data.
• A person who has such central control over
the system is called a database administrator
(DBA).
104.
105. DBA Responsibilities
• Schema definition. The DBA creates the original database
schema by executing a set of data definition statements in the
DDL.
• Storage structure and access-method definition.
• Schema and physical-organization modification. The DBA
carries out changes to the schema and physical organization to
reflect the changing needs of the organization, or to alter the
physical organization to improve performance.
106. DBA Responsibilities
• Granting of authorization for data access. By granting
different types of authorization, the database administrator
can regulate which parts of the database various users can
access.
• The authorization information is kept in a special system
structure that the database system consults whenever
someone attempts to access the data in the system
107. DBA Responsibilities
• Routine maintenance. Examples of the database administrator’s
routine maintenance activities are:
• Periodically backing up the database, either onto tapes or onto remote
servers, to prevent loss of data in case of disasters such as flooding.
• Ensuring that enough free disk space is available for normal
operations, and upgrading disk space as required.
• Monitoring jobs running on the database and ensuring that
performance is not degraded by very expensive tasks submitted by
some users.
108. Database System Structure
• A database system is partitioned into modules
that deal with each of the responsibilities of the
overall system.
• The functional components of a database system
can be broadly divided into the storage manager
and the query processor components.
109. Storage Manager
• A storage manager is a program module that provides the interface between the
low level data stored in the database and the application programs and queries
submitted to the system.
• The storage manager is responsible for the interaction with the file manager.
• The raw data are stored on the disk using the file system, which is usually provided
by a conventional operating system.
• The storage manager translates the various DML statements into low-level file-
system commands.
• Thus, the storage manager is responsible for storing, retrieving, and updating data
in the database.
110. The storage manager components include
• Authorization and integrity manager, which tests for the satisfaction of
integrity constraints and checks the authority of users to access data.
• Transaction manager, which ensures that the database remains in a
consistent (correct) state despite system failures, and that concurrent
transaction executions proceed without conflicting.
• File manager, which manages the allocation of space on disk storage and
the data structures used to represent information stored on disk.
• Buffer manager, which is responsible for fetching data from disk storage
into main memory, and deciding what data to cache in main memory.
• The buffer manager is a critical part of the database system, since it enables
the database to handle data sizes that are much larger than the size of main
memory
111. storage manager
• The storage manager implements several data structures as
part of the physical system implementation
• Data files, which store the database itself.
• Data dictionary, which stores metadata about the structure of
the database, in particular the schema of the database.
• Indices, which provide fast access to data items that hold
particular values
112. The Query Processor
• The query processor components include
• DDL interpreter, which interprets DDL statements and records the definitions in
the data dictionary.
• DML compiler, which translates DML statements in a query language into an
evaluation plan consisting of low-level instructions that the query evaluation engine
understands.
• A query can usually be translated into any of a number of alternative evaluation
plans that all give the same result.
• The DML compiler also performs query optimization, that is, it picks the lowest
cost evaluation plan from among the alternatives.
• Query evaluation engine, which executes low-level instructions generated by the
DML compiler.