Professional Documents
Culture Documents
Objectives
Understand the difference between a data table, data view, and report. Access the Result set format options in the Query Builder and Options windows.
Data Table
The data table format saves the query results as a static data table against which you can run tasks. The table is not updated until you rerun the query.
Data View
The data view contains instructions on how to extract data from the source tables in the query. When the data view is displayed or used in a task, the query reprocesses the instructions and captures the data that exists in the source tables at that moment.
Report
The report format saves the query results as a report in the format that you specified as your default, either HTML, PDF, RTF, or text. The report is not updated until you rerun the query. You cannot run tasks against query results in this format.
1) Access Options for This Query. 2) Choose the Result format. 3) Provide the storage name and location for the SAS data table or view.
9
10
11
Objectives
Create a prompt. Use the prompt to create a filter. Create and use several prompts. Combine filters.
12
13
14
15
Objectives
Assign a grouping variable in a query. Select the analysis variable and the summary statistic to compute. Filter grouped data.
16
Grouping Data
The Query Builder can be used to group and summarize data.
17
Grouping Data
2) Choose to limit the query result to one row for each unique value of the Group column(s).
18
19
AverageSales < 70
20
Filtering Data
22
23
Filtered Output
24
25