Week 17 - CST363 week 1

 This week we setup postgres locally. Going over the basics of what is a relation and formal representation of relational algebra such as selection, projection, union.

  • selection: get one or more rows from a table based on criterion
  • projection: get one or more attributes from a table
  • union: add the rows of two tables

something like `select first_name from people where id > 100` is a combination of selection and projection. we are selecting rows where id > 100, and then restricting the result to just the first_name attribute:

projection(selection(people,id > 100), ["first_name"])


Comments

Popular posts from this blog

Week 2/100

week 8/100

Week 4/100