<?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: difference between Table and View in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16667#M3102</link>
    <description>Hi,&lt;BR /&gt;
I have some doubts about tables &amp;amp; views.&lt;BR /&gt;
If i have to create some DS in order to manipulate data and then generate a final dataset, which kind of intermediate file is better to use, view or table? I know that views are smaller, what about the difference in the elaboration time?&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
&lt;BR /&gt;
Simone</description>
    <pubDate>Thu, 24 Feb 2011 11:18:33 GMT</pubDate>
    <dc:creator>HDSimo</dc:creator>
    <dc:date>2011-02-24T11:18:33Z</dc:date>
    <item>
      <title>Proc SQL: difference between Table and View</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16667#M3102</link>
      <description>Hi,&lt;BR /&gt;
I have some doubts about tables &amp;amp; views.&lt;BR /&gt;
If i have to create some DS in order to manipulate data and then generate a final dataset, which kind of intermediate file is better to use, view or table? I know that views are smaller, what about the difference in the elaboration time?&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
&lt;BR /&gt;
Simone</description>
      <pubDate>Thu, 24 Feb 2011 11:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16667#M3102</guid>
      <dc:creator>HDSimo</dc:creator>
      <dc:date>2011-02-24T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL: difference between Table and View</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16668#M3103</link>
      <description>My opinion only...&lt;BR /&gt;
I use views for reports/datasets where a dataset will be updated and I want this other data set to be updated to reflect this. &lt;BR /&gt;
&lt;BR /&gt;
A view is a step that is run every time it is accessed, rather than just reading a table. The speed depends on the calculations in the view. &lt;BR /&gt;
&lt;BR /&gt;
I also have to balance the length of time the view takes to load and how often it is used. For example if a view takes 2 seconds to run but is run 100 times a day, I'd rather have a table updated.  On the other hand if it takes 30sec to run, but is run ten times a month, perhaps a view is fine.  &lt;BR /&gt;
&lt;BR /&gt;
Another consideration to use a view over a dataset is storage space, but this only becomes an issue if you continue to use a lot of views, then you can 're-use' space. You still need the space to complete the task in the view. &lt;BR /&gt;
&lt;BR /&gt;
Not sure I answered your question but hope it helps.</description>
      <pubDate>Thu, 24 Feb 2011 18:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16668#M3103</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-02-24T18:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL: difference between Table and View</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16669#M3104</link>
      <description>It's similar to the tradeoffs of datasets and views described in the base language reference (Chapter 29).  It is basically a three-way balance between timeliness (view changes with underlying data), disk space (view smaller), and processing time (view generally slower).

A view into a relational database may also be considered more secure as the DBA can apply some rules that might not be available in the file system for a table.&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Doc@Duke</description>
      <pubDate>Thu, 24 Feb 2011 18:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16669#M3104</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-02-24T18:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL: difference between Table and View</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16670#M3105</link>
      <description>Hi.&lt;BR /&gt;
Table contains real substantive data,But View only contains information about how you can find data (such as some sql code). So its size will be smaller.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 25 Feb 2011 01:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16670#M3105</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-02-25T01:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL: difference between Table and View</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16671#M3106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple way to see the definition of the view.&amp;nbsp; I have a view of a table and am trying to confirm the physical and metadta location of the table that feeds the view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 02:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16671#M3106</guid>
      <dc:creator>ab_UoN</dc:creator>
      <dc:date>2011-09-01T02:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL: difference between Table and View</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16672#M3107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; For SQL views:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe view libname.viewname;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For data step views, use the describe statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details, see online doc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 11:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-difference-between-Table-and-View/m-p/16672#M3107</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2011-09-02T11:29:59Z</dc:date>
    </item>
  </channel>
</rss>

