SQL: find the second largest number in a column from a table and return that number
Asked in the Round 2 - Tech Interview 1 stage. Treat repeated values as one value and ignore NULL entries.
second_largest_number.NULL if fewer than two distinct non-null values exist.| Column | Type | Description |
|---|---|---|
| number_idPK | INT | Unique identifier for each stored number |
| number_value | NUMERIC | Number from which the second largest distinct value is calculated |