HF RL Explorer

Task: Implement a PostgreSQL Function with Dynamic Table Name Parameter

Task: Implement a PostgreSQL Function with Dynamic Table Name Parameter: a task in Terminal-Lego-15k (Harbor dataset). Create a PostgreSQL function that accepts a table name as a parameter and checks whether a row with id = 1 exists in that table. The function should return 1 if such a row exists…

The task

Create a PostgreSQL function that accepts a table name as a parameter and checks whether a row with `id = 1` exists in that table. The function should return `1` if such a row exists, and `0` otherwise.

Part of PrimeIntellect/Terminal-Lego-15k.