This document provides an overview of the relational model and relational database concepts. It defines key terms like relation schemas, attributes, domains, tuples, keys, and foreign keys. It also explains relational algebra operations like select, project, join, and aggregate functions. Examples of relational queries on banking database relations like accounts, customers, loans are provided to illustrate concepts. The document is intended to help students learn and practice relational database and query language concepts.
CHAPTER 2 DBMS IN EASY WAY BY MILAN PATELShashi Patel
The document discusses the relational model for database management. It provides details on the structure of relational databases including domains, relations, and schemas. It describes fundamental relational algebra operations like selection, projection, join, and set operations. It also covers tuple and domain relational calculus as non-procedural query languages. The document provides examples of queries and operations on sample relations to illustrate relational concepts.
The document provides an overview of the relational model and relational algebra used in relational databases. It defines key concepts like relations, tuples, attributes, domains, schemas, instances, keys, and normal forms. It also explains the six basic relational algebra operations - select, project, union, difference, cartesian product, and rename - and how they can be composed to form complex queries. Examples of relations and queries involving operations like selection, projection, joins are provided to illustrate relational algebra.
The document defines key concepts in relational databases such as super keys, candidate keys, and primary keys. It provides an example table to demonstrate how these concepts apply. The document also lists some common relational algebra operations and provides examples of how they can be used to write queries on sample databases.
This document discusses query languages in database management systems. It covers the main categories of query languages: procedural languages like relational algebra, and non-procedural languages like tuple and domain relational calculus. Relational algebra operators like selection, projection, union, and join are defined. Example queries are provided in both relational algebra and relational calculus formats. Functional dependencies, candidate keys, and the closure of attribute sets under a set of functional dependencies are also explained.
The document discusses relational algebra and accessing MySQL databases. It covers fundamental relational algebra operations like selection, projection, union, set difference, and cartesian product. It also describes how to create tables in a MySQL database, submit SQL queries, and access the database from the command line. Basic concepts like relations, attributes, tuples, schemas, and keys are defined. Examples are provided to illustrate relational algebra operations.
Relational algebra is a collection of operations to manipulate or access tables. It includes set-oriented operations like selection, projection, join, division, as well as native relational operations like rename and assignment. Additional relational operators like aggregate functions, grouping, and outer joins were added to enhance its expressive power.
The document provides an overview of Query-by-Example (QBE) and Datalog, two relational query languages. QBE allows graphical queries to be expressed "by example" using relation templates. It supports queries on single and multiple relations, negation, conditions, ordering results, and aggregate functions. Datalog is a logic-based query language based on rules that define views. It allows recursion and negation. Key features include safety and the power of recursive queries.
The document provides an overview of relational algebra and database concepts including:
- The basic structure of relations and relation schemas using an example of customer data.
- Key concepts like primary keys, foreign keys, and relationships between relations.
- The six basic relational algebra operations - select, project, union, set difference, cartesian product, and rename. Examples are given for each.
- Additional relational algebra operations like set intersection, natural join, division, and assignment are described along with banking examples.
- The document concludes with a mention of extended relational algebra operations like generalized projection, aggregate functions, and outer join.
CHAPTER 2 DBMS IN EASY WAY BY MILAN PATELShashi Patel
The document discusses the relational model for database management. It provides details on the structure of relational databases including domains, relations, and schemas. It describes fundamental relational algebra operations like selection, projection, join, and set operations. It also covers tuple and domain relational calculus as non-procedural query languages. The document provides examples of queries and operations on sample relations to illustrate relational concepts.
The document provides an overview of the relational model and relational algebra used in relational databases. It defines key concepts like relations, tuples, attributes, domains, schemas, instances, keys, and normal forms. It also explains the six basic relational algebra operations - select, project, union, difference, cartesian product, and rename - and how they can be composed to form complex queries. Examples of relations and queries involving operations like selection, projection, joins are provided to illustrate relational algebra.
The document defines key concepts in relational databases such as super keys, candidate keys, and primary keys. It provides an example table to demonstrate how these concepts apply. The document also lists some common relational algebra operations and provides examples of how they can be used to write queries on sample databases.
This document discusses query languages in database management systems. It covers the main categories of query languages: procedural languages like relational algebra, and non-procedural languages like tuple and domain relational calculus. Relational algebra operators like selection, projection, union, and join are defined. Example queries are provided in both relational algebra and relational calculus formats. Functional dependencies, candidate keys, and the closure of attribute sets under a set of functional dependencies are also explained.
The document discusses relational algebra and accessing MySQL databases. It covers fundamental relational algebra operations like selection, projection, union, set difference, and cartesian product. It also describes how to create tables in a MySQL database, submit SQL queries, and access the database from the command line. Basic concepts like relations, attributes, tuples, schemas, and keys are defined. Examples are provided to illustrate relational algebra operations.
Relational algebra is a collection of operations to manipulate or access tables. It includes set-oriented operations like selection, projection, join, division, as well as native relational operations like rename and assignment. Additional relational operators like aggregate functions, grouping, and outer joins were added to enhance its expressive power.
The document provides an overview of Query-by-Example (QBE) and Datalog, two relational query languages. QBE allows graphical queries to be expressed "by example" using relation templates. It supports queries on single and multiple relations, negation, conditions, ordering results, and aggregate functions. Datalog is a logic-based query language based on rules that define views. It allows recursion and negation. Key features include safety and the power of recursive queries.
The document provides an overview of relational algebra and database concepts including:
- The basic structure of relations and relation schemas using an example of customer data.
- Key concepts like primary keys, foreign keys, and relationships between relations.
- The six basic relational algebra operations - select, project, union, set difference, cartesian product, and rename. Examples are given for each.
- Additional relational algebra operations like set intersection, natural join, division, and assignment are described along with banking examples.
- The document concludes with a mention of extended relational algebra operations like generalized projection, aggregate functions, and outer join.
The document provides an overview of the relational model and relational algebra used in relational databases. It defines key concepts like relations, tuples, attributes, domains, schemas, instances, keys, and normal forms. It also explains the six basic relational algebra operations - select, project, union, difference, cartesian product, and rename - and how they can be composed to form complex queries. Examples of relations and queries involving operations like selection, projection, joins are provided to illustrate relational algebra.
This document provides an overview of SQL (Structured Query Language) including its history, data definition and manipulation capabilities. Key topics covered include SQL's data types, basic queries using SELECT, FROM and WHERE clauses, joins, aggregation, null values, triggers and indexes. The document also discusses SQL standards over time and commercial database implementations of SQL features.
The document discusses various concepts in relational databases including:
- Relation schemas define the structure of relations with attributes.
- Relations are sets of tuples that conform to a relation schema.
- Keys such as candidate keys and primary keys uniquely identify tuples.
- Foreign keys in one relation refer to primary keys in another.
- Relational algebra operators manipulate relations, including select, project, join, union and more.
The document discusses key concepts in entity-relationship modeling including:
- Entity sets represent collections of similar real-world objects or entities with common attributes. Relationship sets define associations between two or more entities.
- Attributes describe entities and can be simple, composite, single-valued, multivalued, or derived.
- ER diagrams use standard notations to represent these concepts including entities as rectangles, relationships as diamonds, and different lines and crow's feet to denote attribute types and cardinalities in relationships.
Dbms ii mca-ch5-ch6-relational algebra-2013Prosanta Ghosh
The document discusses relational algebra, which defines a set of operations for the relational model. The relational algebra operations can be divided into two groups: set operations from mathematical set theory including UNION, INTERSECTION, and SET DIFFERENCE; and operations developed specifically for relational databases including SELECT, PROJECT, and JOIN. The six basic relational algebra operators are SELECT, PROJECT, UNION, INTERSECTION, SET DIFFERENCE, and CARTESIAN PRODUCT. RELATIONAL expressions allow sequences of these operations to be combined to retrieve and manipulate data from relations.
This document discusses the relational model and its core concepts. It defines relations as sets of tuples with attributes, and describes relation schemas, instances, keys such as candidate keys and foreign keys. It also introduces the concept of a relational database containing multiple relations and discusses query languages for retrieving information from the database.
SQL is a standard language used to communicate with relational database management systems. It allows users to define, manipulate, and query data within these databases. The basic structure of an SQL query consists of SELECT, FROM, and WHERE clauses that correspond to operations in relational algebra like projection, Cartesian product, and selection. SQL provides tools for managing data like DDL/DML commands, views, aggregates, and subqueries to retrieve and analyze data flexibly.
Lecture 06 relational algebra and calculusemailharmeet
The document discusses data manipulation languages (DML) for databases. There are two main types of DML: navigational/procedural and non-navigational/non-procedural. Relational algebra is a non-navigational DML defined by Codd that uses algebraic operations like selection, projection, join, etc. on tables. Relational calculus is also a non-navigational DML that defines new relations in terms of predicates on tuple variables ranging over named relations.
The document discusses relational database design and normalization. It covers first normal form, functional dependencies, and decomposition. The goal of normalization is to avoid data redundancy and anomalies. First normal form requires attributes to be atomic. Functional dependencies specify relationships between attributes that must be preserved. Decomposition breaks relations into smaller relations while maintaining lossless join properties. Higher normal forms like Boyce-Codd normal form and third normal form further reduce redundancy.
Database Design and Normalization TechniquesNishant Munjal
The document discusses database normalization and its goals. It defines various normalization forms including first, second, third normal forms and Boyce-Codd normal form. It explains concepts like functional dependencies, transitive dependencies and multi-valued dependencies. Examples are given to illustrate anomalies like update, deletion and insertion anomalies that can occur without normalization. The benefits of normalization in removing redundancy and ensuring data integrity are also highlighted.
The document discusses relational algebra, which is a mathematical system used to represent queries on relational databases. It describes the core relational algebra operators like selection, projection, join, and set operations. It also introduces additional operators like renaming and theta joins. Expression trees are presented as a way to visually represent complex sequences of relational algebra operations used to query multiple relations.
This document discusses relational algebra operations including select, project, union, set difference, cartesian product, and rename. It provides examples of how to write queries using these operations on sample relations like loan and borrower. The select operation filters tuples based on a predicate, project returns a relation with some attributes removed, union combines the tuples from two relations, set difference returns tuples in one relation not in another, cartesian product combines all tuples from two relations, and rename assigns a new name to the result of an expression. The goal is to help students understand relational algebra and how to write queries using its basic operations.
This document provides the specification for the Decaf programming language that will be used in a compiler course project. Decaf is an object-oriented language similar to C++ and Java, but with a simplified feature set to make the compiler projects manageable. The specification defines Decaf's lexical elements, keywords, types, variables, arrays, scoping rules, and grammar. Key points are that Decaf supports classes, interfaces, inheritance, and dynamic memory allocation using NewArray.
The document discusses relational algebra and its operations. It begins with an introduction to relational algebra, noting that it is a collection of operations performed on relations that result in another relation. It then discusses some examples of set operations like union, intersection, difference performed on sample tables. It also discusses unary operations like selection and projection, providing examples. It describes join operations that combine two tables. It concludes with discussing aggregate functions that can be applied to columns and rows.
The document discusses additional operations that can be performed in relational algebra beyond the fundamental operations. These additional operations - set intersection, natural join, division, and assignment - simplify common queries without adding expressive power. The document also covers extended relational algebra operations like generalized projection, aggregate functions, and outer joins.
This document discusses structures and unions in C++. It defines a structure as a collection of related data items of different types stored together in memory. Structures allow defining custom data types that group various member variables. Unions also define custom data types but allow different types of variables to share the same memory space, taking up only as much space as its largest member. The document provides examples of declaring, defining, initializing, accessing members, and using structures and unions in C++ programs. It also compares the key differences between structures and unions.
The document provides an overview of the relational model used in database management systems. It defines key concepts like relations, attributes, tuples, domains, schemas, keys, and foreign keys. It also describes common relational algebra operations like select, project, join, union, and set differences. Examples are provided to illustrate how these operations work on relations. Additional topics covered include query languages, normalization, and modeling a banking example database using these concepts.
The document describes the relational model for relational databases. It discusses the structure of relational databases including relations, tuples, attributes, domains, keys and relation schemas. It also describes the relational algebra query language including operators like select, project, join, union and set differences. Examples are provided to illustrate how to write queries using these operators to retrieve and manipulate data from relations that model real-world entities and relationships, like customers, accounts and loans in a banking example.
The document describes the relational model for databases. It defines key concepts like relations, attributes, tuples, domains, schemas, keys, and foreign keys. It explains basic relational algebra operations like select, project, join, union, difference, and cartesian product. It provides examples of how to express queries using these operations on sample relations from a banking database. Additional relational algebra operations like rename, intersection, and natural join are also introduced.
The document provides an overview of the relational model and relational algebra used in relational databases. It defines key concepts like relations, tuples, attributes, domains, schemas, instances, keys, and normal forms. It also explains the six basic relational algebra operations - select, project, union, difference, cartesian product, and rename - and how they can be composed to form complex queries. Examples of relations and queries involving operations like selection, projection, joins are provided to illustrate relational algebra.
This document provides an overview of SQL (Structured Query Language) including its history, data definition and manipulation capabilities. Key topics covered include SQL's data types, basic queries using SELECT, FROM and WHERE clauses, joins, aggregation, null values, triggers and indexes. The document also discusses SQL standards over time and commercial database implementations of SQL features.
The document discusses various concepts in relational databases including:
- Relation schemas define the structure of relations with attributes.
- Relations are sets of tuples that conform to a relation schema.
- Keys such as candidate keys and primary keys uniquely identify tuples.
- Foreign keys in one relation refer to primary keys in another.
- Relational algebra operators manipulate relations, including select, project, join, union and more.
The document discusses key concepts in entity-relationship modeling including:
- Entity sets represent collections of similar real-world objects or entities with common attributes. Relationship sets define associations between two or more entities.
- Attributes describe entities and can be simple, composite, single-valued, multivalued, or derived.
- ER diagrams use standard notations to represent these concepts including entities as rectangles, relationships as diamonds, and different lines and crow's feet to denote attribute types and cardinalities in relationships.
Dbms ii mca-ch5-ch6-relational algebra-2013Prosanta Ghosh
The document discusses relational algebra, which defines a set of operations for the relational model. The relational algebra operations can be divided into two groups: set operations from mathematical set theory including UNION, INTERSECTION, and SET DIFFERENCE; and operations developed specifically for relational databases including SELECT, PROJECT, and JOIN. The six basic relational algebra operators are SELECT, PROJECT, UNION, INTERSECTION, SET DIFFERENCE, and CARTESIAN PRODUCT. RELATIONAL expressions allow sequences of these operations to be combined to retrieve and manipulate data from relations.
This document discusses the relational model and its core concepts. It defines relations as sets of tuples with attributes, and describes relation schemas, instances, keys such as candidate keys and foreign keys. It also introduces the concept of a relational database containing multiple relations and discusses query languages for retrieving information from the database.
SQL is a standard language used to communicate with relational database management systems. It allows users to define, manipulate, and query data within these databases. The basic structure of an SQL query consists of SELECT, FROM, and WHERE clauses that correspond to operations in relational algebra like projection, Cartesian product, and selection. SQL provides tools for managing data like DDL/DML commands, views, aggregates, and subqueries to retrieve and analyze data flexibly.
Lecture 06 relational algebra and calculusemailharmeet
The document discusses data manipulation languages (DML) for databases. There are two main types of DML: navigational/procedural and non-navigational/non-procedural. Relational algebra is a non-navigational DML defined by Codd that uses algebraic operations like selection, projection, join, etc. on tables. Relational calculus is also a non-navigational DML that defines new relations in terms of predicates on tuple variables ranging over named relations.
The document discusses relational database design and normalization. It covers first normal form, functional dependencies, and decomposition. The goal of normalization is to avoid data redundancy and anomalies. First normal form requires attributes to be atomic. Functional dependencies specify relationships between attributes that must be preserved. Decomposition breaks relations into smaller relations while maintaining lossless join properties. Higher normal forms like Boyce-Codd normal form and third normal form further reduce redundancy.
Database Design and Normalization TechniquesNishant Munjal
The document discusses database normalization and its goals. It defines various normalization forms including first, second, third normal forms and Boyce-Codd normal form. It explains concepts like functional dependencies, transitive dependencies and multi-valued dependencies. Examples are given to illustrate anomalies like update, deletion and insertion anomalies that can occur without normalization. The benefits of normalization in removing redundancy and ensuring data integrity are also highlighted.
The document discusses relational algebra, which is a mathematical system used to represent queries on relational databases. It describes the core relational algebra operators like selection, projection, join, and set operations. It also introduces additional operators like renaming and theta joins. Expression trees are presented as a way to visually represent complex sequences of relational algebra operations used to query multiple relations.
This document discusses relational algebra operations including select, project, union, set difference, cartesian product, and rename. It provides examples of how to write queries using these operations on sample relations like loan and borrower. The select operation filters tuples based on a predicate, project returns a relation with some attributes removed, union combines the tuples from two relations, set difference returns tuples in one relation not in another, cartesian product combines all tuples from two relations, and rename assigns a new name to the result of an expression. The goal is to help students understand relational algebra and how to write queries using its basic operations.
This document provides the specification for the Decaf programming language that will be used in a compiler course project. Decaf is an object-oriented language similar to C++ and Java, but with a simplified feature set to make the compiler projects manageable. The specification defines Decaf's lexical elements, keywords, types, variables, arrays, scoping rules, and grammar. Key points are that Decaf supports classes, interfaces, inheritance, and dynamic memory allocation using NewArray.
The document discusses relational algebra and its operations. It begins with an introduction to relational algebra, noting that it is a collection of operations performed on relations that result in another relation. It then discusses some examples of set operations like union, intersection, difference performed on sample tables. It also discusses unary operations like selection and projection, providing examples. It describes join operations that combine two tables. It concludes with discussing aggregate functions that can be applied to columns and rows.
The document discusses additional operations that can be performed in relational algebra beyond the fundamental operations. These additional operations - set intersection, natural join, division, and assignment - simplify common queries without adding expressive power. The document also covers extended relational algebra operations like generalized projection, aggregate functions, and outer joins.
This document discusses structures and unions in C++. It defines a structure as a collection of related data items of different types stored together in memory. Structures allow defining custom data types that group various member variables. Unions also define custom data types but allow different types of variables to share the same memory space, taking up only as much space as its largest member. The document provides examples of declaring, defining, initializing, accessing members, and using structures and unions in C++ programs. It also compares the key differences between structures and unions.
The document provides an overview of the relational model used in database management systems. It defines key concepts like relations, attributes, tuples, domains, schemas, keys, and foreign keys. It also describes common relational algebra operations like select, project, join, union, and set differences. Examples are provided to illustrate how these operations work on relations. Additional topics covered include query languages, normalization, and modeling a banking example database using these concepts.
The document describes the relational model for relational databases. It discusses the structure of relational databases including relations, tuples, attributes, domains, keys and relation schemas. It also describes the relational algebra query language including operators like select, project, join, union and set differences. Examples are provided to illustrate how to write queries using these operators to retrieve and manipulate data from relations that model real-world entities and relationships, like customers, accounts and loans in a banking example.
The document describes the relational model for databases. It defines key concepts like relations, attributes, tuples, domains, schemas, keys, and foreign keys. It explains basic relational algebra operations like select, project, join, union, difference, and cartesian product. It provides examples of how to express queries using these operations on sample relations from a banking database. Additional relational algebra operations like rename, intersection, and natural join are also introduced.
relational model in Database Management.ppt.pptRoshni814224
This document provides an overview of the relational model used in database management systems. It discusses key concepts such as:
- Relations, which are sets of tuples that represent entities and relationships between entities.
- Relation schemas that define the structure of relations, including the attributes and their domains.
- Keys such as candidate keys and foreign keys that uniquely identify tuples and define relationships between relations.
- Relational algebra, which consists of operators like select, project, join, and set operations to manipulate and query relations.
- An example banking schema is presented to demonstrate these concepts.
The document discusses the relational model of databases and relational algebra operations. It covers:
1. The basic structure of relations including attributes, tuples, domains, and relation schemas.
2. Key relational algebra operations like selection, projection, union, set difference, and cartesian product and provides examples of each.
3. Additional topics like keys, foreign keys, query languages, and examples of queries using relational algebra on banking database relations.
This document provides a summary of the basic structure and key concepts of SQL, including:
1) SQL queries typically involve a SELECT statement to retrieve attributes from one or more relations based on conditions in a WHERE clause.
2) Common SQL clauses include SELECT, FROM, WHERE, GROUP BY, HAVING, and aggregate functions are used to perform calculations on groups of records.
3) Null values, three valued logic, and handling of duplicates are important concepts when working with SQL queries and relations.
This document discusses query languages and relational algebra operations. It introduces relational algebra as a procedural query language. The basic relational algebra operations are selection, projection, union, set difference, cartesian product, and rename. Examples are provided to illustrate each operation. Additional operations like join, outer join, division and aggregation are also discussed. The document concludes with a discussion of database modification operations like deletion, insertion and updating.
This document provides an overview of data modeling and SQL. It introduces key concepts in relational databases including relations, schemas, tuples, domains, keys, and referential integrity. It also describes the relational data model including the structure of relations, attributes, and relation instances. Finally, it covers the relational algebra including operations like select, project, join, union, difference, and rename that form the basis for SQL queries. The document uses examples from a banking domain to illustrate these concepts.
This chapter discusses SQL and relational database concepts. It covers the basic structure of SQL queries involving SELECT, FROM, and WHERE clauses. It describes key SQL features like aggregate functions, null values, nested subqueries, and modification of databases through insertion, deletion, and updating of records. The document provides examples to illustrate concepts like joins, grouping, ordering results, and use of comparison and string operators in SQL queries.
A query language allows users to request information from a database. Query languages are higher-level than programming languages. Relational algebra is a procedural query language that uses operations like select, project, union, set difference, Cartesian product, and rename on relations. Select chooses tuples matching a predicate. Project removes attributes, listing those remaining. Union combines compatible relations. Set difference finds tuples in one relation not in another. Cartesian product combines information from any two relations. Rename renames a relation.
This document discusses relational database management systems and SQL. It covers basic SQL queries involving selection, projection, and joins. It also discusses set operations in SQL like union, intersect, and except. Further, it describes complex queries, integrity constraints, domains, and data definition language commands for creating, altering, and dropping tables.
The document discusses query optimization by describing how a database system estimates the cost of different query evaluation plans using statistical information about relations. It covers topics like estimating the size of selections, joins, aggregations and other operations to choose the lowest cost plan using transformations and equivalence rules.
The document discusses relational algebra and relational query languages. It provides an overview of SQL and relational algebra, including their differences. It describes the basic relational algebra operators like select, project, union, and join. It provides examples of how to express queries using these operators and how relational algebra expressions are used internally by databases to evaluate SQL queries.
The document discusses tuple relational calculus and domain relational calculus. Tuple relational calculus describes the desired information as a set of tuples that satisfy a predicate, in the form {t | P(t)}. Domain relational calculus uses domain variables that take on attribute values rather than entire tuples. Both languages use atoms, formulae, and quantification to write queries. Expressions must be safe by only generating tuples within the domain to avoid infinite relations. Sample queries are provided to illustrate the languages.
The document discusses relational algebra and tuple relational calculus. It describes relational algebra as a procedural query language that uses unary operations like select and project and binary operations like join and union to derive result relations from existing relations. It then explains tuple relational calculus as a nonprocedural query language where queries return tuples satisfying a predicate. Examples of queries using both languages on banking relations are provided to illustrate their usage.
This document provides an overview of key concepts in the relational data model, including relational model concepts, relational constraints, and update operations. It defines relations, tuples, attributes, domains, keys, and integrity constraints. It also discusses relational database schemas and provides examples of a relational schema for a COMPANY database including entities, attributes, and referential integrity constraints. Finally, it covers update operations and how integrity constraints can be violated during updates.
This document provides an introduction to relational calculus, including tuple relational calculus (TRC) and domain relational calculus (DRC). It defines relational calculus as a non-procedural query language that specifies what to do without explaining how. TRC works on tuples and allows selecting tuples that satisfy a condition, while DRC works on domains/attributes and allows selecting attributes. Examples of queries are provided for each that filter relations based on conditions.
it describes the bony anatomy including the femoral head , acetabulum, labrum . also discusses the capsule , ligaments . muscle that act on the hip joint and the range of motion are outlined. factors affecting hip joint stability and weight transmission through the joint are summarized.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
Chapter wise All Notes of First year Basic Civil Engineering.pptxDenish Jangid
Chapter wise All Notes of First year Basic Civil Engineering
Syllabus
Chapter-1
Introduction to objective, scope and outcome the subject
Chapter 2
Introduction: Scope and Specialization of Civil Engineering, Role of civil Engineer in Society, Impact of infrastructural development on economy of country.
Chapter 3
Surveying: Object Principles & Types of Surveying; Site Plans, Plans & Maps; Scales & Unit of different Measurements.
Linear Measurements: Instruments used. Linear Measurement by Tape, Ranging out Survey Lines and overcoming Obstructions; Measurements on sloping ground; Tape corrections, conventional symbols. Angular Measurements: Instruments used; Introduction to Compass Surveying, Bearings and Longitude & Latitude of a Line, Introduction to total station.
Levelling: Instrument used Object of levelling, Methods of levelling in brief, and Contour maps.
Chapter 4
Buildings: Selection of site for Buildings, Layout of Building Plan, Types of buildings, Plinth area, carpet area, floor space index, Introduction to building byelaws, concept of sun light & ventilation. Components of Buildings & their functions, Basic concept of R.C.C., Introduction to types of foundation
Chapter 5
Transportation: Introduction to Transportation Engineering; Traffic and Road Safety: Types and Characteristics of Various Modes of Transportation; Various Road Traffic Signs, Causes of Accidents and Road Safety Measures.
Chapter 6
Environmental Engineering: Environmental Pollution, Environmental Acts and Regulations, Functional Concepts of Ecology, Basics of Species, Biodiversity, Ecosystem, Hydrological Cycle; Chemical Cycles: Carbon, Nitrogen & Phosphorus; Energy Flow in Ecosystems.
Water Pollution: Water Quality standards, Introduction to Treatment & Disposal of Waste Water. Reuse and Saving of Water, Rain Water Harvesting. Solid Waste Management: Classification of Solid Waste, Collection, Transportation and Disposal of Solid. Recycling of Solid Waste: Energy Recovery, Sanitary Landfill, On-Site Sanitation. Air & Noise Pollution: Primary and Secondary air pollutants, Harmful effects of Air Pollution, Control of Air Pollution. . Noise Pollution Harmful Effects of noise pollution, control of noise pollution, Global warming & Climate Change, Ozone depletion, Greenhouse effect
Text Books:
1. Palancharmy, Basic Civil Engineering, McGraw Hill publishers.
2. Satheesh Gopi, Basic Civil Engineering, Pearson Publishers.
3. Ketki Rangwala Dalal, Essentials of Civil Engineering, Charotar Publishing House.
4. BCP, Surveying volume 1
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
Main Java[All of the Base Concepts}.docxadhitya5119
This is part 1 of my Java Learning Journey. This Contains Custom methods, classes, constructors, packages, multithreading , try- catch block, finally block and more.
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
How to Manage Your Lost Opportunities in Odoo 17 CRMCeline George
Odoo 17 CRM allows us to track why we lose sales opportunities with "Lost Reasons." This helps analyze our sales process and identify areas for improvement. Here's how to configure lost reasons in Odoo 17 CRM
A workshop hosted by the South African Journal of Science aimed at postgraduate students and early career researchers with little or no experience in writing and publishing journal articles.
2. Learning Objective
Analyse the Relation Schema and
Relation instance
Practice the relation algebra and
calculus
Identify six keys in database
Analyze query language and null
value
4. Attribute Types
Each attribute of a relation has a name
The set of allowed values for each attribute is called the domain
of the attribute
Attribute values are (normally) required to be atomic; that is,
indivisible
◦ E.g. the value of an attribute can be an account number,
but cannot be a set of account numbers
Domain is said to be atomic if all its members are atomic
The special value null is a member of every domain
5. Relation Schema
Formally, given domains D1, D2, …. Dn a relation r is a subset of
D1 x D2 x … x Dn
Thus, a relation is a set of n-tuples (a1, a2, …, an) where each ai
Di
Schema of a relation consists of
◦ attribute definitions
name
type/domain
◦ integrity constraints
6. Relation Instance
The current values (relation instance) of a relation are specified by a table
An element t of r is a tuple, represented by a row in a table
Order of tuples is irrelevant (tuples may be stored in an arbitrary order)
Jones
Smith
Curry
Lindsay
customer_name
Main
North
North
Park
customer_street
Harrison
Rye
Rye
Pittsfield
customer_city
customer
attributes
(or columns)
tuples
(or rows)
7. Database
A database consists of multiple relations
Information about an enterprise is broken up into parts,
with each relation storing one part of the information
E.g.
account : information about accounts
depositor : which customer owns which account
customer : information about customers
10. Keys
Let K R
K is a superkey of R if values for K are sufficient to
identify a unique tuple of each possible relation r(R)
◦ by “possible r ” we mean a relation r that could exist in the
enterprise we are modeling.
◦ Example: {customer_name, customer_street} and
{customer_name}
are both superkeys of Customer, if no two customers can
possibly have the same name
11. Keys (Cont.)
K is a candidate key if K is minimal
Example: {customer_name} is a candidate key for
Customer, since it is a superkey and no subset of it is a
superkey.
Primary key: a candidate key chosen as the principal
means of identifying tuples within a relation
◦ Should choose an attribute whose value never, or very
rarely, changes.
◦ E.g. email address is unique, but may change
12. Foreign Keys
A relation schema may have an attribute that corresponds to the
primary key of another relation. The attribute is called a foreign
key.
◦ E.g. customer_name and account_number attributes of depositor
are foreign keys to customer and account respectively.
◦ Only values occurring in the primary key attribute of the
referenced relation may occur in the foreign key attribute of the
referencing relation.
14. Query Languages
Language in which user requests information from the database.
Categories of languages
◦ Procedural
◦ Non-procedural, or declarative
“Pure” languages:
◦ Relational algebra
◦ Tuple relational calculus
◦ Domain relational calculus
Pure languages form underlying basis of query languages that people
use.
15. Composition of Operations
Can build expressions using multiple operations
Example: A=C(r x s)
r x s
A=C(r x s)
A B
1
1
1
1
2
2
2
2
C D
10
10
20
10
10
10
20
10
E
a
a
b
b
a
a
b
b
A B C D E
1
2
2
10
10
20
a
a
b
17. Example Queries
Find all loans of over $1200
n Find the loan number for each loan of an amount greater than
$1200
amount > 1200 (loan)
loan_number (amount > 1200 (loan))
n Find the names of all customers who have a loan, an account, or both,
from the bank
customer_name (borrower) customer_name (depositor)
18. Example Queries
Find the names of all customers who have a loan at the Perryridge
branch.
n Find the names of all customers who have a loan at the
Perryridge branch but do not have an account at any branch of
the bank.
customer_name (branch_name = “Perryridge”
(borrower.loan_number = loan.loan_number(borrower x loan))) –
customer_name(depositor)
customer_name (branch_name=“Perryridge”
(borrower.loan_number = loan.loan_number(borrower x loan)))
19. Example Queries
Find the names of all customers who have a loan at the
Perryridge branch.
l customer_name(loan.loan_number =
borrower.loan_number (
(branch_name = “Perryridge” (loan)) x borrower))
l customer_name (branch_name = “Perryridge” (
borrower.loan_number = loan.loan_number (borrower x loan)))
20. Bank Example Queries Find the largest account balance
◦ Strategy:
Find those balances that are not the largest
Rename account relation as d so that we can compare each account
balance with all others
Use set difference to find those account balances that were not found in
the earlier step.
◦ The query is:
balance(account) - account.balance
(account.balance < d.balance (account x rd (account)))
21. Bank Example Queries
Find the name of all customers who have a loan
at the bank and the loan amount
n Find the names of all customers who have a loan and an account at
bank.
customer_name (borrower) customer_name (depositor)
customer_name, loan_number, amount (borrower loan)
22. l Query 1
customer_name (branch_name = “Downtown” (depositor account ))
customer_name (branch_name = “Uptown” (depositor account))
l Query 2
customer_name, branch_name (depositor account)
rtemp(branch_name) ({(“Downtown” ), (“Uptown” )})
Note that Query 2 uses a constant relation.
Bank Example Queries
Find all customers who have an account from
at least the “Downtown” and the Uptown”
branches.
23. Bank Example Queries
Find all customers who have an account at all
branches located in Brooklyn city.
customer_name, branch_name (depositor account)
branch_name (branch_city = “Brooklyn” (branch))
24. Relational Algebra
Procedural language
Six basic operators
◦ select:
◦ project:
◦ union:
◦ set difference: –
◦ Cartesian product: x
◦ rename: r
The operators take one or two relations as inputs and produce a new
relation as a result.
25. Select Operation – Example
n Relation r
A B C D
1
5
12
23
7
7
3
10
A=B ^ D > 5 (r)
A B C D
1
23
7
10
26. Project Operation – Example
Relation r: A B C
10
20
30
40
1
1
1
2
A C
1
1
1
2
=
A C
1
1
2
A,C (r)
27. Union Operation – Example Relations r, s:
n r s:
A B
1
2
1
A B
2
3
r
s
A B
1
2
1
3
28. Set Difference Operation –
Example
Relations r, s:
n r – s:
A B
1
2
1
A B
2
3
r
s
A B
1
1
29. Cartesian-Product Operation –
Example
n Relations r, s:
n r x s:
A B
1
2
A B
1
1
1
1
2
2
2
2
C D
10
10
20
10
10
10
20
10
E
a
a
b
b
a
a
b
b
C D
10
10
20
10
E
a
a
b
br
s
30. Rename Operation Allows us to name, and therefore to refer to, the results of relational-algebra expressions.
Allows us to refer to a relation by more than one name.
Example:
r x (E)
returns the expression E under the name X
If a relational-algebra expression E has arity n, then
returns the result of expression E under the name X, and with the
attributes renamed to A1 , A2 , …., An .
)(),...,,( 21
EnAAAxr
31. Additional Operations
Additional Operations
◦ Set intersection
◦ Natural join
◦ Aggregation
◦ Outer Join
◦ Division
All above, other than aggregation, can be expressed
using basic operations we have seen earlier
33. Natural Join Operation –
Example Relations r, s:
A B
1
2
4
1
2
C D
a
a
b
a
b
B
1
3
1
2
3
D
a
a
a
b
b
E
r
A B
1
1
1
1
2
C D
a
a
a
a
b
E
s
n r s
34. n Notation: r s
Natural-Join Operation
Let r and s be relations on schemas R and S respectively.
Then, r s is a relation on schema R S obtained as follows:
◦ Consider each pair of tuples tr from r and ts from s.
◦ If tr and ts have the same value on each of the attributes in R S, add a tuple t to the result,
where
t has the same value as tr on r
t has the same value as ts on s
Example:
R = (A, B, C, D)
S = (E, B, D)
◦ Result schema = (A, B, C, D, E)
◦ r s is defined as:
r.A, r.B, r.C, r.D, s.E (r.B = s.B r.D = s.D (r x s))
35. Aggregate Functions and
Operations
Aggregation function takes a collection of values and returns a single value as a
result.
avg: average value
min: minimum value
max: maximum value
sum: sum of values
count: number of values
Aggregate operation in relational algebra
E is any relational-algebra expression
◦ G1, G2 …, Gn is a list of attributes on which to group (can be empty)
◦ Each Fi is an aggregate function
◦ Each Ai is an attribute name
)()(,,(),(,,, 221121
Ennn AFAFAFGGG
36. Aggregate Operation –
Example Relation
r:
A B
C
7
7
3
10
n g sum(c) (r) sum(c )
27
n Question: Which aggregate operations cannot be expressed
using basic relational operations?
38. Aggregate Functions (Cont.)
Result of aggregation does not have a
name
◦ Can use rename operation to give it a name
◦ For convenience, we permit renaming as
part of aggregate operation
branch_name g sum(balance) as sum_balance (account)
39. Outer Join
An extension of the join operation that avoids loss of information.
Computes the join and then adds tuples form one relation that
does not match tuples in the other relation to the result of the
join.
Uses null values:
◦ null signifies that the value is unknown or does not exist
◦ All comparisons involving null are (roughly speaking) false by
definition.
We shall study precise meaning of comparisons with nulls later
40. Outer Join – Example
Relation loan
n Relation borrower
customer_name loan_number
Jones
Smith
Hayes
L-170
L-230
L-155
3000
4000
1700
loan_number amount
L-170
L-230
L-260
branch_name
Downtown
Redwood
Perryridge
41. Outer Join – Example
Join
loan borrower
loan_number amount
L-170
L-230
3000
4000
customer_name
Jones
Smith
branch_name
Downtown
Redwood
Jones
Smith
null
loan_number amount
L-170
L-230
L-260
3000
4000
1700
customer_namebranch_name
Downtown
Redwood
Perryridge
n Left Outer Join
loan borrower
42. Outer Join – Example
loan_number amount
L-170
L-230
L-155
3000
4000
null
customer_name
Jones
Smith
Hayes
branch_name
Downtown
Redwood
null
loan_number amount
L-170
L-230
L-260
L-155
3000
4000
1700
null
customer_name
Jones
Smith
null
Hayes
branch_name
Downtown
Redwood
Perryridge
null
n Full Outer Join
loan borrower
n Right Outer Join
loan borrower
n Question: can outerjoins be expressed using basic relational
algebra operations
43. Null Values
It is possible for tuples to have a null value, denoted by null, for
some of their attributes
null signifies an unknown value or that a value does not exist.
The result of any arithmetic expression involving null is null.
Aggregate functions simply ignore null values (as in SQL)
For duplicate elimination and grouping, null is treated like any
other value, and two nulls are assumed to be the same (as in
SQL)
44. Null Values
Comparisons with null values return the special truth
value: unknown
◦ If false was used instead of unknown, then not (A < 5)
would not be equivalent to A >= 5
Three-valued logic using the truth value unknown:
◦ OR: (unknown or true) = true,
(unknown or false) = unknown
(unknown or unknown) = unknown
◦ AND: (true and unknown) = unknown,
(false and unknown) = false,
(unknown and unknown) = unknown
◦ NOT: (not unknown) = unknown
◦ In SQL “P is unknown” evaluates to true if predicate P
evaluates to unknown
Result of select predicate is treated as false if it evaluates
to unknown
45. Division Operation
Notation:
Suited to queries that include the phrase “for
all”.
Let r and s be relations on schemas R and S
respectively where
◦ R = (A1, …, Am , B1, …, Bn )
◦ S = (B1, …, Bn)
The result of r s is a relation on schema
R – S = (A1, …, Am)
r s = { t | t R-S (r) u s ( tu r ) }
Where tu means the concatenation of tuples t and
u to produce a single tuple
r s
46. Division Operation – Example
n Relations r, s:
n r s: A
B
1
2
A B
1
2
3
1
1
1
3
4
6
1
2
r
s
47. Another Division Example
A B
a
a
a
a
a
a
a
a
C D
a
a
b
a
b
a
b
b
E
1
1
1
1
3
1
1
1
n Relations r, s:
n r s:
D
a
b
E
1
1
A B
a
a
C
r
s
48. Division Operation (Cont.)
Property
◦ Let q = r s
◦ Then q is the largest relation satisfying q x s r
Definition in terms of the basic algebra operation
Let r(R) and s(S) be relations, and let S R
r s = R-S (r ) – R-S ( ( R-S (r ) x s ) – R-S,S(r ))
To see why
◦ R-S,S (r) simply reorders attributes of r
◦ R-S (R-S (r ) x s ) – R-S,S(r) ) gives those tuples t in
R-S (r ) such that for some tuple u s, tu r.
49. Learning Outcome
Student will be able to:
Briefly explain six types of keys in
database
Use query language to get sample
data from the database
Identify the null value