Write a SQL UNION query to combine data from three tables sharing the same unique ID.
Use the three supplied tables and return the combined distinct records. Preserve NULL status values and produce deterministic ordering.
unique_id and record_status combinationunique_id, record_statusunique_id ascending, then record_status ascending with NULL values last| Column | Type | Description |
|---|---|---|
| unique_idPK | INT | Unique identifier for the record |
| record_status | VARCHAR(30) | Status associated with the record |
| Column | Type | Description |
|---|---|---|
| unique_idPK | INT | Unique identifier for the record |
| record_status | VARCHAR(30) | Status associated with the record |
| Column | Type | Description |
|---|---|---|
| unique_idPK | INT | Unique identifier for the record |
| record_status | VARCHAR(30) | Status associated with the record |