Serge Aurubin

SERGE AURUBIN

DATA SCIENTIST

Welcome to my blog for everything having to do with data science and analysis. I am always looking for new opportunities to drive business insight using data analysis.

Data & Analytics
  • Data Analysis
  • Power BI
  • Excel
  • Data Pipelines
  • Matillion
Engineering
  • Software Developer
  • Python
  • PHP
  • ReactJS
  • Flutter
  • Front End Dev
  • Back End Dev
Databases
  • MySQL Dev/DBA
  • Oracle DBA
Cloud & AI
  • Amazon Web Services
  • Docker
  • Kubernetes
  • Git
  • Artificial Intelligence
  • Claude
  • OpenAI
Back to Videos

5 SQL Tricks That'll Make You Look Like a Senior Data Engineer

techTFQ

July 28, 2026   1

My Live SQL Bootcamp is back - the first one in over a year! 8 live sessions, Beginner to Advanced, starting Sept 5. Seats are limited ????
https://sqlnest.com/bootcamp/Live_SQL_Bootcamp_Beginner_to_Advanced

In this video, I’m sharing 5 rare SQL tricks that even experienced developers often miss. These aren’t basic SQL concepts - they’re powerful PostgreSQL features that can save time, simplify your queries, and make your SQL feel much more advanced.

If you want to move beyond standard syntax and start writing SQL like an expert, this video is for you.

What you’ll learn:
OFFSET - find the Nth highest value without a nested subquery.
DISTINCT ON - get the latest row per group in one line, without a window function.
RETURNING - instantly see what an INSERT, UPDATE, or DELETE changed.
Range overlap operator (&&) - detect overlapping date ranges with a clean, elegant operator.
generate_series - identify missing dates and spot broken data pipelines fast.

Timestamps:
00:00 Intro
01:57 Trick #1 - OFFSET
06:48 Trick #2 - DISTINCT ON
14:01 Trick #3 - RETURNING
18:07 Trick #4 - Range overlap with &&
26:25 Trick #5 - generate_series

If you want to actually practice these patterns...

0 Comments

No comments yet. Be the first to weigh in.

Back to Videos

Login