SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||next

Performing Queries Using SQL
Lesson Overview


Introduction

Sometimes you need quick answers to questions about your data. You may want to query your data to

  • examine relationships between data values
  • view a subset of your data
  • compute values quickly.

For queries such as these, the SQL procedure (PROC SQL) provides an easy, flexible way to analyze your data. This lesson shows you how to create a basic query using one or more tables (data sets).


Insure, Clinic and Query boxes


This lesson contains 32 pages and takes approximately 45-60 minutes to complete.


Objectives

In this lesson, you learn to

  • invoke the SQL procedure
  • select columns
  • define new columns
  • specify the tables(s) to be read
  • specify subsetting criteria
  • order rows by values of one or more columns
  • end the SQL procedure.


Prerequisites

Before taking this lesson, you should have completed the following lessons:

Introduction to SAS Programming

||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement