Implement an in-memory SQL database: insert rows into a table, e.g. db.insert("employees", Map.of("id", "1", ...)), where the input columns can be incomplete; then support querying with a WHERE clause such as WHERE name='John' AND id > 5 (AND only, operators =, >, <). Asked in the technical phone screen stage. Multi-part practical coding problem; interviewer gives method calls and expected output rather than a full problem statement.
id, name, email, and department.id ascending, preserving NULL values for omitted columns.| Column | Type | Description |
|---|---|---|
| idPK | INT | Unique employee identifier |
| name | VARCHAR(100) | Employee name, which may be omitted |
| VARCHAR(255) | Employee email address | |
| department | VARCHAR(100) | Employee department |