HF RL Explorer

Task: PostgreSQL Function for Last Inserted ID

Task: PostgreSQL Function for Last Inserted ID: a task in Terminal-Lego-15k (Harbor dataset). Demonstrate the correct PostgreSQL approach for retrieving the last inserted ID from a table, equivalent to MS SQL's SCOPE IDENTITY() . You must NOT use SELECT MAX(id) FROM table as a solution.

Part of PrimeIntellect/Terminal-Lego-15k.