People + Companies
The people_companies view combines every contact record with its associated company firmographic data in a single flat table. No joins required — just query directly.
What’s included
This view is equivalent to:
SELECT c.*, co.*
FROM contacts c
LEFT JOIN companies co ON c.company_id = co.company_id
Every contact field plus every company field, joined for you.
| Metric | Value |
|---|
| Total records | TODO (one row per contact) |
| Primary key | contact_id |
| Source tables | contacts LEFT JOIN companies |
Data dictionary & fill rates
| Field | Type | Fill rate | Description |
|---|
contact_id | VARCHAR | 100% | Unique contact identifier |
first_name | VARCHAR | TODO% | First name |
last_name | VARCHAR | TODO% | Last name |
email | VARCHAR | TODO% | Primary email address |
email_verified | BOOLEAN | TODO% | Whether the email passed verification |
verification_status | VARCHAR | TODO% | valid, invalid, catch_all, unknown, disposable |
last_verified_at | TIMESTAMP | TODO% | When the email was last verified |
title | VARCHAR | TODO% | Job title |
seniority_level | VARCHAR | TODO% | c_suite, vp, director, manager, senior, entry |
department | VARCHAR | TODO% | Functional department |
direct_phone | VARCHAR | TODO% | Direct phone number |
mobile_phone | VARCHAR | TODO% | Mobile phone number |
linkedin_url | VARCHAR | TODO% | LinkedIn profile URL |
location_city | VARCHAR | TODO% | Contact’s city |
location_state | VARCHAR | TODO% | Contact’s state/province |
location_country | VARCHAR | TODO% | Contact’s country |
Company fields
| Field | Type | Fill rate | Description |
|---|
company_id | VARCHAR | TODO% | Company identifier (NULL if no company match) |
company_name | VARCHAR | TODO% | Company name |
domain | VARCHAR | TODO% | Company primary domain |
industry | VARCHAR | TODO% | Industry |
sub_industry | VARCHAR | TODO% | Sub-industry / vertical |
employee_count | INTEGER | TODO% | Estimated employee count |
employee_range | VARCHAR | TODO% | Employee range bucket |
revenue_estimate | FLOAT | TODO% | Estimated annual revenue (USD) |
revenue_range | VARCHAR | TODO% | Revenue range bucket |
hq_city | VARCHAR | TODO% | HQ city |
hq_state | VARCHAR | TODO% | HQ state/province |
hq_country | VARCHAR | TODO% | HQ country |
founded_year | INTEGER | TODO% | Year founded |
company_type | VARCHAR | TODO% | public, private, nonprofit, etc. |
tech_stack | ARRAY | TODO% | Detected technologies |
Since this is a LEFT JOIN from contacts, every contact appears even if they don’t have a matched company. Company fields will be NULL for unmatched contacts.
Example queries
Prospect list — no joins needed
SELECT
first_name,
last_name,
email,
title,
company_name,
industry,
employee_count,
hq_state
FROM people_companies
WHERE email_verified = TRUE
AND verification_status = 'valid'
AND seniority_level IN ('vp', 'director', 'c_suite')
AND industry = 'Software'
AND employee_count BETWEEN 100 AND 1000
AND hq_country = 'US'
ORDER BY last_verified_at DESC
LIMIT 500;
Export for a campaign
SELECT
first_name,
last_name,
email,
title,
company_name,
employee_range,
industry,
hq_city,
hq_state
FROM people_companies
WHERE email_verified = TRUE
AND department = 'marketing'
AND employee_count >= 200
AND last_verified_at >= DATEADD(day, -30, CURRENT_DATE())
ORDER BY company_name, last_name;