Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Joining Metadata
Lab: Advanced SQL – Get Posts Grouped by Terms
Video Runtime: 12:37
In the last two episodes, you learned about how database tables are glued together through their relationships. Let’s see in action by writing SQL queries to fetch posts and associated post metadata in one query. You’ll see how INNER JOIN
is different than LEFT JOIN
. You’ll learn how to grab specific metadata with your query, such as a subtitle. Then you’ll do the same experiment with the users and user metadata tables. Let’s write some SQL.
You will grow in this profession when you incrementally and systematically stretch yourself....bit-by-bit.
Episodes
Total Lab Runtime: 02:46:48
- 1 Lab Introductionfree 14:27
- 2 Slow Approach Overviewpro 12:11
- 3 Test Slow Approach - Part 1pro 17:27
- 4 Test Slow Approach - Part 2pro 21:07
- 5 Relational Typespro 23:20
- 6 Types of Joinspro 09:30
- 7 Joining Metadatapro 12:37
- 8 Joining Posts to Termspro 20:32
- 9 Grouping Datasetspro 08:32
- 10 WordPress SQL Handler $wpdbpro 11:01
- 11 Deeper Dive into $wpdb->get_resultspro 05:54
- 12 Run Fast Approach & Compare Resultspro 10:10