Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
2. The Customer Table
Simple OVER()
PARTITION BY
Ranking functions
Window Frames
Analytic Functions
PARTITION BY ORDER BY
Order of Evaluation
Finished!

Instruction

As usual, we'll introduce the tables first. In this part, we're going to work with an online movie store. It boasts the biggest database in our whole course – 6 tables. We'll analyze the tables in a second, but let’s first look at the ER diagram, which we made in Vertabelo.This diagram gives the big picture. After that, we’ll examine the Customer table.

Vertabelo_Diagram

Exercise

Select all the information from the Customer table.

Whoever wants to buy anything in our store needs to register as a customer. Each customer in our system has an Id, a FirstName, a LastName, a JoinDate and a Country.