Tell me about building a basic CRUD operations application using SQL and Apex.
For the SQL portion, demonstrate the read operation by summarizing qualifying records for active customers. Return every active customer, including those without a qualifying record. Only completed records dated on or after 2026-01-01 count toward the summary.
customer_id, customer_name, completed_order_count, completed_order_total, last_completed_order_date, and activity_status.0 for customers without qualifying records and No completed orders for their status.customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| status | VARCHAR(20) | Customer lifecycle status |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| status | VARCHAR(20) | Order processing status |
| order_date | DATE | Date the order was recorded |
| amount | NUMERIC(12,2) | Order amount |