Select all records from a table where a field is greater than a specified value, and sort the result set in ascending order.
Asked in the OA stage. First SQL question on the online assessment.
record_id, record_name, and metric_value for records where metric_value is greater than 50.metric_value ascending, then record_id ascending to break ties.| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique record identifier |
| record_name | VARCHAR(100) | Record name |
| metric_value | INT | Numeric field used for filtering and sorting |