Cursor Sql Statement With Variable Resistor Box