Skip to main content

Basic Services Queries

This guide provides simple, ready-to-use SQL queries for Planning Center Services data. Each query is designed to answer common ministry questions without requiring deep SQL knowledge.

Query Customization Required

These example queries demonstrate common patterns but may require adjustments to match your specific database schema and field names. Test thoroughly in your environment before use.

Query Requirements

Schema Prefix

IMPORTANT: All tables in the Planning Center Services module live in the planning_center schema. Always prefix table names with planning_center. in your SQL. ✅ CORRECT: SELECT * FROM planning_center.services_plans ❌ INCORRECT: SELECT * FROM services_plans

Row Level Security (RLS)

Row Level Security automatically manages:
  • tenant_organization_id – isolates results to your organization
  • system_status – returns active records by default
Avoid adding these filters manually—RLS already enforces them and redundant predicates can hide data or slow queries:
  • WHERE tenant_organization_id = 1
  • WHERE system_status = 'active'
Concentrate on scheduling, volunteer, and song-specific filters while trusting RLS to handle tenancy and status.

This Week’s Schedule

Who’s Serving This Sunday?

Team Status Summary

Upcoming Service Plans

Song Analytics

Most Used Songs (Last 3 Months)

Songs by Theme

Song Key Preferences

Volunteer Management

Team Participation This Month

Volunteer Availability

Team Capacity

Service Planning

Service Item Breakdown

Service Timing Analysis

Needed Positions

Quick Counts

Total Active Volunteers

Songs in Library

Service Types

File Attachments

Recent Chord Charts

Plan Resources

Tips for Using These Queries

Date Ranges: Adjust the INTERVAL values to change the time period. For example, change ‘7 days’ to ‘14 days’ for two weeks.
Status Codes:
  • C = Confirmed
  • U = Unconfirmed
  • D = Declined
Performance: For large databases, consider adding date filters to limit the data being processed.

Next Steps

Ready for more complex queries? Check out our Advanced Services Queries guide for:
  • Multi-team scheduling analysis
  • Volunteer burnout detection
  • Song rotation optimization
  • Service planning templates
  • Cross-campus coordination