Given an array of integers, write a function to find the first recurring element.
For this SQL version, the array is stored as one row per element in integer_sequence. Return the recurring value whose first appearance has the smallest position. Ignore NULL values.
recurring_value and first_position.| Column | Type | Description |
|---|---|---|
| positionPK | INT | One-based position of the integer in the sequence |
| integer_value | INT | Integer stored at the sequence position |