~/talk

Becoming a SQL Guru

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
links:none on file
slides:none on file

Covers concrete SQL features with examples and gotchas: use of the FILTER clause (SQL-1994) to simplify conditional aggregates, GROUPING SETS / ROLLUP / CUBE to produce totals and subtotals in one query and how to label grouped rows, window frames RANGE vs ROWS and when rank differs from row_number, CTEs as optimization fences and recursive CTEs for iteration (example: expanding parts yields a total of 34 screws), and the lateral join for correlated subqueries inside JOINs.

AI-written summary · about

  1. 0:00YELLO'S MISSION STATEMENT
  2. 0:38AGENDA
  3. 2:04QUERIES - SYNTAX OVERVIEW
  4. 2:58JOIN TYPES
  5. 3:26CROSS JOINS: EXAMPLE
  6. 4:49SET OPERATIONS: UNION VS UNION ALL
  7. 6:09FILTERED AGGREGATES 19.4
  8. 7:10GROUPING SETS, CUBE, ROLLUP.
  9. 20:44SUBQUERIES: CORRELATED
  10. 27:03WINDOW FUNCTIONS - BASICS
  11. 28:27WINDOW FUNCTIONS - FRAME CLAUSE
  12. 29:46WINDOW FUNCTIONS - BASIC EXAMPLE
  13. 30:34WINDOW FUNCTIONS - RANGE VS ROWS
  14. 32:19WINDOW FUNCTIONS - WINDOW CLAUSE
  15. 33:20WINDOW FUNCTIONS - ROW NUMBER
  16. 36:41CTE'S - INTRODUCTION
  17. 38:24CTE'S - NON RECURSIVE EXAMPLE
  18. 38:59CTE'S - RECURSIVE EXAMPLE
  19. 39:47CTE'S - RECURSIVE QUERY EVALUATION
  20. 41:33CTE'S - ANOTHER RECURSIVE EXAMPLE
  21. 51:03LATERAL - SET RETURNING FUNCTION EXAMPLE
  22. 51:52LATERAL - SUBQUERY EXAMPLE
  23. 53:26REFERENCES
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.