updated: 2022-01-23_12:32:31-05:00


Select

  • select tuples that satisfy a given predicate

  • Pasted image 20210907141544

  • where P is called the Selection Predicate

  • Pasted image 20210907141620

  • Allows comparisons using:

    • Pasted image 20210907141753
  • Combination operators:

    • Pasted image 20210907141838
  • Comparisons between two attributes

    • EG: find all departments whose name is the same as their building name:
      • dept_name = building (department)
        • Quotations is literal, without them, it's getting the value stored in that attribute