Chapter II · the pipeline

Case files.

Systems I have shipped. Each one has its own page: the problem, who adopted it, how it is built, and the decisions behind it.

CASE / 01
Slack Alerting
SIESQLPYTSLA
SOURCE EVENTSLAGGING VIEWHOURLY JOBLAGCASE 01ALERTING OVER A LAGGING VIEW

Hourly Slack Alerting on a Laggy Siebel CRM View

Hourly polling against a reporting view with multi-hour lag, diffed against last-seen state.

Siebel CRMSQLPythonSlack API
↗ read case study
CASE / 02
Telemetry Diagnostic
PYTSQLLLM
TIER 1SQL RULES · MOST CASES STOP HERETIER 2CROSS-TABLE CORRELATIONTIER 3LLM CASE NOTECASE 02TIERED DIAGNOSTIC

Tiered Diagnostic Notebook for Fleet Telemetry Support

Three escalating tiers — deterministic rules first, AI case notes only when needed.

PythonSQLLLM
↗ read case study
CASE / 03
Case Queue Report
SQLQUAWIN
NEEDS RESPONSEWAITINGSTALE FOLLOW-UPCASE 03SELF-SERVE CASE QUEUE

Self-Serve Case Queue Report Built on Two Window Functions

One parameter, three real-time queues, no Python and no dashboard team.

SQLQUALIFYWindow Functions
↗ read case study
CASE / 04
RAG Case Notes
DATPYTVECEMB
CASESCHUNKEMBEDRETRIEVELLMNOTEGROUNDED IN CASESCASE 04RETRIEVAL OVER CASE HISTORY

RAG Case Analysis & Case-Note Generator on Databricks

Retrieval-augmented case analysis and note generation over CRM case history and vehicle telemetry, with a validation layer that catches stale, duplicate, or contradictory records before they reach the LLM.

DatabricksPythonVector DBEmbeddings
↗ read case study
CASE / 05
Multi-Tenant Warehouse
SNOSQLSCD
TENANT_ATENANT_BTENANT_CSHARED · CONFORMED DIMENSIONSCASE 05MULTI-TENANT MODEL

Multi-Tenant Data Warehouse Architecture

Fact/dimension models, time-aware joins, layered staging→intermediate→mart.

SnowflakeSQLSCD II
↗ read case study
CASE / 06
dbt Framework
DBTSNOJINYAM
··✓✓✓✓366 TESTSCASE 06DBT MODEL GRAPH

dbt-Based Analytics Engineering Framework

Migrated legacy SQL views to dbt with tests, docs, and CI/CD.

dbtSnowflakeJinjaYAML
↗ read case study
CASE / 07
KPI Reporting
SNOPYTSQLWOR
SOURCESTRANSFORMKPI MARTKPI AKPI BKPI CCASE 07AUTOMATED KPI REPORTING

Automated KPI Reporting Pipeline

Fully automated extraction → templated Excel charts → Word reports → PDF distribution.

SnowflakePythonSQLWord/PDF
↗ read case study
CASE / 08
ROI Metrics Engine
SNOSQLEXC
CUSTOMER ROI / QUARTERCASE 08CUSTOMER ROI METRICS

Customer ROI Metrics Engine

Standardized ROI framework modeling intake, scheduling, reminders, and engagement.

SnowflakeSQLExcel
↗ read case study
CASE / 09
Idempotent ETL
SNOSQLPYT
EXTRACTSTAGEMERGEVALIDATERE-RUN = SAME RESULTWATERMARK · MERGE KEYCASE 09IDEMPOTENT INCREMENTAL ETL

Idempotent Incremental ETL Framework

Watermark tracking, merge upserts, late-arriving data validation, control tables for recovery.

SnowflakeSQLPython
↗ read case study
CASE / 10
Data Reconciliation
SNOSQL
CRMBILLINGOPSRECONCILEDETERMINISTICCASE 10CROSS-SYSTEM RECONCILIATION

Cross-System Data Quality & Reconciliation

Automated mismatch detection across CRM, billing, and ops systems with daily reconciliation snapshots.

SnowflakeSQL
↗ read case study
CASE / 11
Snowflake Cost
SNOSQL
CREDITS / WEEKCASE 11CREDIT AND QUERY COST

Snowflake Cost & Query Optimization

Workload segmentation (ETL / BI / ad hoc), right-sizing, auto-suspend policies, full-scan reduction.

SnowflakeSQL
↗ read case study
CASE / 12
UrgentIQ Events
PYTSQLSNOAPI
SCHEDULEDCHECKED ININ VISITCOMPLETENO-SHOWCASE 12VISIT STATUS EVENTS

UrgentIQ Visit Status & Event Analytics

Event-driven pipeline, status timeline normalization, transition-duration analysis, configurable schema mapping.

PythonSQLSnowflakeAPI
↗ read case study
CASE / 13
Billing Reconciliation
SQLEXCQUI
PROVIDERSBILLING1 MISMATCH SURFACEDCASE 13PROVIDER AND BILLING MATCH

Provider Count & Billing Reconciliation

Aligned operational provider counts with CRM contracts and billing records via FTE-threshold logic.

SQLExcelQuickBooks
↗ read case study
CASE / 14
SMS Optimization
SQLEXC
BEFORE · 2 SEGMENTSAFTER · 1 SEGMENTCASE 14MESSAGE SEGMENT SIZING

SMS Optimization & Number Rationalization

Standardized templates at ~150-char threshold, disabled 300+ inactive numbers.

SQLExcel
↗ read case study
CASE / 15
EMR API Costs
SQLAPI
API CALLS vs COSTCASE 15API USAGE AND COST

EMR API Usage & Cost Analysis

Six-month analysis surfacing high-volume endpoints and redundant call patterns.

SQLAPI Logs
↗ read case study
CASE / 16
Kafka to Snowflake
KAFSNOPYTSTR
EVENTSBUFFERTABLENEAR-REAL-TIMECASE 16KAFKA TO SNOWFLAKE

Near-Real-Time Event Ingestion (Kafka → Snowflake)

Sub-minute event ingestion with quality monitoring and out-of-order handling.

KafkaSnowpipePythonStreams
↗ read case study