<?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 PROC SQL - SELECT * - what is the * for? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464904#M118548</link>
    <description>&lt;P&gt;i have a code as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table sel_me as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;question:why do we use select*&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 00:46:07 GMT</pubDate>
    <dc:creator>lg2</dc:creator>
    <dc:date>2018-05-25T00:46:07Z</dc:date>
    <item>
      <title>PROC SQL - SELECT * - what is the * for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464904#M118548</link>
      <description>&lt;P&gt;i have a code as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table sel_me as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;question:why do we use select*&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 00:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464904#M118548</guid>
      <dc:creator>lg2</dc:creator>
      <dc:date>2018-05-25T00:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: clarification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464905#M118549</link>
      <description>&lt;P&gt;You don't have to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The * is a wildcard.&amp;nbsp; " select * " means " select everything " and sometimes that is easier than typing everything out. .&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 20:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464905#M118549</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-05-24T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: clarification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464906#M118550</link>
      <description>&lt;P&gt;select *&amp;nbsp;&lt;/P&gt;&lt;P&gt;from sashelpclass;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is the same as&amp;nbsp;&lt;/P&gt;&lt;P&gt;specifying all the variables in the select statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically as short cut&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please run&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select&amp;nbsp;Name, Sex, Age ,Height ,Weight&amp;nbsp;&lt;/P&gt;&lt;P&gt;from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to notice the result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 21:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464906#M118550</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-24T21:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - SELECT * - what is the * for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464926#M118555</link>
      <description>&lt;P&gt;Mostly because programmers are lazy and if there's a shorter way its much easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that I've rewritten your subject line to be more descriptive. This will help anyone else looking for the same answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS SQL documentation is here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n1e51p1t33ruyyn1iyzqonf3r0cm.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n1e51p1t33ruyyn1iyzqonf3r0cm.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And has plenty of examples that you can use. Your question would be covered here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=p0hwg3z33gllron184mzdoqwpe3j.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=p0hwg3z33gllron184mzdoqwpe3j.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H4 class="xis-argument"&gt;*&lt;/H4&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="xis-paraSimpleFirst"&gt;represents all columns in the tables or views that are listed in the FROM clause.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 May 2018 00:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464926#M118555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-25T00:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - SELECT * - what is the * for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464953#M118565</link>
      <description>&lt;P&gt;whenever you use * in the select clause of sql, it always means selecting all columns. In the contradictory you can also select particular columns.&lt;/P&gt;&lt;P&gt;Select * from table will select all coulmns&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;select col1,c0l2 from table&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 06:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-what-is-the-for/m-p/464953#M118565</guid>
      <dc:creator>ruchi11dec</dc:creator>
      <dc:date>2018-05-25T06:30:57Z</dc:date>
    </item>
  </channel>
</rss>

