
Queries
Queries retrieve data from a table, view, or DBMS. A query returns a query result, which
consists of rows and columns from a table. With PROC SQL, you use a SELECT
statement and its subordinate clauses to form a query. Chapter 2, “Retrieving Data from
a Single Table,” on page 19 describes how to build a query.
Views
PROC SQL views do not actually contain data as tables do. Rather, a PROC SQL view
contains a stored SELECT statement or query. The query executes when you use the
view in a SAS procedure or DATA step. When a view executes, it displays data that is
derived from existing tables, from other views, or from SAS/ACCESS views. Other ...