Skip to main content

Basic Publishing Queries

Simple, powerful queries to get started with your Publishing data. Copy, paste, and customize these for your needs!

Query Requirements

Schema Prefix

IMPORTANT: All tables in the Planning Center Publishing module live in the planning_center schema. Always prefix table names with planning_center. when querying. ✅ CORRECT: SELECT * FROM planning_center.publishing_episodes ❌ INCORRECT: SELECT * FROM publishing_episodes

Row Level Security (RLS)

Row Level Security automatically governs:
  • tenant_organization_id – restricts results to your organization
  • system_status – returns active records by default
Do not add these filters manually—RLS already applies them and redundant predicates can suppress data or hurt performance:
  • WHERE tenant_organization_id = 1
  • WHERE system_status = 'active'
Focus on content-specific filters (series, published dates, media metadata) while relying on RLS for tenancy and status.

Recent Episodes

Latest Published Episodes

See your most recent content with key details.

Episodes by Series

Find all episodes in a specific series.

Episodes This Year

All episodes published in the current year.

Series Analytics

Active Series List

All series with episode counts.

Current/Recent Series

Series that are currently active or recently ended.

Series Duration Analysis

How long do your series typically run?

Speaker Insights

Speaker Frequency

How often does each speaker teach?

Recent Speakers

Who has spoken in the last few months?

Speaker and Series Combination

Which speakers taught which series?

Content Performance

Episode View Counts

Track engagement metrics for episodes.

Top Performing Content

Your most viewed episodes.
How does engagement change over time?

Channel Distribution

Channel Overview

See all your distribution channels.

Episodes by Channel

Content distribution across channels.

Resources and Materials

Episode Resources

Find downloadable materials for episodes.

Resource Types Summary

What types of resources are you providing?

Publishing Schedule

Upcoming Publishing Times

When will content be published next?

Episode Publishing Schedule

When episodes are scheduled to go live.

Quick Metrics

Publishing Summary Dashboard

Key metrics at a glance.

Monthly Publishing Cadence

How consistent is your publishing schedule?

Tips for Using These Queries

  1. Customize Date Ranges - Change INTERVAL values to match your needs
  2. Filter by Channel - Add AND channel_id = 'YOUR_CHANNEL_ID' to focus on specific channels
  3. Add Speaker Filters - Join with speakerships to analyze specific speakers
  4. Export Results - Use your SQL client’s export feature for reports
  5. Schedule Reports - Many of these work great as automated weekly/monthly reports

Next Steps

Ready for more complex analysis? Check out:
Start simple, build confidence, then explore more complex queries as you grow!