Subqueries vs Joins when selecting across a many-to-many relationship in Postgres
Автор: Supabase
Загружено: 2024-10-11
Просмотров: 6381
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
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: