title: Example of custom Corda SQL statement
body: <p>Can anyone point me to some example code of how to obtain a JDBC connection inside a Corda flow, and execute some arbitrary SQL? I want to execute some SQL like this, and the VaultCustomQueryCriteria class won't be able to generate this (as far as I know):</p>
  
  <pre><code>SELECT COUNT(*) - COUNT(NULLIF(OBJ, '12345')), COUNT(*)
  FROM SUBS
  WHERE SBJ = '_abc' AND PRED = 'LEI'
  </code></pre>
  
  <p>Thanks</p>
  
  <p>James</p>