Compare the Outliers Using First Value and Last Value
lessonDuration 1m 55s
How does each runner compare with the first and last place finisher? What about the nth place finisher? First_value, last_value, and nth_value can make these decisions.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 6,001–6,024 · Page 251 of 299
lessonDuration 1m 55s
How does each runner compare with the first and last place finisher? What about the nth place finisher? First_value, last_value, and nth_value can make these decisions.
lessonDuration 1m 55s
Weighted ranking on a single factor can hide lots of information. For instance, students without access to internet perform 1-3 full letter grades worse than their peers with internet access. A teacher that wanted to consider student privilege could take many factors into account when assigning student grades to get a better sense for how strong individual students were.
lessonDuration 1m 55s
What if you had a list of student grades and wanted to give them a weighted grade for the school year? Percent rank is used to answer frequency distribution questions.
lessonDuration 1m 47s
In this lesson we’ll see how we can partition movies into the years they were released, and find the top 5 rated titles each year. The power of the window function is to partition data into groups and answer questions about those groups.
lessonDuration 1m 35s
If you have a list of competitors in a race, and a list of their finishing times, how do you create a list of what place they came in? Rank and dense rank can help you out; they differ in how they handle ties.
lessonDuration 3m 53s
Let’s say we have a bank. Our bank wants to give each account for each user a unique name, for instance, “Personal” or “Checking.” How can we make sure each account has a unique name for each user?
lessonDuration 2m 7s
What if your tables need custom constraints? A movie should only receive 1-5 stars, never 0 or 6. Price after tax should always equal the sum of the price plus tax. Check constraints help you enforce your own custom logic.
lessonDuration 2m 33s
The more data you add, the longer it will take to answer new questions you pose to your database. That’s because so far, Postgres has been scanning through the table looking at every row to see if it meets the constraint. We can speed this process up substantially by adding indexes.
lessonDuration 2m 18s
Every movie needs a director and every rented movie needs to exist in the store. How do we make sure something in another table exists before inserting new data? This lesson will teach us about foreign keys and references.
lessonDuration 52s
How many users visited our site yesterday? We can find out by looking at each visit, and limiting this list to a distinct list of users (who may have visited many times). In this lesson we’ll learn how to answer questions like these with the distinct keyword.
lessonDuration 3m 8s
What if your foreign keys are more complex than a single field? Postgres lets you enforce foreign key constraints across multiple fields with a similar syntax to defining complex primary keys.
lessonDuration 1m 20s
How do I see a list of my Facebook friends sorted by the number of friends they have, and then sorted alphabetically to break ties? Sorting data helps us to answer important business questions. In this lesson, we’ll learn how to do it in Postgres.
lessonDuration 6m 45s
How can we see a histogram of movies on IMDB with a particular rating? Or how much movies grossed at the box office each month? Or how many movies there are of each genre? These are examples of data aggregation questions, and this lesson will teach us how to answer them.
lessonDuration 3m 52s
You can modify tmux's behavior with your tmux configuration file, .tmux.conf. You can use your tmux config to change color schemes, set custom keybindings, set defaults, modify the status bar, and more. In this lesson, we'll change some of the default color options as well as modify the prefix key.
lessonDuration 2m 43s
What if you no longer need some information? Perhaps your tables are very large and you need to clean up your table to speed it up. This lesson will teach us how to delete data from our database.
lessonDuration 1m 40sFree
Let's write some example data and render it to our page with `v-for`, and then see how we can use the same directive to render the same component multiple times.
lessonDuration 1m 45s
Learn how to create a table using the most widely-used data types (serial, varchar, integer, float, boolean, and date), and the most necessary constraints (NOT NULL and primary key).
lessonDuration 4m 24s
Learn how to insert one record, two records, a million records! We’ll also explore some edge cases, like where not all data is known at the time of insertion.
lessonDuration 1m 55s
Data changes. In some applications, it changes all the time! In this lesson we’ll learn how to update a single record or many at once.
lessonDuration 3m 35s
We have all this data, but how do we answer questions about it? In this lesson we’ll learn how to filter down to just the information we’re looking for.
lessonDuration 1m 33s
It's a lot easier to manage your tmux session when they have sensible names. We'll cover: - How to create a new, named tmux session with tmux new -s - Rename an existing tmux session using tmux rename-session -t - Renaming sessions with C-b $ - Listing sessions with C-b s
lessonDuration 2m 14s
Learn to organize your workspace using tmux. We'll create a new tmux session and learn how to create and navigate panes within a tmux window. We'll cover: - How to create new panes via vertical splits with C-b % - How to create new panes via horizontal splits with C-b " - Navigating between panes with C-b and arrow keys - Closing panes with exit or Ctrl-d - Viewing available commands with C-b ?
lessonDuration 1m 39s
Sometimes you'll want to zoom in on a specific pane within a tmux window. We'll learn to use C-b z to temporarily zoom in on one pane, as well as how to resize your panes with C-b -L, -R, -U, and -D.
lessonDuration 1m 19s
In tmux, a window is a collection of panes. Creating multiple windows is a great way to organize your workspace. In this lesson, we'll cover: - How to create a new window within a tmux session, using `C-b c` - Navigating between windows with `C-b n` and `C-b p`