Cursor Sql Statement With Variable Resistor