title: Pl/sql bad bind error
body: <p>Can someone help me with the code below:</p>
  
  <ol>
  <li>I'm not sure why it throws an error</li>
  <li><code>RETURN    (salary &gt; min_sal) &amp;      (salary &lt;=Max sal)</code>  - are these valid? </li>
  </ol>
  
  <p>When I run the code I get a <code>PLS 00049 BAD BIND error</code></p>
  
  <pre><code>Create or REPLACE FUNCTION sal_ok(SALARY number, jobgrade NUMBER)
  RETURN BOOLEAN AS
  BEGIN
  SELECT losal, hisal INTO :min_sal, :max_sal FROM salgrade
  WHERE grade = jobgrade;
  RETURN (salary &gt;=min_sal) AND  (salary &lt;=Max sal);
  END sal_ok;
  /
  </code></pre>
  
  <p>Thanks for your assistance </p>