Ingest JSON documents into a SQLite database, and then answer an analytical question using SQL; what additional data would you need for further analysis?
Use the supplied PostgreSQL tables to represent the ingestion and analysis task. Extract document status, source, and amount from the JSON payload, then identify additional data that would support more advanced analysis.
source_id, source_name, completed_documents, and total_amount.source_id ascending.| Column | Type | Description |
|---|---|---|
| document_idPK | INT | Unique ingested document identifier |
| payload | JSONB | Raw JSON document |
| ingested_at | TIMESTAMPTZ | Timestamp when the document was ingested |
| Column | Type | Description |
|---|---|---|
| source_idPK | INT | Registered source identifier |
| source_name | VARCHAR(100) | Human-readable source name |
| source_system | VARCHAR(100) | Originating system name |
| region | VARCHAR(50) | Operational region of the source |