Suggest a data structure to store a table of people (name, department number, ID, DOB, salary) so that given a department number you output all people in it
Asked in the Technical 1 stage.
name, department_number, id, dob, and salary.department_number equals the requested value.id ascending.| Column | Type | Description |
|---|---|---|
| idPK | INT | Unique person identifier |
| name | VARCHAR(100) | Person name |
| department_number | INT | Department identifier |
| dob | DATE | Date of birth |
| salary | NUMERIC(12,2) | Annual salary |