<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAS Tip: Build a subquery with the SAS Enterprise Guide query builder in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Build-a-subquery-with-the-SAS-Enterprise-Guide-query/m-p/447522#M133</link>
    <description>&lt;P&gt;&lt;SPAN&gt;SAS Enterprise Guide supports the idea of subqueries, a concept familiar to SQL programmers. With a subquery (sometimes called "subselect" or "inner query"), you can express the entire operation in one SQL step. That's one trip to the database, and only one set of results brought back to SAS.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You accomplish this by using Query Template to define the inner query, then combine it with an expression of the outer query.&amp;nbsp; For more information, read &lt;A href="https://blogs.sas.com/content/sasdummy/2013/06/28/building-an-sql-subquery-in-sas-enterprise-guide/" target="_self"&gt;Building an SQL subquery in SAS Enterprise Guide&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qb_innerq.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19366iF1B44014708929CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="qb_innerq.png" alt="qb_innerq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16580"&gt;@MichaelB_SAS&lt;/a&gt;&amp;nbsp;for the SAS Global Forum paper that supports this tip&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 18:05:12 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-03-21T18:05:12Z</dc:date>
    <item>
      <title>SAS Tip: Build a subquery with the SAS Enterprise Guide query builder</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Build-a-subquery-with-the-SAS-Enterprise-Guide-query/m-p/447522#M133</link>
      <description>&lt;P&gt;&lt;SPAN&gt;SAS Enterprise Guide supports the idea of subqueries, a concept familiar to SQL programmers. With a subquery (sometimes called "subselect" or "inner query"), you can express the entire operation in one SQL step. That's one trip to the database, and only one set of results brought back to SAS.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You accomplish this by using Query Template to define the inner query, then combine it with an expression of the outer query.&amp;nbsp; For more information, read &lt;A href="https://blogs.sas.com/content/sasdummy/2013/06/28/building-an-sql-subquery-in-sas-enterprise-guide/" target="_self"&gt;Building an SQL subquery in SAS Enterprise Guide&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qb_innerq.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19366iF1B44014708929CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="qb_innerq.png" alt="qb_innerq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16580"&gt;@MichaelB_SAS&lt;/a&gt;&amp;nbsp;for the SAS Global Forum paper that supports this tip&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 18:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Build-a-subquery-with-the-SAS-Enterprise-Guide-query/m-p/447522#M133</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-03-21T18:05:12Z</dc:date>
    </item>
  </channel>
</rss>

