title: run a sql depending on Oracle DB version
body: <p>i need to run the following SQL on all databases which have the version 11 of oracle.</p>
  <pre><code>select USERNAME,SYSDBA,SYSOPER,SYSASM from from v$pwfile_users
  </code></pre>
  <p>For finding the DB version :</p>
  <pre><code>SQL&gt; SELECT distinct version FROM PRODUCT_COMPONENT_VERSION;
  VERSION
  --------------------------------------------------------------------------------
  11.2.0.4.0
  </code></pre>
  <p>So only when the version starts with '11.' i will have to run the query.
  How can i do this in a single SQL query?may be using a 'case'?</p>