Bringing it all Together

Data Manipulation in SQL

Mona Khalil

Data Scientist, Greenhouse Software

What you've learned so far

  • CASE statements
  • Simple subqueries
  • Nested and correlated subqueries
  • Common table expressions
  • Window functions
Data Manipulation in SQL

Let's do a case study!

Who defeated Manchester United in the 2013/2014 season?

Manchester_united_logo-2-featured.jpg

Data Manipulation in SQL

Steps to construct the query

  • Get team names with CTEs
  • Get match outcome with CASE statements
  • Determine how badly they lost with a window function

Canva - Soccer Player Kicking White Gray Soccer Ball on Green Grass Field.jpg

Data Manipulation in SQL

Getting the database for yourself

Data Manipulation in SQL

Let's practice!

Data Manipulation in SQL

Preparing Video For Download...