Advanced SQL with SAS
eBook - ePub

Advanced SQL with SAS

  1. 428 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Advanced SQL with SAS

About this book

This book introduces advanced techniques for using PROC SQL in SAS. If you are a SAS programmer, analyst, or student who has mastered the basics of working with SQL, Advanced SQL with SAS ® will help take your skills to the next level. Filled with practical examples with detailed explanations, this book demonstrates how to improve performance and speed for large data sets. Although the book addresses advanced topics, it is designed to progress from the simple and manageable to the complex and sophisticated.

In addition to numerous tuning techniques, this book also touches on implicit and explicit pass-throughs, presents alternative SAS grid- and cloud-based processing environments, and compares SAS programming languages and approaches including FedSQL, CAS, DS2, and hash programming. Other topics include:

  • Missing values and data quality with audit trails
  • "Blind spots" like how missing values can affect even the simplest calculations and table joins
  • SAS macro language and SAS macro programs
  • SAS functions
  • Integrity constraints
  • SAS Dictionaries
  • SAS Compute Server

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Advanced SQL with SAS by Christian FG Schendera in PDF and/or ePUB format, as well as other popular books in Informatique & Programmation en SQL. We have over one million books available in our catalogue for you to explore.
Chapter 1: Overview
This book is written for advanced users in PROC SQL. The handling of missing values (null values) in PROC SQL is an important topic since SAS SQL handles missing values differently from the ANSI standard. Failure to take these features into account can lead to potentially undesirable results when dealing with missing values. Other topics in this book include data quality, especially with integrity constraints, as well as special features in dealing with missing values and visual analysis of geodata and distances.
Three chapters in this book are particularly important as they help you to harness the power of SAS. The chapter on macro programming, for example, describes how the listwise execution of commands can speed up work with SAS many times over, both when programming and also executing programs. Two further chapters introduce two programming alternatives: programming with hash objects, as well as FedSQL and its possibilities to put it into practice using it in the procedures FEDSQL, CAS and DS2. The chapter on performance and efficiency compiles various possibilities of how to obtain even more performance, especially when handling large amounts of data. Further chapters and sections are reserved for overviews of SQL syntax, SAS functions and routines, as well as various special features of the SAS Pass-Through Facility for selected DBMS accesses. Because this book focuses on using many specific features in SAS, it is written primarily for SAS users, as well as anybody interested in gaining a deeper insight in the power of SAS.
This book also introduces a new processing platform, Cloud Analytics Services (CAS). Section 1.2 compares several programming languages and their advantages especially in the CAS environment. For details about when to use FedSQL and when to use SQL, please see Section 7.5.
1.1 Detailed Description of This Book
Table 1.1 Quick Finder
Chapter
Description
1
Overview of this book
2
Missing values: Definition, mode of operation, and conversion
3
Data quality: Integrity constraints (test rules) and audit trails, as well as finding duplicates and outliers.
4
Macro programming: From simple macro variables (SAS, SQL, user-defined), to helpful SAS macro programs including macros for list execution of commands or macros for retrieving system information
5
SQL for geodata, distances, and maps
6
Hashing as an alternative to SQL
7
FedSQL
8
Performance and efficiency: strategy and measures including narrowing, shortening, and compressing; sorting; and other tips and tricks including SAS dictionaries
9
Help, tips, and tricks
10
SAS syntax - PROC SQL, SAS functions, and SAS routines
11
References
12
Syntax index
13...

Table of contents

  1. Cover
  2. Copyright Page
  3. Contents
  4. Preface
  5. About This Book
  6. About The Author
  7. Chapter 1: Overview
  8. Chapter 2: Missing Values
  9. Chapter 3: Data Quality with PROC SQL
  10. Chapter 4: Macro Programming with PROC SQL
  11. Chapter 5: SQL for Geodata
  12. Chapter 6: Hash Programming as an Alternative to SQL
  13. Chapter 7: FedSQL
  14. Chapter 8: Performance and Efficiency
  15. Chapter 9: Tips, Tricks, and More
  16. Chapter 10: SAS Syntax—PROC SQL, SAS Functions, and SAS CALL Routines
  17. References
  18. Syntax Index
  19. Subject Index