Explain how you would display data in a table where the column values are dynamic.
Use the provided flight and flight attribute data. Attribute names are not fixed in advance, so the result must preserve them dynamically rather than requiring a separate hardcoded column for each attribute.
flight_id, flight_number, status, and dynamic_columnsdynamic_columns must contain each available attribute name and value for that flightflight_id ascending| Column | Type | Description |
|---|---|---|
| flight_idPK | INT | Unique flight identifier |
| flight_number | VARCHAR(20) | Operational flight number |
| status | VARCHAR(20) | Current flight status |
| Column | Type | Description |
|---|---|---|
| flight_idPK | INT | Flight receiving the attribute |
| attribute_namePK | VARCHAR(50) | Dynamic attribute key |
| attribute_value | VARCHAR(255) | Dynamic attribute value |