WhoDB is a powerful tool for data analysts, business intelligence professionals, and anyone who needs to extract insights from databases. Whether you're answering business questions, preparing data for reports, or investigating anomalies, WhoDB provides the tools to analyze data efficiently.
Tip
This guide covers filtering, querying, exporting, and common analysis patterns you'll use daily.
Data Analysis Workflow
Phase 1: Explore and Filter
Start by understanding what data you're working with:
Phase 2: Sort and Organize
Once you have the right subset, organize it for analysis:
Phase 3: Run Analysis Queries
For sophisticated analysis, switch to the Scratchpad to write custom SQL:
GROUP BY queries are the foundation of most business analytics—use them constantly to break down data into meaningful segments.
Comparisons & Benchmarking
Compare performance across segments:
sql
-- Compare this month vs last monthSELECT EXTRACT(MONTHFROM created_at)asmonth, EXTRACT(YEARFROM created_at)asyear,COUNT(*)as sales_count,SUM(amount)as revenueFROM salesWHERE created_at >NOW()-INTERVAL'2 months'GROUPBY EXTRACT(YEARFROM created_at), EXTRACT(MONTHFROM created_at)ORDERBYyearDESC,monthDESC;
Ranking & Top-N Analysis
Find your best and worst performers:
sql
-- Top 10 products by revenueSELECT product_name,SUM(quantity * price)as revenue,COUNT(*)as order_count, ROW_NUMBER()OVER(ORDERBYSUM(quantity * price)DESC)as rankFROM order_itemsGROUPBY product_nameORDERBY rankLIMIT10;
Joins for Cross-Table Analysis
Combine data from multiple tables:
sql
-- Customers with their order summarySELECT c.customer_id, c.customer_name,COUNT(o.order_id)as total_orders,SUM(o.order_total)as lifetime_value,MAX(o.created_at)as last_order_dateFROM customers cLEFTJOIN orders o ON c.customer_id = o.customer_idGROUPBY c.customer_id, c.customer_nameORDERBY lifetime_value DESC;
This pattern combines customer data with their order history in a single view.
Window Functions for Context
Calculate metrics while maintaining row detail:
sql
-- Orders with running total and percentile rankSELECT order_id, amount,SUM(amount)OVER(ORDERBY created_at)as running_total, PERCENT_RANK()OVER(ORDERBY amount)*100as percentileFROM ordersWHERE created_at >'2024-01-01'ORDERBY created_at DESC;
Window functions let you see individual records alongside aggregate metrics—perfect for context.
Exporting Analysis Results
Once you have your analysis, export the data for sharing or further processing:
Analysis Best Practices
Troubleshooting Common Analysis Issues
Advanced Analysis Scenarios
Scenario 1: Churn Analysis
Identify which customers are at risk of leaving:
sql
-- Customers who haven't ordered recentlySELECT c.customer_id, c.customer_name,MAX(o.created_at)as last_order_date,NOW()-MAX(o.created_at)as days_since_order,COUNT(o.order_id)as lifetime_orders,SUM(o.amount)as lifetime_valueFROM customers cLEFTJOIN orders o ON c.customer_id = o.customer_idGROUPBY c.customer_id, c.customer_nameHAVINGMAX(o.created_at)<NOW()-INTERVAL'90 days'ORDERBY days_since_order DESC;
Export these results to a customer success team for re-engagement campaigns.
Scenario 2: Data Quality Audit
Find data anomalies and quality issues:
sql
-- Records with potential quality issuesSELECT*,CASEWHEN email NOTLIKE'%@%.%'THEN'Invalid email'WHEN phone_number ISNULLTHEN'Missing phone'WHEN created_at >NOW()THEN'Future date'WHEN length(first_name)>50THEN'Suspiciously long name'ELSE'OK'ENDas quality_issueFROM usersWHERE email NOTLIKE'%@%.%'OR phone_number ISNULLOR created_at >NOW()OR length(first_name)>50ORDERBY created_at DESC;
Export and share with the data team to fix underlying data entry processes.
Scenario 3: Cohort Retention
Track how user retention changes by signup cohort:
This shows whether newer cohorts have better or worse retention than historical cohorts.
Next Steps
Now that you're confident with data analysis, explore:
Testing & Development
Use these same techniques with generated mock data
Database Exploration
Explore new datasets before analyzing them
Query Reference
Master advanced SQL techniques
Export Options
Learn export customization in depth
Check
You now have a complete toolkit for data analysis. From filtering and sorting through complex SQL queries to exporting results, you can answer virtually any question your data can reveal. The combination of interactive filtering, powerful SQL execution, and flexible export makes WhoDB an ideal analysis companion.