ITM531CS524 Object Oriented Modeling and Design - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

ITM531CS524 Object Oriented Modeling and Design

Description:

UNION (Rel-1, Rel-2) INTERSECT (Rel-1, Rel-2) DEFFERENCE (Rel-1, Rel-2) TIMES(Rel-1, Rel-2) SELECTION (Rel, Bool-Exp) PROJECTION (Rel, Select-List) JOIN (Rel-1, Rel-2) ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 10
Provided by: jjxu
Category:

less

Transcript and Presenter's Notes

Title: ITM531CS524 Object Oriented Modeling and Design


1
ITM531/CS524Object Oriented Modeling and Design
  • Module 2
  • Relational Model

2
Graphic representation
3
Example for relational model
4
Relational query language
  • Algebraic approach.
  • Functional approach.

5
Algebraic approach
  • Relational Algebra Operators
  • UNION (Rel-1, Rel-2)
  • INTERSECT (Rel-1, Rel-2)
  • DEFFERENCE (Rel-1, Rel-2)
  • TIMES(Rel-1, Rel-2)
  • SELECTION (Rel, Bool-Exp)
  • PROJECTION (Rel, Select-List)
  • JOIN (Rel-1, Rel-2)

6
Graphic representation
7
Select relation
  • Predicate (table-name)
  • Example Query the database to get all the
    department information with more than 1M budget.
    - Budget gt 1M (Department)
  • Results
  • DEPT CHAIRMAN BUDGET
  • CS Smith 1.5M
  • EE York 2M

8
Projection relation
  • Col-name col-name (table-name)
  • Example Query the database to get all the
    student name. Name (Student)
  • Results
  • Name
  • Jim
  • Sue
  • Bob

9
Equijoin
  • Table-name 1 ? table-name-2
  • Example Get all the student information and the
    department information for all students in the
    database. Student ? Department.
  • Results
  • STUID NAME DEPT CHAIRMAN BUDGET
  • 003 Bob Bio Dillion 1M
  • 001 Jim CS Smith 1.5M
  • 002 Sue EE York 2M
Write a Comment
User Comments (0)
About PowerShow.com