Data base.

Slides:



Advertisements
Similar presentations
Lesson 1.3 Unit 1, Lesson 3. Set:A collection of distinct objects Elements:All of the objects that make up a set.
Advertisements

Relational Algebra and Relational Calculus
More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
Relational Algebra Rohit Khokher. Relational Algebra Set Oriented Operations UnionIntersectionDifference Cartesian Product Relation Oriented Operations.
Relational Algebra Dashiell Fryer. What is Relational Algebra? Relational algebra is a procedural query language. Relational algebra is a procedural query.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Relational Algebra 1 Chapter 5.1 V3.0 Napier University Dr Gordon Russell.
Section 4.2 Intersections, Unions & Compound Inequalities  Using Set Diagrams and Notation  Intersections of Sets Conjunctions of Sentences and  Unions.
Chapter 3: Set Theory and Logic
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Math 021. * Interval Notation is a way to write a set of real numbers. The following are examples of how sets of numbers can be written in interval notation:
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
The Relational Algebra. 1 Relational Algebra Operations From Set Theory * UNIONUNION * INTERSECTIONINTERSECTION * MINUSMINUS * CARTESIAN OPERATIONCARTESIAN.
Compound Inequalities “And” & “Or” Graphing Solutions.
Compound Inequalities A compound inequality is a sentence with two inequality statements joined either by the word “or” or by the word “and.” “And”
Chapter 2.5 – Compound Inequalities
Intersections, Unions, and Compound Inequalities
Relational Algebra (Chapter 7)
Fundamentals of Database Systems Fourth Edition El Masri & Navathe Instructor: Mr. Ahmed Al Astal Chapter 6 The Relational Algebra University Of Palestine.
RELATIONAL ALGEBRA CHAPTER 6 1. LECTURE OUTLINE  Unary Relational Operations: SELECT and PROJECT  Relational Algebra Operations from Set Theory  Binary.
CS424 Relational Data Manipulation Relational Data Manipulation Relational tables are sets. Relational tables are sets. The rows of the tables can be considered.
Section 2.3B Venn Diagrams and Set Operations
Relational Algebra MBAD 613 R. Nakatsu. Relational Data Manipulation Language Query-by-Example; Query-by-Form Transform-Oriented Languages Relational.
SECTION 2-3 Set Operations and Cartesian Products Slide
9.1 Sets, Intersections, and Unions  Standard 1.0  8 Key Terms.
Introduction Episode 0 What is TOC (Theory of Computation) about? Giorgi Japaridze Theory of Computability Subject: The fundamental mathematical properties.
Relational Algebra Relational Calculus
CSC271 Database Systems Lecture # 7. Summary: Previous Lecture  Relational keys  Integrity constraints  Views.
The Relational Model Pratt & Adamski, Chapter 2. Relational Algebra zProject zSelect zJoin z Union z Intersect z Subtract z Product z Division.
Dr. Mohamed Hegazi1 The Relational Algebra and Relational Calculus.
Slide 7- 1 Copyright © 2012 Pearson Education, Inc.
Union and Intersection
Math 71A 4.2 – Compound Inequalities intersection.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Sets and Basic Operations on Sets Notation A set will usually be denoted by a capital letter, such as, A,B,X, Y,..., whereas lower-case letters, a, b,
MATH 2311 Section 2.2. Sets and Venn Diagrams A set is a collection of objects. Two sets are equal if they contain the same elements. Set A is a subset.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
Unions and Intersections of Sets Chapter 3 Section 8.
Solving Compound Inequalities When the word and is used, the solution includes all values that satisfy both inequalities. This is the intersection of the.
Chapter 4 Relational Algebra. Agenda Relational Languages Relational Algebra.
Query Languages Language in which user requests information from the database. Categories of languages Procedural Non-procedural, or declarative “Pure”
Ritu CHaturvedi Some figures are adapted from T. COnnolly
CSE202 Database Management Systems
Unions and Intersections of Sets
Good morning! August 8, Good morning! August 8, 2017.
FUNDAMENTAL ALGEBRA Week 11.
Relational Algebra.
Relational Algebra - Select & Project
The Basic Concepts of Set Theory
Section 2.3B Venn Diagrams and Set Operations
Chapter 2 The Basic Concepts of Set Theory
The Relational Algebra and Relational Calculus
The Basic Concepts of Set Theory
More Relational Algebra
Set-Builder Notation.
CS 3630 Database Design and Implementation
(Two-Pass Algorithms)
RM 2 7 +RM 2 4 RM 7 3 +RM 1 6 RM 5 2 +RM 2 4 RM 1 3 +RM5 2.
Set Notation and Set Operations
Discrete Mathematics CS 2610
Chapter 6: Formal Relational Query Languages
Set Notation and Set Operations
2.1 – Symbols and Terminology
Database Dr. Roueida Mohammed.

Unit Relational Algebra 1
Chapter 4 Relational Algebra
Database.
Presentation transcript:

Data base

1. Union The union of two union-compatible relations R1 and R2, R1 UNION R2, is the set of all tuples t belonging to either R1 or R2 or both.

2. Intersection The intersection of two union-compatible relations R1 and R2, R1 INTERSECT R2, is the set of all tuples t belonging to both R1 and R2. The formal notation for an intersect operation is ∩.

3. Difference The difference between two union-compatible relations R1 and R2, R1 MINUS R2, is the set of all tuples t belonging to R1 and not to R2. The formal notation for a difference operation is -

4. Cartesian product The Cartesian product between two relations R1 and R2, R1 TIMES R2, is the set of all tuples t such that t is the concatenation of a tuple r belonging to R1 and a tuple s belonging to R2. The concatenation of a tuple r = (r1, r2, …, rm) and a tuple s = (sm+1, sm+2, …, sm+n) is the tuple t = (r1, r2, …, rm, sm+1, sm+2, …, sm+n).