Common Query Patterns

Query Examples These examples demonstrate common patterns for analyzing your organization's data.

-- Inspect any table structure
SELECT * 
FROM conversations 
LIMIT 1;

-- Count records by type
SELECT 
  COUNT(*) as total,
  COUNT(DISTINCT user_id) as unique_users,
  COUNT(DISTINCT service_id) as unique_services
FROM conversations
WHERE org_id = 'your-org-id';

Last updated

Was this helpful?