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 theplanning_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
- ❌
WHERE tenant_organization_id = 1
- ❌
WHERE system_status = 'active'
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.Weekly Engagement Trends
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
- Customize Date Ranges - Change INTERVAL values to match your needs
- Filter by Channel - Add
AND channel_id = 'YOUR_CHANNEL_ID'
to focus on specific channels - Add Speaker Filters - Join with speakerships to analyze specific speakers
- Export Results - Use your SQL client’s export feature for reports
- Schedule Reports - Many of these work great as automated weekly/monthly reports
Next Steps
Ready for more complex analysis? Check out:- Advanced Queries - Complex joins and analytics
- Reporting Examples - Production-ready reports
- Data Model - Complete table reference
Start simple, build confidence, then explore more complex queries as you grow!