title: Teradata Volatile Table Statement is not creating any rows
body: <p>I want to create table in Teradata. Therefore I am using this syntax:</p>
  
  <pre><code>    CREATE VOLATILE TABLE a AS
      (
          Select * FROM ...
      ) WITH DATA PRIMARY INDEX ( ACCOUNT_ID )
  ;
  </code></pre>
  
  <p>The inner SELECT statement results in 4 rows. However, when I run the entire query, the resulting data set does not have any rows. Strange, I know - that`s why I'm writing. Please help. Thanks.</p>