<html>
<head>
    <base href="https://docs.jboss.org/author">
            <link rel="stylesheet" href="/author/s/en/2172/19/5/_/styles/combined.css?spaceKey=TEIID&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://docs.jboss.org/author/display/TEIID/DDL+Metadata?focusedCommentId=92733678#comment-92733678">DDL Metadata</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://docs.jboss.org/author/display/~virtualdatabase">Tom Johnston</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>Ok.. then back to my original question</p>

<p>Source Metadata can have a "native query" property set so is it possible to create a source table with a native query specified and do so via DDL?</p>
    </div>

                <div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/author/display/~shawkins"
                          class="url fn confluence-userlink" data-username="shawkins"
                   >Steven Hawkins</a>:</strong><br/>
        <p>&gt; I'm sorry I guesss I assumed the "FOREIGN TABLE" designation was optional.</p>

<p>Foreign table means a source table.</p>

<p>&gt; So am I to understand you cannot use DDL on ANYTHING physical ?</p>

<p>Teiid DDL can be used to specify both source and virtual metadata. Source metadata will have the FOREIGN keyword.</p>
        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
      <div style="float: right;" class="grey">
                        <a href="https://docs.jboss.org/author/users/removespacenotification.action?spaceKey=TEIID">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://docs.jboss.org/author/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://docs.jboss.org/author/display/TEIID/DDL+Metadata?focusedCommentId=92733678#comment-92733678">View Online</a>
              |
       <a id="reply-92733678" href="https://docs.jboss.org/author/display/TEIID/DDL+Metadata?replyToComment=92733678#comment-92733678">Reply To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>