title: select statement inside select extract
body: <p>I have the following sql statement </p>
  
  <pre><code>SELECT
  (EXTRACT (SECOND FROM TIME '00:34:01.024416') * 1000) :: int AS "second-millisecond"
  </code></pre>
  
  <p>The problem is that the interval is a String and it is static, is it possible to replace '00:34:01.024416' with a SQL statement that returns a interval? if so how?</p>