ViewTube

ViewTube
Sign inSign upSubscriptions
Filters

Upload date

Type

Duration

Sort by

Features

Reset

46 results

Prateek Goel
SQL Window Function Performance: Sorts, Indexes, Run Conditions and work_mem (PostgreSQL)

Reason about the sorts and partitions a window function requires, on real PostgreSQL 16 plans. On the module's 11-row sales ...

9:52
SQL Window Function Performance: Sorts, Indexes, Run Conditions and work_mem (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Running Totals and Cumulative Aggregates: ROWS vs RANGE, Resets and the Plan (PostgreSQL)

Compute cumulative metrics with ordered windows. On a real PostgreSQL 16 database with the module's sales table, ...

7:32
SQL Running Totals and Cumulative Aggregates: ROWS vs RANGE, Resets and the Plan (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Subqueries vs Joins vs CTEs: How the PostgreSQL Optimizer Rewrites Them (and What Blocks It)

Does it matter whether you write a subquery, a join or a CTE? On real PostgreSQL 16 plans over 20000 generated customers and ...

9:26
SQL Subqueries vs Joins vs CTEs: How the PostgreSQL Optimizer Rewrites Them (and What Blocks It)

0 views

9h ago

Savant Space
Learn Postgres in 25 Minutes: Everything You Need to Ship a Real App

Your frontend can be rewritten. Your API can be rewritten. Your data is forever. In this video we open the box under every app ...

24:47
Learn Postgres in 25 Minutes: Everything You Need to Ship a Real App

43 views

23h ago

Prateek Goel
SQL PARTITION BY and ORDER BY in Window Functions: Running Totals and the Default Frame

Control which rows each window sees, and in what order. On a real PostgreSQL 16 database with the module's 11-row sales ...

8:43
SQL PARTITION BY and ORDER BY in Window Functions: Running Totals and the Default Frame

0 views

9h ago

Prateek Goel
SQL IS NULL and IS NOT NULL: Why = NULL Never Matches (PostgreSQL)

Find missing values the right way. On real PostgreSQL 16 we put = NULL and IS NULL side by side and watch one return ...

8:04
SQL IS NULL and IS NOT NULL: Why = NULL Never Matches (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL CAST and Type Conversion Explained:, Integer Division, Rounding, Invalid Input (PostgreSQL)

Why does 1 / 8 return 0 in SQL? On real PostgreSQL 16 we convert values with CAST and PostgreSQL's :: shorthand, see which ...

8:48
SQL CAST and Type Conversion Explained:, Integer Division, Rounding, Invalid Input (PostgreSQL)

0 views

9h ago

Prateek Goel
How Databases Execute Joins: Nested Loop, Hash Join and Merge Join in PostgreSQL

Explain the three join algorithms and when an optimizer picks each. We trace a nested loop, a hash join and a merge join by hand ...

11:59
How Databases Execute Joins: Nested Loop, Hash Join and Merge Join in PostgreSQL

1 view

9h ago

Prateek Goel
SQL STRING_AGG and GROUP_CONCAT: Ordered Lists, DISTINCT, NULLs and Dialects (PostgreSQL)

Turn a group of rows into one readable list. On real PostgreSQL 16 we build a list of customers per city with STRING_AGG, see ...

8:09
SQL STRING_AGG and GROUP_CONCAT: Ordered Lists, DISTINCT, NULLs and Dialects (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Gaps and Islands: Login Streaks with ROW_NUMBER, DENSE_RANK and LAG (PostgreSQL)

Group consecutive runs with the row-number difference technique. On a real PostgreSQL 16 database with a small logins table, ...

10:05
SQL Gaps and Islands: Login Streaks with ROW_NUMBER, DENSE_RANK and LAG (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL ROLLUP, CUBE and GROUPING SETS: Subtotals, Grand Totals and GROUPING (PostgreSQL)

Get detail rows, subtotals and a grand total from one query. On real PostgreSQL 16 we build a total row the long way with UNION ...

8:17
SQL ROLLUP, CUBE and GROUPING SETS: Subtotals, Grand Totals and GROUPING (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Window Functions Explained: OVER vs GROUP BY, and Where Windows Run (PostgreSQL)

Window functions compute a value over a set of rows and return it on every row, instead of collapsing the rows like GROUP BY.

10:28
SQL Window Functions Explained: OVER vs GROUP BY, and Where Windows Run (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Dates and Times Explained: DATE, TIMESTAMP, INTERVAL, EXTRACT, DATE_TRUNC (PostgreSQL)

The date and time essentials every SQL query needs. On real PostgreSQL 16 we meet the four types (DATE, TIMESTAMP, ...

11:24
SQL Dates and Times Explained: DATE, TIMESTAMP, INTERVAL, EXTRACT, DATE_TRUNC (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Median and Percentiles: PERCENTILE_CONT vs PERCENTILE_DISC, WITHIN GROUP and MODE

Find the typical value when the average lies. On real PostgreSQL 16 we compute a median with PERCENTILE_CONT(0.5) ...

10:30
SQL Median and Percentiles: PERCENTILE_CONT vs PERCENTILE_DISC, WITHIN GROUP and MODE

0 views

9h ago

Prateek Goel
SQL FIRST_VALUE, LAST_VALUE and NTH_VALUE: the Default Frame Trap and IGNORE NULLS (PostgreSQL)

Fetch boundary values in a window correctly. On a real PostgreSQL 16 database with the module's 11-row sales table, ...

8:22
SQL FIRST_VALUE, LAST_VALUE and NTH_VALUE: the Default Frame Trap and IGNORE NULLS (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Window Frames: ROWS vs RANGE vs GROUPS, EXCLUDE and Moving Averages (PostgreSQL)

Define exact window frames and predict the default frame's surprises. On a real PostgreSQL 16 database with the module's ...

13:05
SQL Window Frames: ROWS vs RANGE vs GROUPS, EXCLUDE and Moving Averages (PostgreSQL)

0 views

9h ago

codewithsadee
Full Stack PostgreSQL Tutorial: Build a React Dashboard (Search, Sort & Pagination)

Learn to build a React dashboard from scratch in this full stack project. We will focus on implementing search, sort, and pagination ...

2:11:23
Full Stack PostgreSQL Tutorial: Build a React Dashboard (Search, Sort & Pagination)

332 views

3h ago

Prateek Goel
SQL Date Bucketing: DATE_TRUNC, ISO Weeks, TO_CHAR Sorting, Time Zones, DATE_BIN (PostgreSQL)

A login at 10:30 pm in New York counted on the wrong day, months sorted April before January, and a dashboard filter that scans ...

8:36
SQL Date Bucketing: DATE_TRUNC, ISO Weeks, TO_CHAR Sorting, Time Zones, DATE_BIN (PostgreSQL)

0 views

9h ago

Prateek Goel
SQL Conditional Aggregation and Pivoting: SUM(CASE), FILTER, ELSE 0 Traps and Unpivot

One pass over the table, many answers. On real PostgreSQL 16 we put a CASE inside SUM to total paid and refunded orders per ...

9:44
SQL Conditional Aggregation and Pivoting: SUM(CASE), FILTER, ELSE 0 Traps and Unpivot

0 views

9h ago

Prateek Goel
SQL ROW_NUMBER vs RANK vs DENSE_RANK: Ties, NULLs and Top N per Group (PostgreSQL)

Pick the ranking function whose tie behaviour matches the requirement. On a real PostgreSQL 16 database with the module's ...

8:15
SQL ROW_NUMBER vs RANK vs DENSE_RANK: Ties, NULLs and Top N per Group (PostgreSQL)

0 views

9h ago

Show more