Chapter-2 Database System Concepts and ArchitectureKunal Anand
This document provides an overview of database management systems concepts and architecture. It discusses different data models including hierarchical, network, relational, entity-relationship, object-oriented, and object-relational models. It also describes the 3-schema architecture with external, conceptual, and internal schemas and explains components of a DBMS including users, storage and query managers. Finally, it covers database languages like DDL, DML, and interfaces like menu-based, form-based and graphical user interfaces.
This document discusses the entity-relationship (ER) model for conceptual database design. It defines key concepts like entities, attributes, relationships, keys, and participation constraints. Entities can be strong or weak, and attributes can be simple, composite, multi-valued, or derived. Relationships associate entities and can specify cardinality like one-to-one, one-to-many, or many-to-many. The ER model diagrams the structure and constraints of a database before its logical and physical implementation.
The document discusses the three levels of data abstraction in database management systems: the view level describes different views of data for users, the conceptual level defines how data is structured and related, and the physical level hides where data is actually stored on disk drives and managed by database administrators. Data abstraction involves hiding irrelevant details from users at different levels to provide customized views and achieve data independence between users and the physical storage of information.
The document discusses the key concepts of the relational model and relational databases. It defines relations (tables) and their components like attributes, tuples, domains, and keys. It explains the properties of relations including distinct relation names, single values per cell, distinct attribute names, and domains. It describes the different types of keys like super keys, candidate keys, primary keys, foreign keys, and composite keys. It also covers integrity rules including entity integrity which requires each table to have a unique primary key, and referential integrity which requires foreign keys to match the primary keys in other tables they reference.
The document discusses different forms of normalization used to eliminate anomalies from a database design. It summarizes:
1) Normalization is a method to remove anomalies like update, deletion, and insertion anomalies from a database to bring it to a consistent state.
2) First normal form (1NF) requires that each attribute contains a single, atomic value.
3) Second normal form (2NF) requires that non-key attributes are fully dependent on the primary key and that there are no partial dependencies.
4) Third normal form (3NF) extends 2NF by requiring no transitive dependencies on non-prime attributes and that non-key attributes are not transitively dependent on the primary key.
This document discusses different types of keys used in databases. It defines keys as attributes that uniquely identify rows in tables. It then explains various key types including primary keys, candidate keys, super keys, alternate keys, unique keys, composite keys, foreign keys, natural keys and surrogate keys. For each key type, it provides examples from sample tables and discusses their properties and how they differ from each other. The document concludes that databases generally only contain primary, foreign, unique and surrogate keys, while other key types are conceptual, and that each table requires a unique key to reliably access and identify data.
This document provides an overview of entity-relationship modeling as a first step for designing a relational database. It describes how to model entities, attributes, relationships, and participation constraints. Key aspects covered include using boxes to represent entity types, diamonds for relationship types, and labeling relationships with degrees. The document also discusses handling multi-valued attributes and deciding whether to model concepts as attributes or entity types.
The document provides an overview of key concepts in database management systems including:
- The benefits of using a DBMS over file systems such as data independence, data integrity, and concurrent access.
- The three levels of abstraction in a DBMS - physical, logical, and view level.
- Common data models including relational, entity-relationship, and object-oriented models.
- Database languages including data manipulation languages (DML) like SQL and data definition languages (DDL) to define schemas.
- Key components of a DBMS including storage management, query processing, and transaction management.
- Roles of database users and administrators.
Integrity constraints are rules used to maintain data quality and ensure accuracy in a relational database. The main types of integrity constraints are domain constraints, which define valid value sets for attributes; NOT NULL constraints, which enforce non-null values; UNIQUE constraints, which require unique values; and CHECK constraints, which specify value ranges. Referential integrity links data between tables through foreign keys, preventing orphaned records. Integrity constraints are enforced by the database to guard against accidental data damage.
The document outlines a 7-step process for mapping an entity-relationship (ER) schema to a relational database schema. The steps include mapping regular and weak entity types, binary 1:1, 1:N, and M:N relationship types, multivalued attributes, and n-ary relationship types to tables. For each type of schema element, the document describes how to represent it as a table with primary keys and foreign key attributes that preserve the relationships in the original ER schema.
The document discusses the relational database model. It was introduced in 1970 and became popular due to its simplicity and mathematical foundation. The model represents data as relations (tables) with rows (tuples) and columns (attributes). Keys such as primary keys and foreign keys help define relationships between tables and enforce integrity constraints. The relational model provides a standardized way of structuring data through its use of relations, attributes, tuples and keys.
The document discusses query processing and query optimization in database management systems. It contains the following key points:
1. Modern DBMS get user queries, translate them to an internal representation for data access, and efficiently produce meaningful results.
2. The query processor checks queries for errors, generates an equivalent relational algebra expression for data access, and forwards it to the query optimizer.
3. The query optimizer generates various execution plans and selects the most efficient plan that takes less time and resources. It uses techniques like eliminating Cartesian products, pushing selections and projections, etc.
Entity Relationship Diagrams (ERDs) are conceptual data models used in software engineering to model information systems. ERDs represent entities as rectangles, attributes as ellipses, and relationships as diamonds connecting entities. Attributes can be single-valued, multi-valued, composite, or derived. Relationships have cardinality like one-to-one, one-to-many, many-to-one, or many-to-many. Participation constraints and Codd's 12 rules of relational databases are also discussed in the document.
This document provides an overview of relational database management systems (RDBMS). It defines RDBMS as a system that structures data into tables with rows and columns, and can relate these tables through common fields. The key aspects covered include relational algebra operations like select, project, join; structured query language (SQL) for manipulating and retrieving data; and the advantages of RDBMS like supporting a tabular data structure, multi-user access, and imposing integrity constraints.
Joins in SQL are used to combine data from two or more tables based on common columns between them. There are several types of joins, including inner joins, outer joins, and cross joins. Inner joins return rows that match between tables, outer joins return all rows including non-matching rows, and cross joins return the cartesian product between tables.
This document provides an overview of NoSQL databases. It begins with a brief history of early database systems and their limitations in handling big data and complex relationships. It then discusses the rise of NoSQL databases to address these limitations by providing a more scalable and flexible solution. The main sections define what a NoSQL database is, describe its key characteristics like schema-less design and horizontal scalability, categorize the different types of NoSQL databases, outline advantages like flexibility and performance for big data, and discuss challenges to consider regarding consistency and learning curves.
The key characteristics of the database approach include: self-describing metadata that defines the database structure; insulation between programs and data through program-data and program-operation independence; data abstraction through conceptual data representation; support for multiple views of the data; and sharing of data through multiuser transaction processing that allows concurrent access while maintaining isolation and atomicity.
The document discusses the entity-relationship (ER) model for conceptual database design. It describes the basic constructs of the ER model including entities, attributes, relationships, keys, and various modeling choices. The ER model is useful for capturing the semantics of an application domain and producing a conceptual schema before logical and physical design.
This chapter discusses database normalization. It explains the different normal forms (1NF, 2NF, 3NF, BCNF, 4NF) and the normalization process of evaluating and correcting table structures to minimize data redundancies and anomalies. The chapter provides an example of an initial project table that violates normalization and walks through normalizing it to third normal form through identifying dependencies and breaking it into multiple tables. It emphasizes that normalization eliminates issues like partial and transitive dependencies to improve database design.
This document discusses different methods for organizing and indexing data stored on disk in a database management system (DBMS). It covers unordered or heap files, ordered or sequential files, and hash files as methods for physically arranging records on disk. It also discusses various indexing techniques like primary indexes, secondary indexes, dense vs sparse indexes, and multi-level indexes like B-trees and B+-trees that provide efficient access to records. The goal of file organization and indexing in a DBMS is to optimize performance for operations like inserting, searching, updating and deleting records from disk files.
The normal forms (NF) of relational database theory provide criteria for determining a table’s degree of vulnerability to logical inconsistencies and anomalies.
The document discusses the relational data model and query languages. It provides the following key points:
1. The relational data model organizes data into tables with rows and columns, where rows represent records and columns represent attributes. Relations between data are represented through tables.
2. Relational integrity constraints include key constraints, domain constraints, and referential integrity constraints to ensure valid data.
3. Relational algebra and calculus provide theoretical foundations for query languages like SQL. Relational algebra uses operators like select, project, join on relations, while relational calculus specifies queries using logic.
The document discusses several data models: hierarchical, network, relational, object-oriented, object-relational, deductive, and ER models. It provides descriptions of each model, including their key features, advantages, and disadvantages. The relational model is highlighted as the most popular currently due to its structural independence, conceptual simplicity, and powerful query capabilities using SQL. The ER model is also discussed as defining the conceptual view of databases through modeling real-world entities and relationships.
A data dictionary is a “virtual database” containing metadata (data about data). Data dictionary holds information about the database and the data that it stores.
Codd's Rules for Relational Database Management SystemsRajeev Srivastava
An introduction to Codd's 13 (12+1) rules defined by Dr. E.F. Codd for a True Relational Database Management Systems. ACID Properties of a Transaction.
This document discusses database users and administrators. It describes four types of database users: naive users who use pre-built applications, application programmers who build applications, sophisticated users who directly query the database, and specialized users who build complex applications. The document also outlines the roles and responsibilities of database administrators, including managing the database schema, storage, user authorizations, maintenance, and more. Different types of database administrators are defined based on their specific responsibilities like administrative tasks, development, data warehousing, or OLAP systems.
This document provides an overview of relational database concepts including the relational data model, ER diagrams, normalization, and database languages. It discusses how data is organized in tables with attributes, tuples, domains, and keys in the relational model. ER diagrams are used to conceptualize relationships between entities and attributes. Normalization is the process of structuring data to minimize redundancy through various normal forms up to 3NF. Common database languages are also summarized including DDL, DML, DCL, and TCL and their uses.
The document discusses the key differences between the file-based data model and the relational data model (RDBMS). The file-based model stores data as files without relationships between data elements, while the RDBMS stores tabular data that is related and can be accessed simultaneously. The RDBMS supports features like normalization, distributed databases, and multiple users. It also discusses some basic concepts of RDBMS like tables, fields, tuples, keys, and normalization.
The document provides an overview of key concepts in database management systems including:
- The benefits of using a DBMS over file systems such as data independence, data integrity, and concurrent access.
- The three levels of abstraction in a DBMS - physical, logical, and view level.
- Common data models including relational, entity-relationship, and object-oriented models.
- Database languages including data manipulation languages (DML) like SQL and data definition languages (DDL) to define schemas.
- Key components of a DBMS including storage management, query processing, and transaction management.
- Roles of database users and administrators.
Integrity constraints are rules used to maintain data quality and ensure accuracy in a relational database. The main types of integrity constraints are domain constraints, which define valid value sets for attributes; NOT NULL constraints, which enforce non-null values; UNIQUE constraints, which require unique values; and CHECK constraints, which specify value ranges. Referential integrity links data between tables through foreign keys, preventing orphaned records. Integrity constraints are enforced by the database to guard against accidental data damage.
The document outlines a 7-step process for mapping an entity-relationship (ER) schema to a relational database schema. The steps include mapping regular and weak entity types, binary 1:1, 1:N, and M:N relationship types, multivalued attributes, and n-ary relationship types to tables. For each type of schema element, the document describes how to represent it as a table with primary keys and foreign key attributes that preserve the relationships in the original ER schema.
The document discusses the relational database model. It was introduced in 1970 and became popular due to its simplicity and mathematical foundation. The model represents data as relations (tables) with rows (tuples) and columns (attributes). Keys such as primary keys and foreign keys help define relationships between tables and enforce integrity constraints. The relational model provides a standardized way of structuring data through its use of relations, attributes, tuples and keys.
The document discusses query processing and query optimization in database management systems. It contains the following key points:
1. Modern DBMS get user queries, translate them to an internal representation for data access, and efficiently produce meaningful results.
2. The query processor checks queries for errors, generates an equivalent relational algebra expression for data access, and forwards it to the query optimizer.
3. The query optimizer generates various execution plans and selects the most efficient plan that takes less time and resources. It uses techniques like eliminating Cartesian products, pushing selections and projections, etc.
Entity Relationship Diagrams (ERDs) are conceptual data models used in software engineering to model information systems. ERDs represent entities as rectangles, attributes as ellipses, and relationships as diamonds connecting entities. Attributes can be single-valued, multi-valued, composite, or derived. Relationships have cardinality like one-to-one, one-to-many, many-to-one, or many-to-many. Participation constraints and Codd's 12 rules of relational databases are also discussed in the document.
This document provides an overview of relational database management systems (RDBMS). It defines RDBMS as a system that structures data into tables with rows and columns, and can relate these tables through common fields. The key aspects covered include relational algebra operations like select, project, join; structured query language (SQL) for manipulating and retrieving data; and the advantages of RDBMS like supporting a tabular data structure, multi-user access, and imposing integrity constraints.
Joins in SQL are used to combine data from two or more tables based on common columns between them. There are several types of joins, including inner joins, outer joins, and cross joins. Inner joins return rows that match between tables, outer joins return all rows including non-matching rows, and cross joins return the cartesian product between tables.
This document provides an overview of NoSQL databases. It begins with a brief history of early database systems and their limitations in handling big data and complex relationships. It then discusses the rise of NoSQL databases to address these limitations by providing a more scalable and flexible solution. The main sections define what a NoSQL database is, describe its key characteristics like schema-less design and horizontal scalability, categorize the different types of NoSQL databases, outline advantages like flexibility and performance for big data, and discuss challenges to consider regarding consistency and learning curves.
The key characteristics of the database approach include: self-describing metadata that defines the database structure; insulation between programs and data through program-data and program-operation independence; data abstraction through conceptual data representation; support for multiple views of the data; and sharing of data through multiuser transaction processing that allows concurrent access while maintaining isolation and atomicity.
The document discusses the entity-relationship (ER) model for conceptual database design. It describes the basic constructs of the ER model including entities, attributes, relationships, keys, and various modeling choices. The ER model is useful for capturing the semantics of an application domain and producing a conceptual schema before logical and physical design.
This chapter discusses database normalization. It explains the different normal forms (1NF, 2NF, 3NF, BCNF, 4NF) and the normalization process of evaluating and correcting table structures to minimize data redundancies and anomalies. The chapter provides an example of an initial project table that violates normalization and walks through normalizing it to third normal form through identifying dependencies and breaking it into multiple tables. It emphasizes that normalization eliminates issues like partial and transitive dependencies to improve database design.
This document discusses different methods for organizing and indexing data stored on disk in a database management system (DBMS). It covers unordered or heap files, ordered or sequential files, and hash files as methods for physically arranging records on disk. It also discusses various indexing techniques like primary indexes, secondary indexes, dense vs sparse indexes, and multi-level indexes like B-trees and B+-trees that provide efficient access to records. The goal of file organization and indexing in a DBMS is to optimize performance for operations like inserting, searching, updating and deleting records from disk files.
The normal forms (NF) of relational database theory provide criteria for determining a table’s degree of vulnerability to logical inconsistencies and anomalies.
The document discusses the relational data model and query languages. It provides the following key points:
1. The relational data model organizes data into tables with rows and columns, where rows represent records and columns represent attributes. Relations between data are represented through tables.
2. Relational integrity constraints include key constraints, domain constraints, and referential integrity constraints to ensure valid data.
3. Relational algebra and calculus provide theoretical foundations for query languages like SQL. Relational algebra uses operators like select, project, join on relations, while relational calculus specifies queries using logic.
The document discusses several data models: hierarchical, network, relational, object-oriented, object-relational, deductive, and ER models. It provides descriptions of each model, including their key features, advantages, and disadvantages. The relational model is highlighted as the most popular currently due to its structural independence, conceptual simplicity, and powerful query capabilities using SQL. The ER model is also discussed as defining the conceptual view of databases through modeling real-world entities and relationships.
A data dictionary is a “virtual database” containing metadata (data about data). Data dictionary holds information about the database and the data that it stores.
Codd's Rules for Relational Database Management SystemsRajeev Srivastava
An introduction to Codd's 13 (12+1) rules defined by Dr. E.F. Codd for a True Relational Database Management Systems. ACID Properties of a Transaction.
This document discusses database users and administrators. It describes four types of database users: naive users who use pre-built applications, application programmers who build applications, sophisticated users who directly query the database, and specialized users who build complex applications. The document also outlines the roles and responsibilities of database administrators, including managing the database schema, storage, user authorizations, maintenance, and more. Different types of database administrators are defined based on their specific responsibilities like administrative tasks, development, data warehousing, or OLAP systems.
This document provides an overview of relational database concepts including the relational data model, ER diagrams, normalization, and database languages. It discusses how data is organized in tables with attributes, tuples, domains, and keys in the relational model. ER diagrams are used to conceptualize relationships between entities and attributes. Normalization is the process of structuring data to minimize redundancy through various normal forms up to 3NF. Common database languages are also summarized including DDL, DML, DCL, and TCL and their uses.
The document discusses the key differences between the file-based data model and the relational data model (RDBMS). The file-based model stores data as files without relationships between data elements, while the RDBMS stores tabular data that is related and can be accessed simultaneously. The RDBMS supports features like normalization, distributed databases, and multiple users. It also discusses some basic concepts of RDBMS like tables, fields, tuples, keys, and normalization.
The document provides an overview of the relational database model. It discusses key concepts such as relations (tables), attributes (columns), tuples (rows), keys, and normalization. The relational model uses tables to store data and establish relationships between tables using keys. It aims to provide independence between logical and physical data storage for flexibility and ease of use.
This document provides an introduction to relational databases and SQL. It defines what a database is and explains that data is stored in tables in a relational database. It describes the components of relational tables like primary keys, fields, and records. The document outlines the terminology used in relational modeling and discusses concepts like relations, attributes, domains and more. It also covers SQL, database management systems, keys, and provides an overview of the MySQL database.
Relations can be represented as two-dimensional data tables with rows and columns. The rows of a relation are called tuples.
The columns of a relation are called attributes. The attributes draw values from a domain (a legal pool of values).
This document discusses key concepts in relational database design and management. It defines relational databases as storing data in tables that are associated through shared attributes. It also describes entities, attributes, primary keys, foreign keys, and relationships. Database normalization is introduced as a process to minimize duplication and inconsistencies by breaking tables into multiple tables and defining relationships between them. Common database operations like create, read, update, and delete are also summarized.
This document discusses database concepts and the relational data model. It covers the following key points in 3 sentences:
A database is a collection of interrelated data that can be accessed and manipulated through a database management system (DBMS). The relational data model organizes data into tables with rows and columns and defines concepts like primary keys, foreign keys, and referential integrity to link tables together and maintain data integrity. Common DBMS components include schemas, queries, and database engines that interface between users/applications and the underlying data storage.
This document discusses the relational data model and SQL. It begins with an overview of relational database design using ER-to-relational mapping. It then discusses relational model concepts such as relations, attributes, tuples, domains and keys. It also covers integrity constraints and SQL components like data definition, data types, and retrieval, modification and deletion queries. The document outlines topics such as relational algebra, calculus, and features of SQL like views, triggers and transactions. It provides learning objectives and expected outcomes of understanding these concepts.
The document provides an overview of the DB2 database on mainframe systems. It discusses prerequisites for DB2 including mainframe concepts, COBOL, file handling, and VSAM. It then covers topics like database introduction, relational concepts, data definition language, SQL, DB2 objects, and more. The last section lists additional topics to be covered, including more on SQL statements, functions, complex queries, DML statements, dynamic SQL, and DB2 objects like indexes and views.
The document discusses database design processes and concepts. It covers:
1) The objectives of database design are to create logical and physical models of the proposed database system. The logical model focuses on data requirements while the physical model translates the logical design based on hardware/software constraints.
2) Proper database design is important as it provides a blueprint for how data is stored and accessed, defines application behavior, and meets user requirements. It can also improve performance.
3) The overall workflow involves requirement analysis, database designing including logical and physical models, and implementation including testing to ensure requirements are met.
The document defines and compares key database concepts:
1. A super key uniquely identifies records in a table but may contain unnecessary fields, while a candidate key is a minimal set of fields that uniquely identify records. The primary key is the chosen candidate key that links tables.
2. A foreign key in one table matches the primary key of another, linking the tables.
3. Other concepts covered include joins, indexes, hashing, triggers and assertions.
The document discusses different data models including hierarchical, network, and relational models. It provides details on each model such as their structure, advantages, and disadvantages. The relational model is the most popular and extensively used model. It represents data in tables with rows and columns, and defines relationships between tables using primary and foreign keys. The document also describes the basic building blocks of a relational model including entities, attributes, relationships, and constraints.
The document provides an overview of database design concepts including:
- Relational integrity rules like domain, entity, referential, and enterprise integrity
- Key constraints such as super keys, candidate keys, primary keys, foreign keys, and composite keys
- Relational views which provide a customized view of data without showing unnecessary information
- The difference between database schemas which define the structure and instances which are the actual data
- The three levels of database design including conceptual, logical and physical design
- Entity relationship diagrams and how they represent entities, attributes, and relationships between entities using connectors and cardinalities
Unit I Database concepts - RDBMS & ORACLEDrkhanchanaR
The document provides an overview of relational database management systems (RDBMS) and Oracle. It discusses database concepts such as the relational data model, database design including normalization, and integrity rules. It also outlines the contents of 5 units that will be covered, including Oracle, SQL, PL/SQL, and database objects like procedures and triggers. Key terms discussed include entities, attributes, relationships, and the different types of keys.
The document discusses the Entity-Relationship (ER) model for conceptual database design. It describes the key components of the ER model including entities, attributes, relationships, and keys. It also explains how the ER model maps to a relational schema and database, including the use of tables, rows, columns, primary keys, foreign keys, and integrity constraints. Referential integrity constraints are defined to link tables through foreign key to primary key relationships.
Structured system analysis and design Jayant Dalvi
The document discusses database design and normalization. It defines key concepts like entities, attributes, primary keys, foreign keys, and relationships. It explains the process of normalization including the three normal forms - 1NF, 2NF, and 3NF. An example of unnormalized data representing customer orders is used to illustrate how to normalize it through decomposition into multiple tables in each normal form. The final normalized tables eliminate data redundancy and anomalies through application of the normalization rules and principles.
Chapter-10 Transaction Processing and Error RecoveryKunal Anand
This chapter discusses the concept of concurrency in database systems. We talk about different concurrency control techniques along with error recovery.
This chapter deals with the importance of normalization in database management systems. We learn about the necessary criterion needed for normalization. We discuss different types of normal forms along with some sample examples.
In this chapter, we talk about basic concepts of relational database design. We talk about the concept of functional dependency, Armstrong's axioms, closures, and minimal cover.
Here, we talk about various relational algebra operations like select, project, union, intersection, minus, cartesian product, and join in database management systems.
Chapter-1 Introduction to Database Management SystemsKunal Anand
This chapter discusses the fundamental concepts of DBMS like limitations of the traditional file processing systems, characteristics of the database approach, different types of databases and users, advantages and disadvantages of DBMS.
ELectronics Boards & Product Testing_Shiju.pdfShiju Jacob
This presentation provides a high level insight about DFT analysis and test coverage calculation, finalizing test strategy, and types of tests at different levels of the product.
☁️ GDG Cloud Munich: Build With AI Workshop - Introduction to Vertex AI! ☁️
Join us for an exciting #BuildWithAi workshop on the 28th of April, 2025 at the Google Office in Munich!
Dive into the world of AI with our "Introduction to Vertex AI" session, presented by Google Cloud expert Randy Gupta.
International Journal of Distributed and Parallel systems (IJDPS)samueljackson3773
The growth of Internet and other web technologies requires the development of new
algorithms and architectures for parallel and distributed computing. International journal of
Distributed and parallel systems is a bimonthly open access peer-reviewed journal aims to
publish high quality scientific papers arising from original research and development from
the international community in the areas of parallel and distributed systems. IJDPS serves
as a platform for engineers and researchers to present new ideas and system technology,
with an interactive and friendly, but strongly professional atmosphere.
Concept of Problem Solving, Introduction to Algorithms, Characteristics of Algorithms, Introduction to Data Structure, Data Structure Classification (Linear and Non-linear, Static and Dynamic, Persistent and Ephemeral data structures), Time complexity and Space complexity, Asymptotic Notation - The Big-O, Omega and Theta notation, Algorithmic upper bounds, lower bounds, Best, Worst and Average case analysis of an Algorithm, Abstract Data Types (ADT)
We introduce the Gaussian process (GP) modeling module developed within the UQLab software framework. The novel design of the GP-module aims at providing seamless integration of GP modeling into any uncertainty quantification workflow, as well as a standalone surrogate modeling tool. We first briefly present the key mathematical tools on the basis of GP modeling (a.k.a. Kriging), as well as the associated theoretical and computational framework. We then provide an extensive overview of the available features of the software and demonstrate its flexibility and user-friendliness. Finally, we showcase the usage and the performance of the software on several applications borrowed from different fields of engineering. These include a basic surrogate of a well-known analytical benchmark function; a hierarchical Kriging example applied to wind turbine aero-servo-elastic simulations and a more complex geotechnical example that requires a non-stationary, user-defined correlation function. The GP-module, like the rest of the scientific code that is shipped with UQLab, is open source (BSD license).
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...Infopitaara
A feed water heater is a device used in power plants to preheat water before it enters the boiler. It plays a critical role in improving the overall efficiency of the power generation process, especially in thermal power plants.
🔧 Function of a Feed Water Heater:
It uses steam extracted from the turbine to preheat the feed water.
This reduces the fuel required to convert water into steam in the boiler.
It supports Regenerative Rankine Cycle, increasing plant efficiency.
🔍 Types of Feed Water Heaters:
Open Feed Water Heater (Direct Contact)
Steam and water come into direct contact.
Mixing occurs, and heat is transferred directly.
Common in low-pressure stages.
Closed Feed Water Heater (Surface Type)
Steam and water are separated by tubes.
Heat is transferred through tube walls.
Common in high-pressure systems.
⚙️ Advantages:
Improves thermal efficiency.
Reduces fuel consumption.
Lowers thermal stress on boiler components.
Minimizes corrosion by removing dissolved gases.
its all about Artificial Intelligence(Ai) and Machine Learning and not on advanced level you can study before the exam or can check for some information on Ai for project
The role of the lexical analyzer
Specification of tokens
Finite state machines
From a regular expressions to an NFA
Convert NFA to DFA
Transforming grammars and regular expressions
Transforming automata to grammars
Language for specifying lexical analyzers
In tube drawing process, a tube is pulled out through a die and a plug to reduce its diameter and thickness as per the requirement. Dimensional accuracy of cold drawn tubes plays a vital role in the further quality of end products and controlling rejection in manufacturing processes of these end products. Springback phenomenon is the elastic strain recovery after removal of forming loads, causes geometrical inaccuracies in drawn tubes. Further, this leads to difficulty in achieving close dimensional tolerances. In the present work springback of EN 8 D tube material is studied for various cold drawing parameters. The process parameters in this work include die semi-angle, land width and drawing speed. The experimentation is done using Taguchi’s L36 orthogonal array, and then optimization is done in data analysis software Minitab 17. The results of ANOVA shows that 15 degrees die semi-angle,5 mm land width and 6 m/min drawing speed yields least springback. Furthermore, optimization algorithms named Particle Swarm Optimization (PSO), Simulated Annealing (SA) and Genetic Algorithm (GA) are applied which shows that 15 degrees die semi-angle, 10 mm land width and 8 m/min drawing speed results in minimal springback with almost 10.5 % improvement. Finally, the results of experimentation are validated with Finite Element Analysis technique using ANSYS.
Fluid mechanics is the branch of physics concerned with the mechanics of fluids (liquids, gases, and plasmas) and the forces on them. Originally applied to water (hydromechanics), it found applications in a wide range of disciplines, including mechanical, aerospace, civil, chemical, and biomedical engineering, as well as geophysics, oceanography, meteorology, astrophysics, and biology.
It can be divided into fluid statics, the study of various fluids at rest, and fluid dynamics.
Fluid statics, also known as hydrostatics, is the study of fluids at rest, specifically when there's no relative motion between fluid particles. It focuses on the conditions under which fluids are in stable equilibrium and doesn't involve fluid motion.
Fluid kinematics is the branch of fluid mechanics that focuses on describing and analyzing the motion of fluids, such as liquids and gases, without considering the forces that cause the motion. It deals with the geometrical and temporal aspects of fluid flow, including velocity and acceleration. Fluid dynamics, on the other hand, considers the forces acting on the fluid.
Fluid dynamics is the study of the effect of forces on fluid motion. It is a branch of continuum mechanics, a subject which models matter without using the information that it is made out of atoms; that is, it models matter from a macroscopic viewpoint rather than from microscopic.
Fluid mechanics, especially fluid dynamics, is an active field of research, typically mathematically complex. Many problems are partly or wholly unsolved and are best addressed by numerical methods, typically using computers. A modern discipline, called computational fluid dynamics (CFD), is devoted to this approach. Particle image velocimetry, an experimental method for visualizing and analyzing fluid flow, also takes advantage of the highly visual nature of fluid flow.
Fundamentally, every fluid mechanical system is assumed to obey the basic laws :
Conservation of mass
Conservation of energy
Conservation of momentum
The continuum assumption
For example, the assumption that mass is conserved means that for any fixed control volume (for example, a spherical volume)—enclosed by a control surface—the rate of change of the mass contained in that volume is equal to the rate at which mass is passing through the surface from outside to inside, minus the rate at which mass is passing from inside to outside. This can be expressed as an equation in integral form over the control volume.
The continuum assumption is an idealization of continuum mechanics under which fluids can be treated as continuous, even though, on a microscopic scale, they are composed of molecules. Under the continuum assumption, macroscopic (observed/measurable) properties such as density, pressure, temperature, and bulk velocity are taken to be well-defined at "infinitesimal" volume elements—small in comparison to the characteristic length scale of the system, but large in comparison to molecular length scale
2. Chapter Outcome:
• After the completion of this chapter, the students
will be able to:
– Define different relational model concepts
– Explain several keys in relational model
– Describe constraints in relational model
– Identify the characteristics of relational databases
– Convert ER model into relational model
16 March 2021 2
3. Organization of this Chapter:
• Introduction
• Relational Model Concepts
• Keys in Relational Model
• Relational Model Constraints
• Characteristics of Relational Model
• Relational Database and its Schema
• Logical Database Design: ER to Relational
16 March 2021 3
4. Introduction
• The relational data model was introduced by Ted Codd of IBM
Research in 1970.
• The relational data model enables even the novice users to
understand the database, and it permits the use of simple, high
level language to query the data.
• It became very popular in short span of time due to its
simplicity and mathematical foundation.
• The first commercial implementation of the relational data
model became available in early 80s, since then the model has
been implemented in a large number of open source systems.
• Current popular commercial RDBMSs include DB2 from
IBM, Oracle from oracle, Sybase DBMS (now SAP), and SQL
server and Microsoft Access from Microsoft.
16 March 2021 4
5. Relational Model Concepts
• The main construct to represent the data in the relational
model is a “Relation” which is used to refer to a table.
• In a relation or table, a column header is called an
“attribute”, and a row is called a “tuple”.
• Mathematically, a tuple is a sequence of values. A relationship
between n values can be represented by n-tuples i.e. a tuple of
n values, which corresponds to a row in the table.
• A relational schema contains the name of the relation and
name of all columns or attributes.
• In a relational schema, a domain is referred to by the domain
name and has a set of associated values.
16 March 2021 5
6. contd..
• In the relational database system, the relational instance is
represented by a finite set of tuples. Relational instances do not
have duplicate tuples.
• The degree is the number of attributes/columns in a table,
whereas cardinality is the number of tuples/rows in a table.
• In a relation, each row has one or more attributes that can
identify the row in the relation uniquely. This is known as
relational key.
• NULL Values: The value which is not known or unavailable is
called NULL value. It is represented by blank space.
16 March 2021 6
8. The Instructor Relation
• The instructor relation is represented using the instructor
table, which stores information about the instructors.
• The instructor table has 4 column headers: ID, name,
dept_name, and salary i.e. the table has 4 attributes.
• Each row or tuple of this table records information about an
instructor, consisting of the fields specified in the table.
– t1 = <10101, Srinivasan, Comp. Sci., 65000>
• The relational schema for the instructor table can be
Instructor(ID char, name varchar2, dept_name
varchar2, salary integer)
• The instructor table has an attribute “ID” that can be
considered as relational key as it uniquely identifies each
tuple of the table.
16 March 2021 8
9. Keys in Relational Model
• Keys play an important role in the relational database.
• A key is a property of the relation, rather than of the tuple.
• It is used to uniquely identify any record or row of data from
the table. It is also used to establish and identify relationships
between tables.
• Usually, following types of keys exist in relational model
16 March 2021 9
10. Types of Key
• A super key is a set of one or more attributes that allows us to
uniquely identify a tuple in a relation i.e. table.
• A candidate key is a minimal set of super key that cannot have
any columns removed from it without losing the unique
identification property. This property is sometimes known as
minimality or (better) irreducibility.
• All candidate key is super key but the reverse is not true.
16 March 2021 10
11. contd..
• Primary key is a candidate key that is chosen by the database
designer as the principal means of identifying tuples in a table.
– The primary key should be chosen such that its attributes
are never or very rarely changed.
• The remaining candidate keys, except the primary key, are
called as Alternate keys.
• If none of the columns is a candidate for the primary key in a
table, sometimes database designers use an extra column as a
primary key instead of using a composite key. Such key is
known as the Surrogate key.
• Foreign key is the set of attributes that is used to refer to
another entity set having the primary key.
– In ER diagram, foreign key can not be represented. Foreign
Key is specifically for relational model.
16 March 2021 11
13. contd..
• Super Key (SK)
– For Example, the STUDENT table has a super key, SK as
(STUD_NO, STUD_PHONE)
• Candidate Key (CK)
– For Example, STUD_NO, and STUD_PHONE in
STUDENT relation.
– There can be more than one candidate key in a relation. For
Example, STUD_NO as well as STUD_PHONE both are
candidate keys for relation STUDENT.
– The candidate key can be simple (having only one
attribute) or composite as well.
• For Example, {STUD_NO, COURSE_NO} is a composite
candidate key for relation STUDENT_COURSE.
16 March 2021 13
14. contd..
• Primary Key
– For Example, STUD_NO as well as STUD_PHONE both
are candidate keys for relation STUDENT but STUD_NO
can be chosen as primary key. Why not
STUD_PHONE???
• Alternate Key
– For Example, STUD_NO as well as STUD_PHONE both
are candidate keys for relation STUDENT and STUD_NO
is selected as primary key. So, STUD_PHONE will be
alternate key.
• Foreign Key
– For Example, STUD_NO in STUDENT_COURSE is a
foreign key to STUD_NO in STUDENT relation.
16 March 2021 14
15. Relational Model Constraints
• Operational Constraints are enforced in the database by the
business rules or real world limitations.
• Relational Data Integrity: Candidate key is an attribute or set
of attributes that can uniquely identify a row or tuple in a table.
– Let R be the relation with attributes a1, a2 ... an . The set of
attributes of R is said to be a candidate key of R iff the
following two properties holds:
• Uniqueness: At any given time, no two distinct tuples or
rows of R have the same value for ai , the same value for
aj ...an
• Minimality: No proper subset of the set (ai , aj ... an ) has
the uniqueness property
16 March 2021 15
16. Integrity Constraints
• Integrity constraints are a set of rules that is used to maintain
the quality of information.
• Integrity constraints ensure that the data insertion, updation,
and other processes are performed in such a way that data
integrity is not affected.
• Thus, integrity constraint is used to guard against accidental
damage to the database.
16 March 2021 16
17. contd..
• Domain Constraint
– They can be defined as the definition of a valid set of
values for an attribute.
– The data type of domain includes string, character, integer,
time, date, currency, etc. The value of the attribute must be
available in the corresponding domain.
16 March 2021 17
18. contd..
• Entity Integrity Constraint
– The entity integrity constraint states that primary key value
can't be null. A table can contain a null value other than the
primary key field.
– This is because the primary key value is used to identify
individual rows in relation and if the primary key has a null
value, then we can't identify those rows.
16 March 2021 18
19. contd..
• Referential Integrity Constraint: A referential integrity
constraint is specified between two tables.
– In the Referential integrity constraints, if a foreign key in Table 1 refers
to the Primary Key of Table 2, then every value of the Foreign Key in
Table 1 must be null or be available in Table 2.
– A foreign key which references its own relation is known as recursive
foreign key.
16 March 2021 19
20. contd..
• Key constraints
– Keys are the entity set that is used to identify an entity
within its entity set uniquely.
– An entity set can have multiple keys, but out of which one
key will be the primary key. A primary key can contain a
unique and null value in the relational table.
16 March 2021 20
21. Database Languages
• Data Definition Language (DDL)
– DDL is used to define the conceptual schema.
– The output of the DDL is placed in the Data Dictionary that
contains the metadata(data about data).
– The data dictionary is considered to be a special type of
table, which can only be accessed and updated by the
database system itself.
– The database system consults the data dictionary, before
querying or modifying the actual data, for the validation
purpose.
– Commands: CREATE, ALTER, DROP, RENAME &
TRUNCATE
16 March 2021 21
22. contd..
• DML (Data Manipulation Language)
– DML is used to manipulate data in the database.
– A query is a statement in the DML that requests the
retrieval of data from the database.
– Commands: SELECT, INSERT, UPDATE & DELETE
• DCL (Data Control Languages)
•DCL allows in changing the permissions on database
structures
•Commands: GRANT & REVOKE
• TCL (Transaction Control Language)
•TCL allows permanently recording the changes made to the
rows stored in a table or undoing such changes
•Commands: COMMIT, ROLLBACK & SAVEPOINT
16 March 2021 22
23. Characteristics of Relational Database
• Relational database consists of multiple relations or tables.
• The information about an enterprise is broken up into parts,
with each relation storing one part of the information
• The characteristics of relational database is expressed by
Codd in the form of a set of rules that is widely known as
CODD's Rules.
• CODD's Rules
– Rule 0: A relational system should be able to manage
databases, entirely through its relational capabilities.
16 March 2021 23
24. contd..
– Rule 1: Information representation
• The entire information is explicitly and logically
represented by the data values of the tables in the
relational data model.
– Rule 2: Guaranteed access
• In relational model, the interaction of each row and
column will have one and only one value of data (or
NULL value).
• Each value of data must be addressable via the
combination of a table name, primary key value and the
column name.
– Rule 3: Systematic treatment of NULL values
• NULL values are supported in fully relational DBMS
for to represent missing information and inapplicable
information in a systematic way independent of data
type.
16 March 2021 24
25. contd..
– Rule 4: Database description rule
• The database description is represented at the logical level
in the same way as ordinary data, so that authorized users
can apply the same relational language to its interrogation
as they apply to the regular data.
• This means, the RDBMS must have a data dictionary.
• Rule 5: Comprehensive data sub-language
– The RDBMS should have its own extension of SQL.
– The SQL should support Data Definition, View Definition,
Data Manipulation, Integrity Constraint, and Authorization.
• Rule 6: Views updation
– All views that are theoretically updatable are also updatable by
the system. Similarly, the views which are theoretically non-
updatable are also non-updatable by the database system.
16 March 2021 25
26. contd..
• Rule 7: High-level update, insert, deletes
– A RDBMS should not only support retrieval of data as
relational sets, but also insertion, updation and deletion of
data as a relational set.
• Rule 8: Physical data independence
– Application programs and terminal activities are not
disturbed if any changes are made either to storage
representations or access methods.
• Rule 9: Logical data independence
– User programs and the user should not be aware of any
changes to the structure of the tables such as the addition of
extra columns.
16 March 2021 26
27. contd..
• Rule 10: Distribution independence
– RDBMS has distribution independence. The RDBMS may
spread across more than one system and across several
networks. However to the end-user, the tables should appear
no different to those that are local.
• Rule 11: Integrity Rules
– Integrity rules must be supported by the database and the
constraints must be stored within the catalogue, separate
from the application.
• Rule 12: Data integrity cannot be subverted
– If a relational system has a low-level language, that low
level cannot be used to subvert or bypass the integrity
rules.
16 March 2021 27
28. Relational Database and its Schema
• Relational database consists of multiple relations or tables.
• The information about an enterprise is broken up into parts,
with each relation storing one part of the information.
• A relational schema contains the name of the relation and
name of all columns or attributes.
• For the complete database, it is known as relational database
schema that is actually a collection of different schemas that
refers to different relations or tables available in the database.
16 March 2021 28
29. contd..
• For example: A UNIVERSITY database can have a relational
database schema as below:
– student(ID, name, dept_name, tot_cred)
– advisor(s_id,i_id)
– teaches(ID, course_ID, sec_ID, semester, year)
– takes(ID, course_ID,sec_ID,semester, year, grade)
– section(course_ID, sec_ID, semester, year, building, room_no,
time_slot_id)
– timeslot(time_slot_id, day, start_time, end_time)
– prereq(course_ID, prereq_ID)
– classroom(building, room_number,capacity)
– department(dept_name, building, budget)
– instructor(ID, name, dept_name, salary)
– course(course_ID, title,dept_name,credits)
16 March 2021 29
31. Conversion of ER Diagram to Relational
Schema
• A database that conforms to an ER diagram can be represented
by a collection of relational schemas.
• Both, the ER model and Relational data model are abstract i.e.
logical representations of real-world enterprises.
• Converting Strong entity types
Each entity type becomes a table
Each single-valued attribute becomes a column
Derived attributes are ignored
Composite attributes are represented by components
Multi-valued attributes are represented by a separate table
The key attribute of the entity type becomes the primary
key of the table
16 March 2021 31
34. Converting Relationships
• The way relationships are represented depends on the
cardinality and the degree of the relationship.
• The possible cardinalities are:
1:1, 1:N, N:1, M:N
• The degrees are:
Unary
Binary
Ternary …
16 March 2021 34
43. Case Study: Company Database
• Problem Statement: The COMPANY database problem has
been discussed in Ch-3: Data Modeling using ER Model.
• The ER details of the Company Database is as below:
– EMPLOYEE (Entity Type)
• Attribute: Emp_name, Emp_ID, SSN, age, address,
gender, salary, DOB, and supervisor
– DEPARTMENT (Entity Type)
• Attribute: Name, Number, Location, Manager, and
Manager_start_date
– PROJECT (Entity Type)
• Attribute: Name, Number, Location, Controlling_dept
– DEPENDENT (Entity Type)
• Attribute: Name, gender, DOB, Employee,
Relationship
16 March 2021 43
44. contd..
– MANAGES:
• Binary and 1:1 Cardinality
• Entity types: EMPLOYEE and DEPARTMENT
• Participation: EMPLOYEE (Partial); DEPARTMENT
(Total)
– WORKS_FOR:
• Binary and N:1 Cardinality
• Entity types: EMPLOYEE and DEPARTMENT
– CONTROLS:
• Binary and 1:N Cardinality
• Entity types: DEPARTMENT and PROJECT
16 March 2021 44
45. contd..
– SUPERVISION:
• Unary and 1:N Cardinality
• Entity types: EMPLOYEE
– WORKS_ON:
• Binary and M:N Cardinality
• Entity types: EMPLOYEE and PROJECT
– DEPENDENTS_OF:
• Binary and 1:N Cardinality
• Entity types: EMPLOYEE and DEPENDENT
16 March 2021 45
46. Case Study: Relational Schema
• Employee(Emp_name, Emp_ID, SSN, address, gender, salary,
DOB, supervisor, Dept_ID)
• Department(Name, Dept_ID, Location, Manager, and
Manager_start_date)
• Project(Name, Proj_ID, Location, Controlling_dept)
• Dependent(Name, gender, DOB, Relationship, Emp_ID)
• Works_On(Emp_ID, Proj_ID, no_of_hrs, supervisor)
Note: Attributes in “Red” are the FOREIGN KEY in that table
16 March 2021 46
48. Representation of Generalization/Specialization
• In case of generalization/specialization-related ER diagram,
one schema will be constructed for the generalized entity set
and the schemas for each of the specialized entity sets
• Person = (person_id, name, address)
• Employee = (emp_id, salary)
• Customer = (cust_id, credit_rating)
16 March 2021 48
49. contd..
• When the generalization/specialization is a disjointness case,
the schemas are constructed only for the specialized entity sets
– Employee = (employee_id, name, address, salary)
– Customer = (customer_id, name, address, credit_rating)
• Representation of Aggregation
– To represent aggregation, create a schema containing the
primary key of the aggregated relationship, primary key of
the associated entity set and descriptive attributes (if any)
16 March 2021 49