Subqueries vs Joins when selecting across a many-to-many relationship in Postgres
When querying data across multiple related tables, Postgres offers a few options. In this video, Jon Meyers steps through how to write a subquery in a select statement, and then how to refactor this to use joins instead. Lastly, he demonstrates how to aggregate data across a many-to-many relationship. Querying Joins and Nested tables: https://supabase.com/docs/guides/data... 00:00 Warm up: Create a schema containing a many-to-many relationship 04:55 Exercise 1: Select data across tables using nested subqueries 08:10 Exercise 2: Refactor select to use joins instead of nested subqueries 11:42 Exercise 3: Aggregating data across a many-to-many relationship š» Videos to watch next: ā¶ Everything you NEED TO KNOW about Relationships: Ā Ā Ā ā¢Ā EverythingĀ youĀ NEEDĀ TOĀ KNOWĀ aboutĀ Relation...Ā Ā ā¶ Get better at Postgres with these drills: Ā Ā Ā ā¢Ā 13minĀ HighĀ IntensityĀ PostgresĀ WorkoutĀ (NOĀ ...Ā Ā ā¶ Learn Postgres (playlist): Ā Ā Ā ā¢Ā LearnĀ PostgresĀ Ā š Learn more about Supabase š šø Website: https://supabase.com/ š Get started: https://app.supabase.com/ š Docs: https://supabase.com/docs š Subscribe for more tutorials and feature updates from Supabase: Ā Ā Ā /Ā @supabaseĀ Ā š± Connect with Us: š Github: https://www.github.com/supabase š¬ Discord: https://discord.supabase.com/ š¦ Twitter: Ā Ā /Ā supabaseĀ Ā ā¶ Instagram (follow for memes): Ā Ā /Ā supabasecomĀ Ā ABOUT SUPABASE: Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs. Build in a weekend, scale to millions. #Supabase #AppDevelopment #RealtimeApps #DeveloperTools

Aggregating Data WITHOUT AN ORM!

Everything you NEED TO KNOW about Relationships

How Social Media Stores Your Data: SQL & Databases Explained Simply
![SQL Course for Beginners [Full Course]](https://i.ytimg.com/vi/7S_tz1z_5bA/hq720.jpg?sqp=-oaymwEbCNAFEJQDSFryq4qpAw0IARUAAIhCGAG4AvcY&rs=AOn4CLCV4Cima1nx19tBObVX3l1NeRMD5g&usqp=CCc)
SQL Course for Beginners [Full Course]

MySQL - The Basics // Learn SQL in 23 Easy Steps

Watch this if everything feels too much (gentle comfort for tired women)

How to Correctly Define Many-To-Many Relationships in Database Design

3 Hours of Creepy Minecraft Theories to Fall Asleep to

Are Multi-Column Indexes a good idea?

ASMR Addictive Fast Tapping Collection For Deep Sleep & Anxiety Relief (No Talking) ā 2.5 Hours

Advanced Row Level Security (RLS) Policies // Authorization Deep Dive

Postgres scales ⦠when you do this!

Simplify complex SQL queries with Views in Postgres

God Says:"I JUST CONFIRMED ā ONLY YOU CAN SEE THIS LETTER"/God Message Now/God Message

After My Wife Passed Away, My Daughter-in-Law Smiled At The Inheritance Meeting!! | Calm Dad Stories

Usage-based restrictions for SaaS subscription tiers

Vintage Screen Saver | Screen Saver | Screensaver Flowers | Wallpaper Flowers | TV Wallpaper

SQL Server Tutorial - One-to-many and many-to-many table relationships

Faster queries with index on JSONB columns in Postgres

